BASIC

Author Topic: Sounds stop working when App comes from Stand By - iPhone  (Read 2172 times)

Offline fjsantosb

  • Dr. Type
  • ****
  • Posts: 258
    • View Profile
    • Tip Tap Games - iPhone, iPad and iPod Touch Games
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.
« Last Edit: 2010-Jan-30 by fjsantosb »
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

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10708
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
uh-oh.
It might be the GETTIMERALL(), that (for the sleeping app) has a big skip suddenly. Hm...

Offline fjsantosb

  • Dr. Type
  • ****
  • Posts: 258
    • View Profile
    • Tip Tap Games - iPhone, iPad and iPod Touch Games
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

Offline Sokurah

  • Mr. Polyvector
  • ***
  • Posts: 177
    • View Profile
I checked the "GLBasic iPhone Limitations" link I found in another thread, and it said;

Quote
If 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

Offline fjsantosb

  • Dr. Type
  • ****
  • Posts: 258
    • View Profile
    • Tip Tap Games - iPhone, iPad and iPod Touch Games
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

  • Guest
Quote
Does 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.

Offline Sokurah

  • Mr. Polyvector
  • ***
  • Posts: 177
    • View Profile
Quote
Does 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