This commit is contained in:
Astro 2011-04-23 21:25:08 +02:00
parent fc96774ece
commit 64f2960481
3 changed files with 3 additions and 0 deletions

BIN
buzz.ogg Normal file

Binary file not shown.

View File

@ -74,6 +74,7 @@
<audio src="richtig.ogg" id="audio_right"></audio>
<audio src="falsch.ogg" id="audio_wrong"></audio>
<audio src="timeout.ogg" id="audio_timeout"></audio>
<audio src="buzz.ogg" id="audio_buzz"></audio>
</div>
</body>
</html>

View File

@ -442,6 +442,8 @@ function switchToGame() {
sendToBackend({ buzzerLED: [i, i === player ? 1 : 0] });
}
sendToBackend({ buzzerLED: [player, 1] });
$('#audio_buzz')[0].load();
$('#audio_buzz')[0].play();
};
for(var i = 0; i < playerNames.length; i++) {
sendToBackend({ buzzerLED: [i, 1] });