Detecting Changes to Audio Device/Sample Rate Bug


I have a standalone application running on Mac. If I read the outputDeviceName and sampleRate using deviceManager.getAudioDeviceSetup() they are correct when I launch the program.

However, if I change the audio device or sample rate outside of the program while the program is running and check them again they are unchanged. This is a big problem because the sample rate I use to configure my processing does not match the HW sample rate.

I’m constantly calling deviceManager.getAudioDeviceSetup() and checking the outputDeviceName and sampleRate in a timerCallback.

Any ideas? Thank you!

1 Like