AudioDeviceAddPropertyListener ?


#1

Having a small issue… that can be easily replicated by running the Juce Demo on Mac, going to the Audio example and clicking Test. Then go to Audio Midi Setup in /Utilities and externally change the sample rate to say 96000. The poor demo doesn’t know the sample rate has changed from under it and plays off speed.

I think it should be a case of adding a AudioDeviceAddPropertyListener on kAudioDevicePropertyNominalSampleRate in the coreAudio.cpp class?

What do you think?