fix volume bug

This commit is contained in:
cracker0dks 2015-05-05 01:31:33 +02:00
parent d2df9db668
commit ea3220f909
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,6 @@
var fragen = null;
var intro = null;
var introVolume = 1;
var jeopardy = null;
var schweinchenVolume = 1;
var jeopardyVolume = 1;
@ -200,6 +201,7 @@ function showIntro() {
$(".intro").show();
if(sounds && (display || serverSound)) {
intro = new Audio('./sounds/intro.mp3');
intro.volume = introVolume;
intro.play();
}
}

View File

@ -122,8 +122,9 @@ var connectWs = function() {
} else if(key == "hideIntro") {
hideIntro();
} else if(key == "setIntroVolume") {
introVolume = value;
if(intro != null)
intro.volume = value;
intro.volume = introVolume;
} else if(key == "setLeftPoints") {
setLeftPoints(value);
} else if(key == "setRightPoints") {