Audio stops when switching between apps

It appears that my apps are being affected by the OpenAL audio bug described in this blog post: http://blog.anscamobile.com/2012/06/a-complete-guide-to-filing-bugs-with-apple/

If I switch apps quickly, the app will appear to freeze for a few seconds and then resume with no sound.

The apps in question are using build 767. My iPad is running 5.1.1.

Any ideas on how to fix this? If I just build with a more recent Corona version, will it be fixed? [import]uid: 84258 topic_id: 27345 reply_id: 327345[/import]

Build 791 has a fix for this. We made several attempts to fix this. The final commit message was this:

Audio: Additional tweak to workarounds for iOS/Mac audio suspend and resume problems when running multiple OpenAL apps. We moved the sleep into suspend instead of resume as was able to use 20ms instead of 60ms. You should still file bugs with Apple. Refer to rdar://10081775 and rdar://10929452.
(Repasted response from elsewhere:)
I think the audio bug you are describing was also introduced in iOS 5.0, but affects backgrounding/switching/resuming between multiple programs that use OpenAL. This can crash Apple’s mediaserver daemon process and cause all audio to stop working. Since nothing we do should ever be able to crash an Apple process, this is technically an Apple bug. However, there was something we weren’t doing on suspend which Apple wanted us to do (their documentation was unclear about the difference between audio interruptions and application resigning active). Apple apparently changed stuff between iOS 4 and 5 and this suddenly broke. We fixed this in a daily build within the last two months. [import]uid: 7563 topic_id: 27345 reply_id: 111237[/import]

I’m using build 844 and I still have this same problem. Even on the simulator if I hit Ctrl + Down to suspend and then again to resume, I lose all sound.

Did the fix in build 791 work for anyone else? [import]uid: 84115 topic_id: 27345 reply_id: 116509[/import]

I have the latest stable build and I still have this problem. Please let us know when it will be fixed.

Thanks [import]uid: 89239 topic_id: 27345 reply_id: 119880[/import]

All known bugs related to these issues are now fixed in the latest daily builds. (We just worked around another Apple bug related to leaving/returning via Notification Center or SMS.) If you have another one, we need a you to file a bug report with us and include a simple reproducible test case as well as what iOS versions and other platforms and versions this affects, plus any additional information you can provide.

Your best results will be if you are running iOS 5.1 or later. iOS 5.0 has serious bugs which we mostly worked around, but have some trade offs and may not be perfect.
[import]uid: 7563 topic_id: 27345 reply_id: 119919[/import]

I have the latest stable build and I still have this problem. Please let us know when it will be fixed.

Thanks [import]uid: 89239 topic_id: 27345 reply_id: 119880[/import]

All known bugs related to these issues are now fixed in the latest daily builds. (We just worked around another Apple bug related to leaving/returning via Notification Center or SMS.) If you have another one, we need a you to file a bug report with us and include a simple reproducible test case as well as what iOS versions and other platforms and versions this affects, plus any additional information you can provide.

Your best results will be if you are running iOS 5.1 or later. iOS 5.0 has serious bugs which we mostly worked around, but have some trade offs and may not be perfect.
[import]uid: 7563 topic_id: 27345 reply_id: 119919[/import]