Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion modules/juce_audio_devices/native/juce_JackAudio_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,16 @@ class JackAudioIODevice final : public AudioIODevice
juce::jack_on_shutdown (client, shutdownCallback, this);
juce::jack_on_info_shutdown (client, infoShutdownCallback, this);
juce::jack_set_xrun_callback (client, xrunCallback, this);
juce::jack_activate (client);

// If the client can't be activated, fail the whole open call:
// reporting success here would produce a device that appears to be
// running but never invokes its callback.
if (juce::jack_activate (client) != 0)
{
lastError = "Failed to activate JACK client";
return lastError;
}

deviceIsOpen = true;

if (! inputChannels.isZero())
Expand Down