PDA

View Full Version : Issue With Sounds




priyank.ranka
Dec 2, 2008, 04:48 AM
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.



firewood
Dec 2, 2008, 12:52 PM
Did you set your audio session and audio session interrupt handlers? (As in the SpeakHere example.)

priyank.ranka
Dec 16, 2008, 05:21 AM
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