AudioDeviceManager::getAudioDeviceSetup() const


#1

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.


#2

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


#3

Yup. I’ve added it to develop.


#4

@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