[edit] vx.Sound
A non-looping sound effect that can be played across several channels.
[edit] Constructors
vx.Sound(filename)
- Tries to load a sound from a file on disk.
[edit] Methods
vx.Sound:Free()
- Destroys the sound handle. Any further sound operations on this object will probably not end so pretty.
vx.Sound:Play([volume]) -> vx.SoundChannel
- Plays the sound, and returns a sound channel object.
- Each sound channel has the following methods:
channel:Stop()
- Stops the sound immediately.
channel:IsPlaying() -> boolean
- Returns whether or not this channel is still active.