mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 23:57:13 +02:00
Code style fixes
This commit is contained in:
parent
4290eb21ea
commit
bd6ac7a39e
5 changed files with 20 additions and 19 deletions
|
@ -254,8 +254,9 @@ void AudioDeviceScriptingInterface::currentDeviceUpdate(const QString &name, QAu
|
|||
|
||||
for (int i = 0; i < _devices.size(); i++) {
|
||||
ScriptingAudioDeviceInfo di = _devices.at(i);
|
||||
if (di.mode != mode)
|
||||
if (di.mode != mode) {
|
||||
continue;
|
||||
}
|
||||
if (di.selected && di.name != name ) {
|
||||
di.selected = false;
|
||||
_devices[i] = di;
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
const INPUT = "Input";
|
||||
const OUTPUT = "Output";
|
||||
|
||||
const SELECT_AUDIO_SCRIPT_STARTUP_TIMEOUT = 300;
|
||||
//
|
||||
// VAR DEFINITIONS
|
||||
//
|
||||
|
@ -195,7 +195,7 @@ Script.setTimeout(function () {
|
|||
setupAudioMenus();
|
||||
debug("Checking HMD audio status...")
|
||||
checkHMDAudio();
|
||||
}, 300);
|
||||
}, SELECT_AUDIO_SCRIPT_STARTUP_TIMEOUT);
|
||||
|
||||
debug("Connecting scriptEnding()");
|
||||
Script.scriptEnding.connect(function () {
|
||||
|
|
Loading…
Reference in a new issue