It seems that in Big Sur the headphones and the speakers are two different devices (as opposed to previous OSX versions).
While the playback is enabled in the desktop app, if I try to remove the headphones then the application playback stops (
getNextAudioCallback is not called anymore). If I try to plug in the headphones again nothing happens. What is more, I have to launch the app again to restore audio (this happens because the audio device is initialized correctly).
Based on other applications the expected behavior would be that the app should use the Speakers device (since at least on my machine it’s the only available output device).
Has anyone faced this problem? Is there any quick fix?
Could it be related to the fact the the
currentSetup should be a null pointer when the device is re-initialized? (JUCE/juce_AudioDeviceManager.cpp at master · juce-framework/JUCE · GitHub)