Android. audio.* API stops working on second launch.

Corona SDK 2014.2248 (Pro version)

Tested on Android 4.0.3 and 4.4.2

I noticed that audio stops playing on second launch on Android platforms.

The following test-code runs fine the first time, but subsequent launches fail to produce any sound.

local s = audio.loadSound("flap.wav"); local r = display.newRect(0,0,200,50) r:setFillColor(0.8); r.x, r.y = display.contentCenterX, display.contentCenterY; local t = display.newText { text = "Press me", font = native.systemFont, fontSize = 20 } t:setFillColor(0); t.x, t.y = display.contentCenterX, display.contentCenterY; local myListener = function(event) if (event.phase == "began") then audio.play(s); end end r:addEventListener("touch", myListener)

Anybody else notice this?

Reported as CaseĀ 31980

Sounds a lot like the issue reported here:

http://forums.coronalabs.com/topic/46692-major-android-audio-bug-since-20142228/#entry241476

Hi,

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

Sounds a lot like the issue reported here:

http://forums.coronalabs.com/topic/46692-major-android-audio-bug-since-20142228/#entry241476

Hi,

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