Handlers
These are handlers
Start
exports['mx-surround']:onPlayStart(soundId, fn)
Parameters
soundId:
string
fn:
function
Stop
exports['mx-surround']:onPlayEnd(soundId, fn)
Parameters
soundId:
string
fn:
function
Pause
exports['mx-surround']:onPlayPause(soundId, fn)
Parameters
soundId:
string
fn:
function
Resume
exports['mx-surround']:onPlayResume(soundId, fn)
Parameters
soundId:
string
fn:
function
Loading
exports['mx-surround']:onLoading(soundId, fn)
Parameters
soundId:
string
fn:
function
Attach
exports['mx-surround']:onAttachEntity(soundId, fn)
Parameters
soundId:
string
fn:
function
Detach
exports['mx-surround']:onDetachEntity(soundId, fn)
Parameters
soundId:
string
fn:
function
Destroy
exports['mx-surround']:onDestroy(soundId, fn)
Parameters
soundId:
string
fn:
function
Time Update
exports['mx-surround']:onTimeUpdate(soundId, fn)
Parameters
soundId:
string
fn:
function
Directly Set
exports['mx-surround']:setSoundHandler(soundId, data)
Parameters
soundId:
string
data:
table
destroy:
function
start:
function
stop:
function
pause:
function
resume:
function
loading:
function
attach:
function
detach:
function
timeupdate:
function
end:
function
Last updated
Was this helpful?