SDK 3.0 iTunes - sound problems from toggling between default music and iTunes
I've added functionality to enable users to play iTunes music instead of my games default music. I used sound engine to play the music and then added code for the music player to take over and play iTunes music. My problem is that my current solution leaves a bug that causes the sound in my game to be disabled.
To put it succinctly, sound has become disabled when toggling between default music to iTunes music. It's probably because I tried some hacky crap that didn't work. I had trouble getting the default player to start up again after iTunes music was being used so I tried to fix the problem by using SoundEngine_Teardown() and SoundEngine_Initialize() to fix my problem. Though it did allow the music to be toggle properly it has disabled my music D:
It should be noted that I use both SoundEngine_StopBackgroundMusic, SoundEngine_UnloadBackgroundMusicTrack to stop the music and both SoundEngine_LoadBackgroundMusicTrack and SoundEngine_StartBackgroundMusic to start the normal default music. Probably not what most people would do but it doesn't work unless I use both.
I've added functionality to enable users to play iTunes music instead of my games default music. I used sound engine to play the music and then added code for the music player to take over and play iTunes music. My problem is that my current solution leaves a bug that causes the sound in my game to be disabled.
To put it succinctly, sound has become disabled when toggling between default music to iTunes music. It's probably because I tried some hacky crap that didn't work. I had trouble getting the default player to start up again after iTunes music was being used so I tried to fix the problem by using SoundEngine_Teardown() and SoundEngine_Initialize() to fix my problem. Though it did allow the music to be toggle properly it has disabled my music D:
It should be noted that I use both SoundEngine_StopBackgroundMusic, SoundEngine_UnloadBackgroundMusicTrack to stop the music and both SoundEngine_LoadBackgroundMusicTrack and SoundEngine_StartBackgroundMusic to start the normal default music. Probably not what most people would do but it doesn't work unless I use both.
Help would be greatly appreciated thank you.
Disregard figured it out. Just needed to reload the assets. Silly me.