StandalonePluginHolder can't cope with external samplerate changes on Windows

Using the Scarlett device settings or the Yamaha Steinberg USB Control Panel on windows to change the samplerate does not call prepareToPlay with the new value for the AudioProcessor when a JUCE plugin runs in Standalone mode.

The audio playback of the standalone plugin is now broken.

Shouldn’t this be treated like a host sample rate change when the plugin runs in standalone mode?

Listening to the AudioDeviceManager from StandalonePluginHolder does result in change callbacks, but the device’s settings are not being updated.

JUCE version is 8.0.6, win version is 11 Pro 23H2.

Only restarting the standalone app fixes the issue.

Thank you for reporting. We can repro the issue and are working on a fix.

1 Like

Thank you for reporting the issue. A fix is now available on develop.

The issue is not fixed on my end, in the AudioPluginDemo_Standalone with juce 8.0.11, changing the samplerate still causes the audio processing to permanently stop.

The only workaround right now is to switch to a different device and then back again.