Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
urlLoader and mp3 file — Gideros Forum

urlLoader and mp3 file

franMXfranMX Member
edited January 2013 in Game & application design
Hello, I would like to stream a sound file (mp3), currenty I'm using:


--
local loader = UrlLoader.new("http://www.oneworldpuebla.net/t.mp3")



local function onComplete(event)
print("hello, world")
local sound = Sound.new(loader)
sound:play()
end

loader:addEventListener(Event.COMPLETE, onComplete)
-- end


which of course gives me an error:

main.lua:7: bad argument #1 to 'new' (string expected, got table)


How can I get this done?



Regards.

Comments

Sign In or Register to comment.