Greetings!
I’m having some problems playing .mp3 and .wav files downloaded from my local web server.
In the simulator it works fine but when I install the app on my android phone it doesn’t play anything.
My code is very simple:
local function networkListener( event ) if ( event.phase == "ended" ) then local laserSound = audio.loadSound( "download.wav", system.DocumentsDirectory) local laserChannel = audio.play( laserSound ) end end local params = {} params.progress = true network.download( "http://192.168.1.69/new/download.wav", "GET", networkListener, params, "download.wav", system.DocumentsDirectory )
If I try the similar process with image files it works fine both in the simulator and in the phone.
Do you guys know what may be the problem here?
Thank you,
Luís