Issue With Sounds

Discussion in 'iOS Programming' started by priyank.ranka, Dec 2, 2008.

  1. priyank.ranka macrumors member

    Jun 11, 2008
    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. firewood macrumors 604

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

    Jun 11, 2008
    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