* Added sound for starting game.

This commit is contained in:
LevelX2 2014-12-05 20:13:48 +01:00
parent 8748220ce2
commit cee5d0d487
3 changed files with 11 additions and 0 deletions

Binary file not shown.

View file

@ -377,6 +377,8 @@ public final class GamePanel extends javax.swing.JPanel {
this.gameChatPanel.connect(session.getGameChatId(gameId));
if (!session.joinGame(gameId)) {
removeGame();
} else {
AudioManager.playYourGameStarted();
}
}

View file

@ -43,6 +43,7 @@ public class AudioManager {
private MageClip onCountdown1 = null;
private MageClip onDraftSelect = null;
private MageClip yourGameStarted = null;
private MageClip playerJoinedTable = null;
private MageClip playerSubmittedDeck = null;
private MageClip playerWhispered = null;
@ -237,6 +238,14 @@ public class AudioManager {
checkAndPlayClip(getManager().playerJoinedTable);
}
public static void playYourGameStarted() {
if (audioManager.yourGameStarted == null) {
audioManager.yourGameStarted = new MageClip(audioManager.loadClip(Constants.BASE_SOUND_PATH + "OnYourGameStarted.wav"),
AudioGroup.GameSounds);
}
checkAndPlayClip(getManager().yourGameStarted);
}
public static void playPlayerWhispered() {
if (audioManager.playerWhispered == null) {
audioManager.playerWhispered = new MageClip(audioManager.loadClip(Constants.BASE_SOUND_PATH + "OnPlayerWhispered.wav"),