fix volume bug
This commit is contained in:
parent
d2df9db668
commit
ea3220f909
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user