use correct api call for audio and correct function call to set stereo input mode

This commit is contained in:
Dante Ruiz 2018-03-06 16:17:27 -08:00
parent 16bb992d8d
commit 97d283cc5f

View file

@ -131,7 +131,7 @@ Rectangle {
text: qsTr("use stereo for stereo devices");
checked: false;
onClicked: {
var success = Audio.setIsStereoInput(checked);
var success = AudioScriptingInterface.setStereoInput(checked);
if (!success) {
checked = !checked;
}
@ -219,7 +219,7 @@ Rectangle {
onPressed: {
if (!checked) {
stereoMic.checked = false;
Audio.setIsStereoInput(false); // the next selected audio device might not support stereo
AudioScriptingInterface.setStereoInput(false); // the next selected audio device might not support stereo
AudioScriptingInterface.setInputDevice(info, bar.currentIndex === 1);
}
}