EDIT: After finding that it also crashes the device I think a bugfix is URGENT!
While figuring out what may I have wrong with my table listener I just discovered that your example code for media.playSound() is creating a crash in the simulator for Beta 5 and Game Edition Alpha.
I write about this code:
local onComplete
onComplete = function(event)
print( "sound play ended" )
media.playSound( "song1.mp3", onComplete )
end
media.playSound( "song1.mp3", onComplete )
Documented here: http://developer.anscamobile.com/content/multimedia-features#Completion_Listener-1
The listener itself works as function and as table listener… but reloading the Simulator leads to a crash which makes it impossible to work with this functionality…
The only “workaround” is to not use it… maybe only use it on the device itself. I did NOT check if it crashes on the device yet to on exit…
Can we have this fixed asap? [import]uid: 6928 topic_id: 1380 reply_id: 301380[/import]
[import]uid: 6928 topic_id: 1380 reply_id: 4009[/import]