We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6175788 commit 6a31851Copy full SHA for 6a31851
src/core/kernelAudio.cpp
@@ -387,7 +387,11 @@ KernelAudio::OpenStreamResult KernelAudio::openStream_(
387
{
388
const Device jackDevice = fetchDevice(out.id); // JACK has only one device
389
390
- assert(jackDevice.sampleRates.size() > 0);
+ if (jackDevice.sampleRates.size() == 0)
391
+ {
392
+ u::log::print("[KA] JACK has no sample rates! Can't proceed\n");
393
+ return {};
394
+ }
395
396
const unsigned int jackSampleRate = jackDevice.sampleRates[0];
397
0 commit comments