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
Which Gideros Studio version including beta number are you using? (Help->About Gideros Studio...)
And have your tried it with different audio file? Maybe it's mp3 fault.
You're right, it's ok if I use wav format
Thanks!
Note: my mp3 file is using 112 kbps, 44100 Hz
88.198.22.6/downloads/beta
It has a plugin system that you may be interested in, besides there are some functions added so you can run all code snippets you find in this forum.
Edit: What's your OS and version?
I'm using win7 sp1
However, I've another trouble, emulator (iPad) is crashed after Suspend