Set
These are setters
Set Volume
exports['mx-surround']:setVolumeMax(soundId, volume, disableOverWrite)Parameters
soundId:
stringvolume:
numberdisableOverWrite?:
booleanIf true, volume will not be overwritten by sound profile
Set Streamer Mode
exports['mx-surround']:setStreamerMode(bool)Parameters
bool:
boolean
Set Type
exports['mx-surround']:setStereoMode(soundId, stereo)Parameters
soundId:
stringstereo:
booleanIf this is false, it will be spatial (3D)
Set Panner
Parameters
soundId:
stringpanner:
PannerNode
Set Coords
Parameters
soundId:
stringcoords:
vector3xSound?:
boolean
Set TimeStamp
Parameters
soundId:
stringtimeStamp:
number
Set Loop
Parameters
soundId:
stringloop:
boolean
Set Max Distance
Parameters
soundId:
stringmaxDistance:
number
Set Destroy On Finish
Parameters
soundId:
stringdestroyOnFinish:
boolean
Last updated
Was this helpful?