AudioDeviceManager::getAudioDeviceSetup() const

Could the AudioDeviceManager::getAudioDeviceSetup() be const?
It just returns a reference to the currentSetup, so I understand the thought not to have it const. However, I write a serialisation to JSON/juce::var so I need a const call there.
I changed it in VisualStudio2015 and it builds fine.

1 Like

If it’s const, how are you gonna change which device or sample rate is being used?

Yup. I’ve added it to develop.

@matkatmusic: you don’t. it’s the getAudioDeviceSetup. The setAudioDeviceSetup is for setting and therefore not const.
@fabian: thanks one more time for your quick actions