Skip to content

Commit

Permalink
Fix crash when fetching audio device and JACK is in use
Browse files Browse the repository at this point in the history
  • Loading branch information
gvnnz committed Dec 8, 2023
1 parent 5b8f367 commit 0650238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/kernelAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ KernelAudio::OpenStreamResult KernelAudio::openStream_(

if (api == RtAudio::Api::UNIX_JACK)
{
const Device jackDevice = fetchDevice(0); // JACK has only one device
const Device jackDevice = fetchDevice(out.id); // JACK has only one device

assert(jackDevice.sampleRates.size() > 0);

Expand Down

0 comments on commit 0650238

Please sign in to comment.