Looping .ogg files smoothly. Is it possible?

Blitz3D Forums/Blitz3D Programming/Looping .ogg files smoothly. Is it possible?

OGG does -NOT- have a gap at beginning or ending of the sample and can be used perfectly for looping. (See footnote 1)

MP3 DOES have a buffer at the beginning and end of each sample and CANNOT be used for looping.

Footnote 1 : It may depend on the program you are using to save the ogg. It may internally use buffers that are translated into the saved file... which would be no good for your purpose. I can confirm that Goldwave saves oggs perfectly... that's the only program I've used. There would obviously be others.

If Fruityloops is saving buffers at the beginning or end of an ogg, maybe you would be better off saving as a wav and converting to ogg in a different program... Or, Fruityloops may save out gaps at the beginning/end of a wav as well. Which would be likely, as it's a complex mixing program with many effect processors screwing with the audio output... it could be saving a small buffer of 'echo' or somesuch at the end of the sample. Probably is in fact. In that case your best bet would be save as wav and use a different program to truncate the sample and then save as ogg.

Never use mp3. Ever. Although I do believe mp2 does not suffer from the buffer...