LoadSound troubles

BlitzMax Forums/BlitzMax Programming/LoadSound troubles

gman(Posted 2006) [#1]
i having a bit of trouble getting a sound to load. the only thing LoadSound returns is a null. the code is pretty straightforward:
SuperStrict

Framework BRL.Basic
Import BRL.Audio

If FileType("impactlarge.wav")=1 Then
	Local sound:TSound=LoadSound("impactlarge.wav",True)
	PlaySound sound
EndIf

the sound is from the samples and works fine in media player. i have tried other sounds too and they all fail. is there something im not including in my project that this relies upon? i have successfully run samples with sound.

any thoughts would be appreciated.

thx.


Chris C(Posted 2006) [#2]
import BRL.WAVLoader ??


gman(Posted 2006) [#3]
oooh duh! thx :)


Chris C(Posted 2006) [#4]
np, we all do it.... ;)