mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 17:03:43 +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");
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue