Get

These are getters

Check Sound Is Exists

local soundExists = exports['mx-surround']:soundExists(soundId)

Parameters

  • soundId: string

Returns

  • boolean


Streamer Mode Is Enabled

local enabledStreamerMode = exports['mx-surround']:isStreamerModeEnabled()

Returns

  • boolean


Get TimeStamp

local timeStamp = exports['mx-surround']:getTimeStamp(soundId)

Parameters

  • soundId: string

Returns

  • number | boolean | nil

    • Returns sound' timestamp in seconds


Get Type

Parameters

  • soundId: string

Returns

  • "stereo" | "spatial" | false


Parameters

  • soundId: string

Returns

  • string | false


Get Coords

Parameters

  • soundId: string

Returns

  • vector3 | false


Is Looped

Parameters

  • soundId: string

Returns

  • boolean


Get Info

Parameters

  • soundId: string

Returns

  • table | false


Get Max Duration

Parameters

  • soundId: string

Returns

  • number | false

    • Returns sound' max duration in seconds


Get Volume

Parameters

  • soundId: string

Returns

  • number | false

    • If sound is the dynamic returns maxVolume or is not returns volume


Check Is Playing

Parameters

  • soundId: string

Returns

  • boolean


Check Is Dynamic

Parameters

  • soundId: string

Returns

  • boolean


Check Is Stopped

Parameters

  • soundId: string

Returns

  • boolean


Check Is Paused

Parameters

  • soundId: string

Returns

  • boolean


Get Panner

Parameters

  • soundId: string

Returns

  • PannerNode | false


Is Hearing Any Sound

Returns

  • boolean


Sound Is Loaded

This function waits until a song is created, if not loaded succesfully then returns false

Returns

  • boolean

Last updated

Was this helpful?