mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 02:44:50 +00:00
"Fixed double sound bug"
This commit is contained in:
@@ -128,6 +128,7 @@ public class SoundManager {
|
||||
mediaPlayer.play();
|
||||
activeMusic.add(mediaPlayer);
|
||||
logger.info("Playing background music: {}", ma.getFile().getName());
|
||||
logger.info("Background music next in line: {}", backgroundMusicQueue.peek().getFile().getName());
|
||||
}
|
||||
|
||||
private long playSound(String audioFileName, boolean loop) throws UnsupportedAudioFileException, LineUnavailableException, IOException {
|
||||
@@ -150,7 +151,7 @@ public class SoundManager {
|
||||
clip.start();
|
||||
}
|
||||
|
||||
logger.info("Playing sound: {}", asset.getFile().getName());
|
||||
logger.debug("Playing sound: {}", asset.getFile().getName());
|
||||
|
||||
// Generate id for clip
|
||||
long clipId = idGenerator.nextId();
|
||||
|
||||
Reference in New Issue
Block a user