GLBasic User Manual

Main sections

LOADSOUND

LOADSOUND file$, num%, buffers%



Loads the wav file file$ (PCM-wav format only) to be used with the ID num%.
buffers% is a value from 1 to 4 specifying the number of times a sound can be played without being cut off.
Warning: Every buffer requires memory to store the data.

Sample:
 
LOADSOUND "Super.wav", 0, 1
PRINT "SUPER", 100, 100
SHOWSCREEN
PLAYSOUND 0, 0
MOUSEWAIT

See also...