SOUND
PlaySound
This command has many purposes. To play a loaded sound (LoadSound), use the sound_variable to play it. To play a sound file from the hard disk without loading it to memory first, use a string to identify its path and filename. To play a CD track use, an integer number. Optionally you can use this as a function to retrieve its channel for later manipulation. Supported formats are: raw, mod, s3m, xm, it, mid, rmi, wav, mp2, mp3, ogg, wma, asf and mo3.
Usage:
PlaySound sound [, volume] [, pan] [, pitch]
or
channel = PlaySound sound [, volume] [, pan] [, pitch]
SetSound
Manipulates a playing channel realtime. You can, for example, fade sounds in/out, or fake over-flying.
Usage:
SetSound channel, mode [, volume] [, pan] [, pitch]
StopSound
Stops a channel
Usage:
StopSound channel
DeleteSound
Frees the specified sound from memory
Usage:
DeleteSound sound_variable
LoadSound
Loads a sound into memory. Supported formats are: raw, wav, mp2, mp3, ogg, wma and asf. Please notice that you should NEVER load anything within a loop. There's a danger that you fill the memory.
Usage:
sound_variable = LoadSound(fileName$)
SoundPlaying
Returns True if the given channel is currently playing. Otherwise Zero.
Usage:
playing = SoundPlaying(channel)
Example:
'Constant play
If Not SoundPlaying (music) Then music = PlaySound("Media\SK_Battle2.mp3")