mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
AudioDeviceManager::initialiseFromXML(): made the default buffer size and sample rate default to ones supplied in the setup if not specified in the XML
This commit is contained in:
parent
e4592d132f
commit
14a9368506
1 changed files with 2 additions and 2 deletions
|
|
@ -346,8 +346,8 @@ String AudioDeviceManager::initialiseFromXML (const XmlElement& xml,
|
|||
currentDeviceType = availableDeviceTypes.getUnchecked(0)->getTypeName();
|
||||
}
|
||||
|
||||
setup.bufferSize = xml.getIntAttribute ("audioDeviceBufferSize");
|
||||
setup.sampleRate = xml.getDoubleAttribute ("audioDeviceRate");
|
||||
setup.bufferSize = xml.getIntAttribute ("audioDeviceBufferSize", setup.bufferSize);
|
||||
setup.sampleRate = xml.getDoubleAttribute ("audioDeviceRate", setup.sampleRate);
|
||||
|
||||
setup.inputChannels .parseString (xml.getStringAttribute ("audioDeviceInChans", "11"), 2);
|
||||
setup.outputChannels.parseString (xml.getStringAttribute ("audioDeviceOutChans", "11"), 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue