Hey guys,
I could use a little help in trying to fix a bug I have within my app. I use AudioServicesPlaySystemSound to play a few different kinds of alerts within my app. Basically, I have 10 nibs (starting with a main menu) and as you progress through the game you move on to each one in succession. On the last one, you win the game, hit a button and it takes you back to the main menu. The problem occurs once I beat the game, go back to the main menu, put the app in the background, and then reopen it. When I reopen it and hit the "play" button (i.e. to start another game), it randomly plays the "Win Game" sound (maybe a 5-8 second sound) from the previous game's win menu. I can't figure out why. I have tried releasing everything I can think of, disposed of the System sound IDs, etc. The only thing that makes sense is that the previous game's "win menu" must get called upon return to the foreground but I don't know why that would happen.
Any help would be appreciated. I have stuggled with this for a week.

I could use a little help in trying to fix a bug I have within my app. I use AudioServicesPlaySystemSound to play a few different kinds of alerts within my app. Basically, I have 10 nibs (starting with a main menu) and as you progress through the game you move on to each one in succession. On the last one, you win the game, hit a button and it takes you back to the main menu. The problem occurs once I beat the game, go back to the main menu, put the app in the background, and then reopen it. When I reopen it and hit the "play" button (i.e. to start another game), it randomly plays the "Win Game" sound (maybe a 5-8 second sound) from the previous game's win menu. I can't figure out why. I have tried releasing everything I can think of, disposed of the System sound IDs, etc. The only thing that makes sense is that the previous game's "win menu" must get called upon return to the foreground but I don't know why that would happen.
Any help would be appreciated. I have stuggled with this for a week.
