Game Development Community

No more sounds after iPod was turn off and then on again

by Mike Moore · in iTorque 2D · 06/18/2009 (3:01 pm) · 4 replies

Hello,

This is something I can´t deal with and I did not found any info through the "search forums" option.

I was playing the game but the iPod was accidentally turned off and after turning the iPod on again, no more sounds were played at all. So I need to ask:

Is there some script/instruction I should include in the game to prevent a malfunction if the user turns off his iPod/iPhone?

Thanks,
Mike

#1
06/18/2009 (3:22 pm)
You just have to reinit the audio session on reactivation
#2
06/18/2009 (4:13 pm)
DUH!

@Marc,

I guess that... but how??? -sorry, but completely lost with this- :(

Thanks!!!

Mike
#3
06/18/2009 (5:06 pm)
This will require modification of the platform code and the resume handler, nothing that can be done through scripting.
#4
06/18/2009 (5:47 pm)
@Marc,

Thanks for your answer. So, when you talk about the platform, are you talking about the iPod platform? So I guess I won´t worry about this for now.

Cheers

Mike