Sound & CD Commands
Wave
WavePlay("PATH TO WAVE","command")
WaveStop()
Wave comands. Play or stop external or internal (embedded) Wav file.
In the command you can specify LOOP, this will loop the wave until you use
WaveStop().
Be aware looping works best with DirectSound. Without direct sound you will
have gaps between the loops.
To use embedded wave just put the name of the wave without any path.
The names of embedded waves are (and must be) without extension.
MP3
MP3Open("PATH TO MP3")
MP3Play()
MP3Stop()
MP3Pause()
MP3 commands. MP3 file must be external. You have many ways how to play MP3
file (External Commands and Page Actions – there you have also MP3 FW and BW,
From Page properties, from Sound Actions, from script)
If you use empty string in MP3Open, the Open file dialog will appear.
Look for CBK Objects to see how to get feedback from the mp3 player.
CD
CDPlay()
CDStop()
CDPause()
CDTrack("NUMBER OF TRACK")
CDFW()
CDBW()
CDPlayPause()
CD audio commands. Be aware if you making Mixed-mode CD’s the first track has
number 2 (the 1 is the data track)
In CDTrack you can also use the variable: CDTrack("a")
Midi
MidiPlay("PATH TO MIDI","[LOOP]")
MidiStop()
Midi commands. MIDI files are external files.
MOD files
MODOpen("PATH TO MOD")
Open and Play Mod module File.
MODPlay()
Play opened MOD File.
MODStop()
Stop opened MOD File.
PlaySound("path")
Play all supported sound formats. The format depends on file extension. The
command will first stop all currently playing sounds. You can use it after the
FileOpen command passing the <File>
PlaySound(“<File>”);
Volume
VolumeUp("volume")
Increase Master Volume by 5% if no volume parameter specified. Volume
parameter 0- 100 (percent of volume)
Example:
VolumeUp("40")
VolumeDown()
Decrease master Volume by 5%