mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 09:33:36 +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() {
|
||||
var currentMicLevel = getMicLevel();
|
||||
var tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
|
||||
tablet.updateAudioBar(currentMicLevel);
|
||||
if (tabletShown) {
|
||||
var currentMicLevel = getMicLevel();
|
||||
var tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
|
||||
tablet.updateAudioBar(currentMicLevel);
|
||||
}
|
||||
}, MIC_LEVEL_UPDATE_INTERVAL_MS);
|
||||
|
||||
}()); // END LOCAL_SCOPE
|
||||
|
|
Loading…
Reference in a new issue