aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js/display.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-04-01 12:01:34 -0700
committerAlex Yatskov <alex@foosoft.net>2017-04-01 12:01:34 -0700
commit4de9e5e9e06031e163bfeb27f83a8614f912d454 (patch)
tree806a43c7131aa56d9e2d6db5cf9dbbfd4d76aae8 /ext/mixed/js/display.js
parentf556c95038e2ef9e4d97b4168ce417ba0d74282f (diff)
support for audio volume adjustment (fixes #39)
Diffstat (limited to 'ext/mixed/js/display.js')
-rw-r--r--ext/mixed/js/display.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index 9738319a..36609525 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -343,6 +343,7 @@ class Display {
let audio = this.audioCache[url];
if (audio) {
audio.currentTime = 0;
+ audio.volume = this.options.general.audioVolume / 100.0;
audio.play();
} else {
audio = new Audio(url);
@@ -352,6 +353,7 @@ class Display {
}
this.audioCache[url] = audio;
+ audio.volume = this.options.general.audioVolume / 100.0;
audio.play();
};
}