Audio loss on suspend and resume?

I’m a little reluctant to post this as I am unable to reproduce with the sample audio app - even when I substitute in the sound file I am using in my app into the sample audio app.

Corona SDK 2731. Xcode 7.0. iPad Mini 4 running iOS 9.1.

Tap suspend and resume while audio is playing that uses audio.loadSound().

You may have to suspend and resume several (half a dozen or so) times before experiencing muted sound. I’ve removed all “applicationResume” code in OnSystemEvent(event) just in case it is causing sound mute on resume. Makes no difference. I still experience sound mute on resume.

Is anyone else able to reproduce this? 

As bizarre as this founds - I have located the culprit. iAd interstitials.

If you are using iAd interstitials then test suspend and resume and insert some print statements into OnSystemEvent(event).

You will discover that once an iAd interstitial has been either preloaded or shown you will (may take 2 or 3 attempts) see resume followed immediately after suspend when ONLY suspend has been activated by tapping the home button.

The Xcode log shows an error message pertaining to audio that appears between suspend and resume:"

Error setting audio session active to 1! ‘!pla’

"

I can’t monitor iAd interstitial performance in iTunes Connect so I have them disabled. Disabling iAd interstitials and testing with Vungle, AdMob, AdBuddiz and Chartboost (that’s gotta hurt AdRally going foward - no?) results in normal suspend/resume prints in OnSystemEvent(event) and no muted audio! :-)  

Can you put together a sample that demos this and file a bug report?

Bug reports should be a complete project (main.lua, build.settings, config.lua and any assets to run the program). It should be able to be unzipped and run.

Thanks

Rob

Has there been any resolution or workaround found for this?  I’m having the same issue.   My audio stream does not resume after going home and back to my app – I see the same error mentioned above in xcode log, 

“Error setting audio session active to 1! ‘!pla’”

and, music resumes correctly if I don’t load an iad interstitial first.  

Also, of interest, multitouch doesn’t work until an iad interstitial is loaded…

I’m using daily build 2799.

Thanks

Don

I don’t know if any one as filed a bug report or not. It’s really helpful to me if when filing a bug report, when the person gets the confirmation email back that they post the CaseID back to the thread. That way I can go look up things.

Rob

I submitted a bug report, Case 44560.

Don

As bizarre as this founds - I have located the culprit. iAd interstitials.

If you are using iAd interstitials then test suspend and resume and insert some print statements into OnSystemEvent(event).

You will discover that once an iAd interstitial has been either preloaded or shown you will (may take 2 or 3 attempts) see resume followed immediately after suspend when ONLY suspend has been activated by tapping the home button.

The Xcode log shows an error message pertaining to audio that appears between suspend and resume:"

Error setting audio session active to 1! ‘!pla’

"

I can’t monitor iAd interstitial performance in iTunes Connect so I have them disabled. Disabling iAd interstitials and testing with Vungle, AdMob, AdBuddiz and Chartboost (that’s gotta hurt AdRally going foward - no?) results in normal suspend/resume prints in OnSystemEvent(event) and no muted audio! :-)  

Can you put together a sample that demos this and file a bug report?

Bug reports should be a complete project (main.lua, build.settings, config.lua and any assets to run the program). It should be able to be unzipped and run.

Thanks

Rob

Has there been any resolution or workaround found for this?  I’m having the same issue.   My audio stream does not resume after going home and back to my app – I see the same error mentioned above in xcode log, 

“Error setting audio session active to 1! ‘!pla’”

and, music resumes correctly if I don’t load an iad interstitial first.  

Also, of interest, multitouch doesn’t work until an iad interstitial is loaded…

I’m using daily build 2799.

Thanks

Don

I don’t know if any one as filed a bug report or not. It’s really helpful to me if when filing a bug report, when the person gets the confirmation email back that they post the CaseID back to the thread. That way I can go look up things.

Rob

I submitted a bug report, Case 44560.

Don