Back to index

Play sound effects with these functions.



SndTest = Sound.LoadRaw( rawfile )

Load a .raw sound file into the SndTest variable. Do this before trying to play it.

rawfile is a string that specifies which .raw file is to be loaded. (Example: Sound.LoadRaw( "win.raw" ))

SndTest is the variable used to play the loaded sound later on.





Sound:Play()

Plays the sound.





Sound:Free()

Removes sound from memory, freeing up memory for other things.


Back to index