TSound: Methods Functions  


Methods

PlayPlay the sound
CueCue the sound for playback

Functions

LoadLoad sound

Method reference

Method Play:TChannel( alloced_channel:TChannel=Null )
ReturnsAn audio channel object
DescriptionPlay 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 )
ReturnsAn audio channel object
DescriptionCue 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 reference

Function Load:TSound( url:Object,loop_flag )
ReturnsA sound object
DescriptionLoad 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.