Hello again, I need some short advice on saving device settings.
I’m saving XML and it looks like this in a text editor:
DEVICESETUP deviceType="DirectSound" audioOutputDeviceName="Primary Sound Driver" audioInputDeviceName="Primary Sound Capture Driver" audioDeviceRate="88200" audioDeviceBufferSize="832"/>
But when I load it back in, it only sets the device name and type. Sample rate and buffer size all get reset to default. Any idea what’s going on? I’ve follow the code into juce and does grab them from the xml with these lines
setup.bufferSize = xml.getIntAttribute (“audioDeviceBufferSize”, setup.bufferSize);
setup.sampleRate = xml.getDoubleAttribute (“audioDeviceRate”, setup.sampleRate);
But then it ignores them. What am I doing wrong? I’m guessing I’m setting them in the wrong place where should the settings be initialised?