Highlighted

audio on ios broken after sleep

Explorer ,
Jul 10, 2014

Copy link to clipboard

Copied

hi all -

we've been using the AIR sound api, building for iOS, with no problems till now

the problem is: sound works until ipad goes to sleep, no sound from our app when ipad is woken back up

note: we have the app set to exit on suspend, and we dont have this problem when user suspends -- ie, hits the button and goes back to desktop

we only have it when ipad goes to sleep -- ie, screen goes dark but app is still running

anybody else? as far as I can tell our app is not getting any event from iOS when the ipad goes to sleep or wakes back up

once this has all happened and the game has no sound, exiting and restarting makes it work again

thanks for your help

update:

we are, actually, getting an activate event from the native application object when the ipad is woken up

I'm also checking (just because it sounds useful) the value of SoundMixer.areSoundsInaccessible, but that's way off base

I'd say that what I'm looking for is a way to reinitialize the audio stack, when I get the activate event

TOPICS
Development

Views

184

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

audio on ios broken after sleep

Explorer ,
Jul 10, 2014

Copy link to clipboard

Copied

hi all -

we've been using the AIR sound api, building for iOS, with no problems till now

the problem is: sound works until ipad goes to sleep, no sound from our app when ipad is woken back up

note: we have the app set to exit on suspend, and we dont have this problem when user suspends -- ie, hits the button and goes back to desktop

we only have it when ipad goes to sleep -- ie, screen goes dark but app is still running

anybody else? as far as I can tell our app is not getting any event from iOS when the ipad goes to sleep or wakes back up

once this has all happened and the game has no sound, exiting and restarting makes it work again

thanks for your help

update:

we are, actually, getting an activate event from the native application object when the ipad is woken up

I'm also checking (just because it sounds useful) the value of SoundMixer.areSoundsInaccessible, but that's way off base

I'd say that what I'm looking for is a way to reinitialize the audio stack, when I get the activate event

TOPICS
Development

Views

185

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jul 10, 2014 0

Have something to add?

Join the conversation