music = PlaySound("sound.wav")
1 should repeat the sample, but it result in a crash.
I've seen this on the finnish forum, but this solution doesn't make perfect loops. (Btw there was SetSound in the code)SetSound
Manipulates a playing channel realtime. You can, for example, fade sounds in/out, or fake over-flying.
SetSound channel, mode [, volume] [, pan] [, pitch]
channel can be retrieved from PlaySound()
mode works only for loaded sounds. 1 = repeat, 0 = play once
Code: Select all
... If SoundPlaying(music)=OFF Then music=PlaySound("frenchtouch-01.wav") EndIf ...