Hi Jules,
Related issues to the changes done from this post: when a device’s sample rate has changed from the WASAPI control panel, the WASAPIAudioIODevice’s “currentSampleRate” is updated, but the audio device manager’s configuration isn’t. The reason is a bit of missing code, and that WASAPIAudioIODeviceType::systemDeviceChanged() is called too early, or needs to be called again somehow after the device has re-opened to get the new sample rate.
Here’s an edit to update the ADM’s setup:
void AudioDeviceManager::audioDeviceListChanged()
{
currentSetup.sampleRate = currentAudioDevice->getCurrentSampleRate();
currentSetup.bufferSize = currentAudioDevice->getCurrentBufferSizeSamples(); //Here just in case
sendChangeMessage();
}
