SOUND COMMAND SET

Sound files that are stored in the WAV format can be loaded using the sound command set. You can store over a thousand sounds at any one time, and the number you can play simultaneously is limited to the power of your sound card. Most sounds cards today allow you to mix an unlimited number of sounds allowing every sound to be played simultaneously! Sounds can be loaded as 3D sounds or normal sounds. 3D sounds allow the sound to be placed in 3D, perfect for 3D games. All sounds can be played, looped, paused and adjusted in speed and volume.

Click on any commands for more information:

LOAD SOUND will load a sound file into the specified sound number
LOAD 3DSOUND will load a sound file as a 3D sound into the specified sound number
CLONE SOUND will clone an existing sound for multi-sound playback
PLAY SOUND will play the specified sound
LOOP SOUND will play and loop the specified sound continuously
STOP SOUND will stop the specified sound from playing
RESUME SOUND will resume the specified sound if paused
PAUSE SOUND will pause the specified sound whilst it is playing
SET SOUND PAN will set the pan of a standard sound
SET SOUND SPEED will set the frequency used by the specified sound
SET SOUND VOLUME will set the volume used by the specified sound
DELETE SOUND will delete the specified sound previously loaded

POSITION SOUND will position the specified 3D sound in 3D space
POSITION LISTENER will position the listener in 3D space
ROTATE LISTENER will set the direction of the listener

The next commands will return a result:

SOUND EXIST() will return a one if the specified sound exists
SOUND TYPE() will return a one if the specified sound is a special 3D sound
SOUND PLAYING() will return a one if the specified sound is playing
SOUND LOOPING() will return a one if the specified sound is looping
SOUND PAUSED() will return a one if the specified sound is paused
GET SOUND PAN() will return the current pan value of the specified sound
GET SOUND SPEED() will return the frequency of the specified sound number
GET SOUND VOLUME() will return the current volume of the specified sound

SOUND POSITION X() will return the current X position of the specified sound
SOUND POSITION Y() will return the current Y position of the specified sound
SOUND POSITION Z() will return the current Z position of the specified sound
LISTENER POSITION X() will return the current X position of the listener
LISTENER POSITION Y() will return the current Y position of the listener
LISTENER POSITION Z() will return the current Z position of the listener
LISTENER ANGLE X() will return the current X angle of the listeners direction
LISTENER ANGLE Y() will return the current Y angle of the listeners direction
LISTENER ANGLE Z() will return the current Z angle of the listeners direction