This stops the music when the game goes into pause, it restarts it when the game resumes. This works fine on desktop but not so good on mobile with Phonon...
This commit is contained in:
@@ -100,7 +100,8 @@ public:
|
||||
static string systemError;
|
||||
static JMusic* music;
|
||||
static string currentMusicFile;
|
||||
static void playMusic(string filename, bool loop = true);
|
||||
static void playMusic(string filename = "", bool loop = true);
|
||||
static void stopMusic();
|
||||
static int players[2];
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user