MPMoviePlayerController + OpenAL issue
I use an MPMoviePlayerController to play an end sequence in a game. I am using UseApplicationAudioSession:NO for the movie player so it will use it's own audio session.
The video plays fine, but when the game is started again there is music but no sound effects. I am using OpenAL for sound effects and I am getting AL_INVALID_VALUE when I play a sound.
I reset the audio session each time a level starts by calling AudioSessionSetActive(false) and then initializing it again using AudioSessionInitialize with the session category set to kAudioSessionCategory_SoloAmbientSound.
The movie player is released so I don't get how the movie player's audio session is messing with my audio session. The sound effects are fine if I don't run the movie first.
|