From 4de9e5e9e06031e163bfeb27f83a8614f912d454 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 1 Apr 2017 12:01:34 -0700 Subject: support for audio volume adjustment (fixes #39) --- ext/mixed/js/display.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext/mixed/js') 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(); }; } -- cgit v1.2.3