Loopsound

Blitz3D Forums/Blitz3D Programming/Loopsound

Almo(Posted 2004) [#1]
Hi!

I've got a sound, Sound Forge says it's a one-shot, so it shouldn't loop. When I play it in Blitz, it loops. :(

So is there a way to tell Blitz NOT to loop the sound?


semar(Posted 2004) [#2]
How do you play the sound ? Perhaps the loop is in your code; could you post it ?

Usually you should do something like:
snd = loadsound("your_sound.wav")
channel = playsound(snd)


http://www.blitzbasic.com/b3ddocs/command.php?name=PlaySound&ref=goto

Sergio.


Almo(Posted 2004) [#3]
Im doing:

snd = loadsound("thesound.wav")
playsound(snd)


puki(Posted 2004) [#4]
Try it within a sound channel to see what happens then. You can possibly control it with 'StopChannel' - might have to experiment though.


aCiD2(Posted 2004) [#5]
or, if your project is freeware why not use BASS? Blitz's sound system is pathetic... lol


Almo(Posted 2004) [#6]
What is BASS and where do I find it?


Rob(Posted 2004) [#7]
It shouldn't loop anyway. Are you using latest version Blitz?


Almo(Posted 2004) [#8]
Was using 1.86. 1.87 fixed it.


John Blackledge(Posted 2004) [#9]
I had the looping problem with exports from Audio Cleaning Lab (amongst other problems). I ended up passing my wavs through CoolEdit96 (!) which removed the crap info from the wav which caused Blitz to loop.


Hotcakes(Posted 2004) [#10]
Sounds like it was an FMOD bug if v1.87 fixed it...