Looping music without glitches

Blitz3D Forums/Blitz3D Programming/Looping music without glitches

Hi,

When I use loopsound, I can hear a glitch (i.e. a very small pause) when my loop restarts. It is cut out properly, if I play my track looped in cool edit, this glitch is not hearable.
How can I make sure it is playing correctly in blitz?

Did you try the music commands instead of sound commands? That might remove the glitch.

I've never had a problem with loopsound, if I get the loop right in soundforge it works in blitz.

okay, I found the problem, when cool edit saves an mp3, it adds a very small pause at the beginning. Maybe that's an option, so I'll have to find a way to turn it off.

hmm,

maybe its because it is an mp3. They have to be loaded and decompressed by codecs... wavs would not give you such a problem, but of coruse they are much bigger.

IPete2.

I've never had problems with oggs

Yeah use OGG, I've had problems with .mp3 loop gaps from other sources before. Also, OGG is a better format in my opinion.

Yeah, I was planning to use ogg in the future, but whiole testing, mp3 is easier because cool edit can export to mp3 and not to ogg.