love.audio_newSource - oblerion/love2d.js GitHub Wiki
call
let song = love.audio_newSource(filename,type);
parameter
- filename : string file path. be aware it can't verify path of file. file is (mp3 ogg wav)
- type : "static" or "streaming" , once play or loop play
return
return at Song object, play with love.audio_play(object) pause with love.audio_pause(object) stop with love.audio_stop(object) set volume with love.audio_setVolume(object) get volume with love.audio_getVolume(object)