Blitz supports '.wav' and '.mp3' files for playing sound effects.
To load a sound effect, you use the LoadSound command - to play it, use PlaySound.
For example...beep=LoadSound( "beep.wav" )
PlaySound beepNot too tricky! You can also player a sound over and over and over...
beep=LoadSound( "beep.wav" )
LoopSound beep
PlaySound beepStopSound can be used to put and end to such madness!
Looping sounds are useful for background atmospheric noise, or things like car engine sounds and spacecraft thrusters.
There are also commands for setting the volume, pitch and left/right pan of sounds.