Issue With Sounds

Discussion in 'iPhone/iPad Programming' started by priyank.ranka, Dec 2, 2008.

  1. macrumors member

    Joined:
    Jun 11, 2008
    #1
    Hi EveryOne,
    I have issue related to sounds.In my game i m using two ways of playing sound. One is through AudioQueue for playing big background sounds and AudioServicesPlaySystemSound for playing small ingame sound. When call interrupt comes any sound which is been played diminished gradually. But when i resume, the sounds which are played using with AudioServicesPlaySystemSound are played properly again but sounds which are played using AudioQueue are never played again in throughout the game play. Also if i make another variable of AudioQueue after pause to play sound none of it work. Please help. Thanx in advance.
     
  2. macrumors 603

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #2
    Did you set your audio session and audio session interrupt handlers? (As in the SpeakHere example.)
     
  3. thread starter macrumors member

    Joined:
    Jun 11, 2008
    #3
    With this the sound comes back. Thanks a lot but on receiving the call the application terminates and starts from beginning i.e it restarts the application from the beginning where as in SpeakHere it resumes from that point only even when u answer the call...I did the same thing but couldnt get it...If u hve any idea plz do let me know where m i going wrong
     

Share This Page