Sounds stop working when App comes from Stand By - iPhone

Previous topic - Next topic

fjsantosb

Hi there,

While testing my last iPhone App, I have found that sounds stop working when iPhone comes from stand by mode.
Music stop playing and sounds stop working (commands like playsound doesn't work anymore untill you restart your app).

Anyone have detected the same problem?

King Regards, fjsantos.

Update1: I could reproduce the bug, its seems it depends on how much time the iPhone is on stand by mode (about 1 or 2 minuts and the when awake, the music off).

Update2: I get some herratic behaviour when I awake from stand by mode, some of them reset the App.
Francisco Santos Belmonte founder of Tip Tap Games.
Website: www.tiptapgames.com
Twitter: www.twitter.com/tiptapgames
Facebook: http://dld.bz/dYVd
iPhone News & Sales: www.gamesappetizer.com

Kitty Hello

uh-oh.
It might be the GETTIMERALL(), that (for the sleeping app) has a big skip suddenly. Hm...

fjsantosb

Hi,

Thanks for you reply, I tried on differents iPhones (3G, 3Gs) and iPod Touch (1G, 2G) to verify the bug, and i can confirm that.

King Regards, fjsantos.
Francisco Santos Belmonte founder of Tip Tap Games.
Website: www.tiptapgames.com
Twitter: www.twitter.com/tiptapgames
Facebook: http://dld.bz/dYVd
iPhone News & Sales: www.gamesappetizer.com

Sokurah

I checked the "GLBasic iPhone Limitations" link I found in another thread, and it said;

QuoteIf the HOME button is pressed, the operating system will exit your program

Does this mean that it will exit right away, or can you still call a function to save something before exiting, or...?
Website: Tardis remakes / Mostly remakes of Arcade and ZX Spectrum games. All freeware. :-)
Twitter: Sokurah

fjsantosb

Hi Sokurah,

When you hit the 'HOME' button, any application will exit.
But you can save settings or game state on GLB_ON_QUIT, this subroutine is call always that app exit.

King Regards, fjsantos.
Francisco Santos Belmonte founder of Tip Tap Games.
Website: www.tiptapgames.com
Twitter: www.twitter.com/tiptapgames
Facebook: http://dld.bz/dYVd
iPhone News & Sales: www.gamesappetizer.com

MrTAToad

QuoteDoes this mean that it will exit right away, or can you still call a function to save something before exiting, or...?
Gernot has said you have got a very small time before the program will exit - during this available time you can save your data, but no graphics or anything like that can be used.

Sokurah

Quote from: MrTAToad on 2010-Feb-02
QuoteDoes this mean that it will exit right away, or can you still call a function to save something before exiting, or...?
Gernot has said you have got a very small time before the program will exit - during this available time you can save your data, but no graphics or anything like that can be used.

Oops, perhaps I haven't been paying as much attention as I thought. :D

Thanks. ;)
Website: Tardis remakes / Mostly remakes of Arcade and ZX Spectrum games. All freeware. :-)
Twitter: Sokurah