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