The current sample rate attribute of the current ASIO device (obtained via audioDeviceManager.getCurrentAudioDevice()->getCurrentSampleRate()) does not follow the changes from the ASIO Control Panel.
This can be reproduced by the DemoRunner on the develop branch.
Just use the AudioSettingsDemo.h, and switch to a ASIO audio device, and open the Control Panel, change its sample rate, you’ll see a update from the device info log, but the “Sample Rate” value does not change.
I’m using Forcusrite Scarlett 6i6 as my ASIO device.
Not sure if this happens on other devices, so it might not necessarily be a JUCE bug, but can you check this out for us?
The ASIOAudioIODeviceType::getDefaultDeviceIndex()'s implementation is that, if you have asio4all installed, than this will be your default ASIO device, otherwise, it will choose the first ASIO device in the list as your default device.
I have just tested the Yamaha Steinberg UR44 soundcard, and this issue still exists.
So I seriously think this is a JUCE bug.
So can you fix this problem?
thank you.