Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Application (emualtor) is crashed when triggering Event.SOUND_COMPLETE — Gideros Forum

Application (emualtor) is crashed when triggering Event.SOUND_COMPLETE

RickyngkRickyngk Member
edited January 2012 in Bugs and issues
Hi,

I use example Music Player, and add following code to get SOUND_COMPLETE event. Unfortunately, app crashed when finish music stream (I guess it's crashed when triggering SOUND_COMPLETE
Would you please give me a hint!

Code:
-- load the mp3 file
local sound = Sound.new("Pitx_-_Black_Rainbow.mp3")

-- and start playing
local channel = sound:play()
channel:addEventListener(Event.SOUND_COMPLETE,
function()
print("here")
end
)

Comments

Sign In or Register to comment.