Major Android audio bug since 2014.2228

From 2014.2228 (maybe earlier) and onwards including 2014.2248 on three different Android devices.

Here’s what happens:

Load game:  All works as normal.  Music and sound plays.

Press back button on device to quit app.

Press app icon to load app again:  No Sound!

Press Home button on device to go back to device home screen.

Press app icon to show app:  Sound restarts.

So for some reason, pressing the back button to exit the app completely, will kill the audio on next load.

And it will only come back by pressing the Home button and then reloading the app.

I have confirmed this on a few Android devices including the Samsung Galaxy SII.

Also, I have an older version of same app that works fine so it’s not my code.

I have also tested it on another app and same issue.

I can’t release my new app with this bug as I wait for an audio.play onComplete which never triggers.

Also just tried it with the Audio Player sample app with same issue.

Steps to reproduce on Audio Player Sample app:

Load app.

Press Play button  >> Sound plays

Press Android Back button.

Load app

Press play button >>> No Sound!!!

Press Home Button

Load app

Press play button >>> Sound has returned

Bug Submission: 31965.

I hope this is fixed in the next few days as I’m planning on releasing our new app next week sometime, or not at all until this is fixed.

God speed!!!

Can someone please test this scenario, it won’t take a minute (you can use the sample app>Audio Player) as it affects all android apps created on 2014.2228 and after (and possibly before) that contain sound.

The more heat the quicker it gets fixed.

Sounds a lot like the issue reported here:

http://forums.coronalabs.com/topic/46724-android-audio-api-stops-working-on-second-launch/#entry241592

I’m having the *exact* same issue…

I’ve also reported it with a test project as case 31980.

It’s a big bummer as I need to publish my app quickly. 

Luckily, the app is still useful as I use the media.* API for short sounds which still work.

It’s the sounds loaded with the audio.* API that are the problem.

I’m seeing this bug with my app on an ASUS Nexus 7 (Android 4.3), built with daily 2248.

Hi,

This issue has been fixed and will be in daily build 2259.

Thank you once again Corona for dealing with these bugs in a short time frame.  

My thanks go out to all of the team.  

Now I can finally release my new app by the end of next week.  Very happy :slight_smile:

Yeah, it was perfect timing for me as well.

Thanks CoronaLabs!

Bug Submission: 31965.

I hope this is fixed in the next few days as I’m planning on releasing our new app next week sometime, or not at all until this is fixed.

God speed!!!

Can someone please test this scenario, it won’t take a minute (you can use the sample app>Audio Player) as it affects all android apps created on 2014.2228 and after (and possibly before) that contain sound.

The more heat the quicker it gets fixed.

Sounds a lot like the issue reported here:

http://forums.coronalabs.com/topic/46724-android-audio-api-stops-working-on-second-launch/#entry241592

I’m having the *exact* same issue…

I’ve also reported it with a test project as case 31980.

It’s a big bummer as I need to publish my app quickly. 

Luckily, the app is still useful as I use the media.* API for short sounds which still work.

It’s the sounds loaded with the audio.* API that are the problem.

I’m seeing this bug with my app on an ASUS Nexus 7 (Android 4.3), built with daily 2248.

Hi,

This issue has been fixed and will be in daily build 2259.

Thank you once again Corona for dealing with these bugs in a short time frame.  

My thanks go out to all of the team.  

Now I can finally release my new app by the end of next week.  Very happy :slight_smile:

Yeah, it was perfect timing for me as well.

Thanks CoronaLabs!