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:
And when the attract mode starts...
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?
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?