mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Adjusted volume to make more balanced.
#story[1249]
This commit is contained in:
@@ -79,7 +79,7 @@ public class Sounds {
|
|||||||
raceMusic = new Media(Sounds.class.getClassLoader().getResource("sounds/Sounds-of-the-ocean.mp3").toString());
|
raceMusic = new Media(Sounds.class.getClassLoader().getResource("sounds/Sounds-of-the-ocean.mp3").toString());
|
||||||
soundEffect = new MediaPlayer(raceMusic);
|
soundEffect = new MediaPlayer(raceMusic);
|
||||||
soundEffect.setCycleCount(MediaPlayer.INDEFINITE);
|
soundEffect.setCycleCount(MediaPlayer.INDEFINITE);
|
||||||
// soundEffect.setVolume(0.3);
|
soundEffect.setVolume(0.3);
|
||||||
soundEffect.play();
|
soundEffect.play();
|
||||||
musicPlayer.setMute(musicMuted);
|
musicPlayer.setMute(musicMuted);
|
||||||
soundEffect.setMute(soundEffectsMuted);
|
soundEffect.setMute(soundEffectsMuted);
|
||||||
@@ -122,6 +122,7 @@ public class Sounds {
|
|||||||
Sounds.class.getClassLoader().getResource("sounds/Sms-notification.mp3")
|
Sounds.class.getClassLoader().getResource("sounds/Sms-notification.mp3")
|
||||||
.toString());
|
.toString());
|
||||||
soundPlayer = new MediaPlayer(finishSound);
|
soundPlayer = new MediaPlayer(finishSound);
|
||||||
|
soundPlayer.setVolume(0.5);
|
||||||
soundPlayer.play();
|
soundPlayer.play();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user