My program has both a synth and a Quicktime video player. The Quicktime video player’s audio always goes out whatever audio output device the OS is set to (in the Audio and Midi Settings app), and I have no way of changing that. However, the synth is using JUCE’s AudioDeviceManager. Normally I would allow the user to change the synth’s audio output device from within my program, but since they can’t do this for the video, I’d rather both the video AND synth stick to the system’s audio output device.
Problem is, if the user changes the system’s audio output device while my program is open, Quicktime’s audio out changes, but not the JUCE AudioDeviceManager’s output. I have to restart my program to get the AudioDeviceManager to switch over to the new audio out. On Windows it switches automatically without a problem, but not on Mac. Any ideas on how to get this working without restarting the program?