I am new to JUCE so I might be missing something.
I am running on a Macbook Pro Apple M1 Max with macOS 12.3.1.
I have noticed a couple of things regarding audio output:
- Displaying wrong audio output in AudioDeviceSelectorComponent after adding/removing speakers:
a) When connected to my Thunderbolt display I select “Display Audio” as audio output and audio works as expected.
b) I disconnect the Thunderbolt display and audio output has changed to “Built-in speaker” and audio works as expected.
c) I reconnect the Thunderbolt display and audio works (through Built-in speaker) but audio output is set to “BlackHole 2ch” (a virtual audio device not connected to anything)! After selecting “Display Audio” I get the audio output through the display again.
Is this expected behaviour?
In step c) I would have loved to have the audio output back through the display automatically, but at least I want to see the current output (instead of BlackHole 2ch) in the audio output setting.
- JUCE seems to loose output audio sometimes, for example when my mac is waking up from sleep. When this happens I cannot play but after reselecting the audio output it works again. I cannot reproduce this manually but it happens sometimes.
Any others having problem with this?
Is a wake-up handler or similar needed?