Playing a lwav file as background music

Blitz3D Forums/Blitz3D Beginners Area/Playing a lwav file as background music

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm not sure what you mean by "weird and loopy", but I suspect that you might be calling PlaySound every time in your loop. Could that be it? Here's what should work:

snd = LoadSound("soundfile.wav") ; <--- Do this ONCE at the beginning of the program, i.e. not in a loop


And when the attract mode starts...
Playsound(snd, 1) ; <--- Do this ONCE at the beginning of attract mode


I'm also not sure what you mean by "setting of the sound file without hiding it in a loop"... If this doesn't work or you can't figure it out, perhaps you could post the basics of your code?