| TSound: | Methods | Functions |
| Play | Play the sound |
| Cue | Cue the sound for playback |
| Load | Load sound |
| Method Play:TChannel( alloced_channel:TChannel=Null ) | |
| Returns | An audio channel object |
| Description | Play the sound |
| Information | Starts a sound playing through an audio channel. If no channel is specified, Play automatically allocates a channel for you. |
| Method Cue:TChannel( alloced_channel:TChannel=Null ) | |
| Returns | An audio channel object |
| Description | Cue the sound for playback |
| Information |
Prepares an audio channel for playback of a sound.
To actually start the sound, you must use the channel's SetPaused method.
If no channel is specified, Cue automatically allocates a channel for you.
Cue allows you to setup various audio channel states such as volume, pan, depth and rate before a sound actually starts playing. |
| Function Load:TSound( url:Object,loop_flag ) | |
| Returns | A sound object |
| Description | Load sound |
| Information | url can be either a string, a stream or an audio sample object. The returned sound object can be played using Play or Cue. |