Set
These are setters
Set TimeStamp
exports['mx-surround']:setTimeStamp(source, soundId, timeStamp)
Parameters
source:
number
soundId:
string
timeStamp:
number
Set Volume
exports['mx-surround']:setVolumeMax(source, soundId, volume, disableOverWrite)
Parameters
source:
number
soundId:
string
volume:
number
disableOverWrite?:
boolean
If true, volume will not be overwritten by sound profile
Set Type
exports['mx-surround']:setStereoMode(source, soundId, stereo)
Parameters
source:
number
soundId:
string
stereo:
boolean
If this is false, it will be spatial (3D)
Set Panner
exports['mx-surround']:setPanner(source, soundId, panner)
Parameters
source:
number
soundId:
string
panner:
PannerNode
Set Coords
exports['mx-surround']:setCoords(source, soundId, coords, xSound)
Parameters
source:
number
soundId:
string
coords:
vector3
xSound?:
boolean
Set TimeStamp
exports['mx-surround']:setTimeStamp(source, soundId, timeStamp)
Parameters
source:
number
soundId:
string
coords:
number
Set Loop
exports['mx-surround']:setSoundLoop(source, soundId, loop)
Parameters
source:
number
soundId:
string
loop:
boolean
Set Max Distance
exports['mx-surround']:setMaxDistance(source, soundId, maxDistance)
Parameters
source:
number
soundId:
string
maxDistance:
number
Set Destroy On Finish
exports['mx-surround']:setDestroyOnFinish(source, soundId, destroyOnFinish)
Parameters
source:
number
soundId:
string
destroyOnFinish:
number
Last updated
Was this helpful?