App sound fails after ad tap through

I have an app that became available on the app store yesterday.  After installing the live version, I noticed that the application sounds that are controlled with the “audio” functions do not work after any iAd (with sound) is tapped through.  The “media” sounds continue to work fine.  I believe that I am losing any audio files that have been loaded to that point and that audio files loaded afterwards work okay.  I’ve not done sufficient testing yet to verify that hypothesis yet though. Everything worked fine in offline testing; this has only surfaced when real ads, with sound, are tapped through.

Has anyone else experienced this issue?

Thanks,

Duane

Hi Duane,

Can you provide more details on this? Build of Corona you used? Devices that you know this is occurring on? Versions of iOS that it’s occurring on? We can attempt to test this, but we need some more details if you can provide them.

Thanks,

Brent Sorrentino

Sure Brent,

Thanks for the reply.  It is an iPad only app running on iOS 6.1.3.  The Corona build that I used was the daily (1168).

I am doing an audio.loadSound dynamically (only the files needed for that session are loaded) and I test if the handles are already there in a table prior to the load.  That works fine until I press thru an iAd that has associated sound.  When I come back from the ad, the audio.play no longer works. it will eventually work again but I am not sure yet of what triggers it to start again (e.f. change volume setting, new session, switch to another running app, etc.).

Duane

Okay, a little more info gleaned from the console in Xcode and some trial and error.

  1. I get the following on the console when I touch through the ad: Aug  5 14:54:21 DUANE-KEELINGs-iPad mediaserverd[40] <Warning>: 14:54:21.186 <com.apple.coremedia.playerserver/AudioControl> AcquireLock – the mutex was already locked

Aug  5 14:54:21 DUANE-KEELINGs-iPad mediaserverd[40] <Warning>: 14:54:21.187 <com.apple.coremedia.playerserver/AudioControl> AcquireLock – the mutex was already locked

  1. I get music back on channel 1 when I close the app with the home button and then reselect it from currently open apps.

  2. Channel 3 sounds do not come back until the next session and then only after channel 1 is back.  These are the sounds that I loaded with a table of audio handles at the start of the session.

  3. There does not seem to be an issue if I touch through on an ad without sound (e.g. one that pushes to a web site).

Thanks in advance for any help.

Duane

Hi Duane,

Can you provide more details on this? Build of Corona you used? Devices that you know this is occurring on? Versions of iOS that it’s occurring on? We can attempt to test this, but we need some more details if you can provide them.

Thanks,

Brent Sorrentino

Sure Brent,

Thanks for the reply.  It is an iPad only app running on iOS 6.1.3.  The Corona build that I used was the daily (1168).

I am doing an audio.loadSound dynamically (only the files needed for that session are loaded) and I test if the handles are already there in a table prior to the load.  That works fine until I press thru an iAd that has associated sound.  When I come back from the ad, the audio.play no longer works. it will eventually work again but I am not sure yet of what triggers it to start again (e.f. change volume setting, new session, switch to another running app, etc.).

Duane

Okay, a little more info gleaned from the console in Xcode and some trial and error.

  1. I get the following on the console when I touch through the ad: Aug  5 14:54:21 DUANE-KEELINGs-iPad mediaserverd[40] <Warning>: 14:54:21.186 <com.apple.coremedia.playerserver/AudioControl> AcquireLock – the mutex was already locked

Aug  5 14:54:21 DUANE-KEELINGs-iPad mediaserverd[40] <Warning>: 14:54:21.187 <com.apple.coremedia.playerserver/AudioControl> AcquireLock – the mutex was already locked

  1. I get music back on channel 1 when I close the app with the home button and then reselect it from currently open apps.

  2. Channel 3 sounds do not come back until the next session and then only after channel 1 is back.  These are the sounds that I loaded with a table of audio handles at the start of the session.

  3. There does not seem to be an issue if I touch through on an ad without sound (e.g. one that pushes to a web site).

Thanks in advance for any help.

Duane