PDA

View Full Version : MediaPlayer Ruins my Sound Engine




zcarter
Sep 17, 2008, 05:53 PM
Hey..

I'm playing a video on the iPhone using my mediaframework and I also initialize about 10 sounds before the video plays.

After the video plays...it somehow destroys all sound initializations and they don't work...but if i comment out the video it works fine..Any ideas how to prevew this so I can do all the loading in the beginning?


Thanks,

Zac



firewood
Sep 18, 2008, 01:53 PM
One possibility... You might have to suspend your audio session while the media player runs. Look at the speakhere example for some audio session example code.