I too am having this issue on Android. I sucked it up this week and got an ARM7 phone (Samsung Galaxy S) with 2.2 Froyo factory installed (instead of the ARM6 phone I had before).
Doing a very simple experiment with the following code fails - music1 stops at 4 seconds, but music2 doesn’t start.
function playMusic1()
media.playSound("music1.wav",true)
end
function playMusic2()
media.stopSound()
media.playSound("music2.wav",true)
end
playMusic1()
timer.performWithDelay(4000,playMusic2,1)
I have also found that sometimes ‘stopSound’ doesn’t appear to fire at all and I then have more than 1 sound stream playing at the same time…
This issue is present in Release build 484 as well as daily build 489.
Is there some trick or method that I’m missing on Android to force a sound to stop streaming? How can the device even play more than 1 stream at the same time (I thought it was limited to 1).
Hopefully someone can shed some light on this, as its one of the final (of many) Android hurdles I need to overcome to complete my port from iPhone (which works brilliantly). [import]uid: 9428 topic_id: 5774 reply_id: 33217[/import]