MediaPlayer Ruins my Sound Engine

Discussion in 'iOS Programming' started by zcarter, Sep 17, 2008.

  1. zcarter macrumors member

    Joined:
    Apr 21, 2007
    #1
    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
     
  2. firewood macrumors 604

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #2
    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.
     

Share This Page