 |
Sound
Properties
- number pan
Pan controls
- number pitch
Pitch controls
- number volume
Volume level controls
Constructors
- Sound ( )
Creates an empty sound object
- Sound ( string filename )
Creates a sound object from a file
Constant Methods
- boolean is_playing ( )
Returns true if the sound object is currently playing
Non-Constant Methods
- load ( string filename )
Loads a sound object from a file
- pause ( )
Pauses playing at a given point
- play ( )
Begins playing the loaded sound
- play_loop ( )
Begins playing the loaded sound in a loop
- resume ( )
Resumes playing from the point where it was paused
- stop ( )
Stops playing
|