class Sound (client-side)
Available since version: 0.3.0
This class represents an internal sound method.
Constructor
Sound.new(string file)
Parameters:
stringfile: Sound file path.
Properties
string file
Represents the sound file path.
number playingTime (read-only)
Represents the current playback time.
number volume
Represents the playback volume.
boolean looping
Represents whether the sound should loop.
number balance
Represents the stereo balance (pan).
Methods
play
This method will start Sound playback.
void play()
stop
This method will stop Sound playback.
void stop()
isPlaying
This method will return whether the Sound is currently playing.
boolean isPlaying()
Returns boolean:
True if the sound is playing.
Callbacks
No callbacks.