Skip to content

Commit

Permalink
- Update AudioService to use the right file.
Browse files Browse the repository at this point in the history
- Add new sound file
  • Loading branch information
Trenair authored and Sheikah45 committed Jun 26, 2024
1 parent 8de7173 commit b7a19bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/faforever/client/audio/AudioService.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class AudioService implements InitializingBean {
private static final String FRIEND_OFFLINE_SOUND = "theme/sounds/friendOfflineSound.mp3";
private static final String FRIEND_JOINS_GAME_SOUND = "theme/sounds/friendJoinsGameSound.mp3";
private static final String FRIEND_PLAYS_GAME_SOUND = "theme/sounds/friendPlaysGameSound.mp3";
private static final String MATCH_FOUND_SOUND = "theme/sounds/friendPlaysGameSound.mp3";
private static final String MATCH_FOUND_SOUND = "theme/sounds/matchFoundSound.mp3";

private final AudioClipPlayer audioClipPlayer;
private final ThemeService themeService;
Expand Down Expand Up @@ -67,7 +67,7 @@ private void loadSounds() throws IOException {
friendOfflineSound = loadSound(FRIEND_OFFLINE_SOUND);
friendJoinsGameSound = loadSound(FRIEND_JOINS_GAME_SOUND);
friendPlaysGameSound = loadSound(FRIEND_PLAYS_GAME_SOUND);
playMatchFoundSound = loadSound(FRIEND_PLAYS_GAME_SOUND);
playMatchFoundSound = loadSound(MATCH_FOUND_SOUND);
}

private AudioClip loadSound(String sound) throws IOException {
Expand Down Expand Up @@ -156,7 +156,7 @@ public void playMatchFoundSound() {
if (!notificationPrefs.isMatchFoundSoundEnabled()) {
return;
}
playSound(friendPlaysGameSound);
playSound(playMatchFoundSound);
}


Expand Down
Binary file not shown.

0 comments on commit b7a19bd

Please sign in to comment.