diff options
| author | sowgro <tpoke.ferrari@gmail.com> | 2023-06-05 08:27:43 -0400 | 
|---|---|---|
| committer | sowgro <tpoke.ferrari@gmail.com> | 2023-06-05 08:27:43 -0400 | 
| commit | e444503c77120908126de325d86b32bd3fb327e0 (patch) | |
| tree | 71289d6034d2548a9c294a3a69985d8a062e6b9d | |
| parent | 874bbf24537caf0a89d7a88c622f846e8a5d0a0f (diff) | |
| download | NPEhero-e444503c77120908126de325d86b32bd3fb327e0.tar.gz NPEhero-e444503c77120908126de325d86b32bd3fb327e0.tar.bz2 NPEhero-e444503c77120908126de325d86b32bd3fb327e0.zip | |
seperate end song and start menu song
| -rw-r--r-- | src/main/SoundController.java | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/src/main/SoundController.java b/src/main/SoundController.java index 55d40f4..0d2061c 100644 --- a/src/main/SoundController.java +++ b/src/main/SoundController.java @@ -35,7 +35,7 @@ public class SoundController          songMediaPlayer.play();      } -    private void playMenuSong() +    public void playMenuSong()      {          playSong(mainMenuSong);          songMediaPlayer.setCycleCount(MediaPlayer.INDEFINITE); @@ -44,7 +44,10 @@ public class SoundController      public void endSong()      { -        playMenuSong(); +        if (songMediaPlayer != null) +        { +            songMediaPlayer.stop(); +        }      }      public void playSfx(File sfxFile)  | 
