mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 11:58:10 +02:00
update audio bar only when tablet is shown
This commit is contained in:
parent
752051834d
commit
fc186a281f
1 changed files with 5 additions and 3 deletions
|
@ -95,9 +95,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
Script.setInterval(function() {
|
Script.setInterval(function() {
|
||||||
|
if (tabletShown) {
|
||||||
var currentMicLevel = getMicLevel();
|
var currentMicLevel = getMicLevel();
|
||||||
var tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
|
var tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
|
||||||
tablet.updateAudioBar(currentMicLevel);
|
tablet.updateAudioBar(currentMicLevel);
|
||||||
|
}
|
||||||
}, MIC_LEVEL_UPDATE_INTERVAL_MS);
|
}, MIC_LEVEL_UPDATE_INTERVAL_MS);
|
||||||
|
|
||||||
}()); // END LOCAL_SCOPE
|
}()); // END LOCAL_SCOPE
|
||||||
|
|
Loading…
Reference in a new issue