mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-08 15:49:21 +02:00
use correct api call for audio and correct function call to set stereo input mode
This commit is contained in:
parent
16bb992d8d
commit
97d283cc5f
1 changed files with 2 additions and 2 deletions
|
@ -131,7 +131,7 @@ Rectangle {
|
||||||
text: qsTr("use stereo for stereo devices");
|
text: qsTr("use stereo for stereo devices");
|
||||||
checked: false;
|
checked: false;
|
||||||
onClicked: {
|
onClicked: {
|
||||||
var success = Audio.setIsStereoInput(checked);
|
var success = AudioScriptingInterface.setStereoInput(checked);
|
||||||
if (!success) {
|
if (!success) {
|
||||||
checked = !checked;
|
checked = !checked;
|
||||||
}
|
}
|
||||||
|
@ -219,7 +219,7 @@ Rectangle {
|
||||||
onPressed: {
|
onPressed: {
|
||||||
if (!checked) {
|
if (!checked) {
|
||||||
stereoMic.checked = false;
|
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);
|
AudioScriptingInterface.setInputDevice(info, bar.currentIndex === 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue