On Wed, 19 Nov 2003, Josh Green wrote: > I am curious though how one would get around the problems of looping > with a lossy algorithm. When decoding a vorbis stream would one have > the same number of samples as you encoded? The problem with looping > arises if the loop points aren't the same sample values, resulting in > a click. Some sort of algorithm could be run around the loop points to > get them to align again, but I wouldn't know the best way to do that, > yet.
I'd think that there is no reliable way to do that unless the lossy algorithm is not very lossy at all, since if the waveform changes enough, the loop points may be nowhere near where they were originally, and the loop may not even be the same length. Well, there is a reliable way: re-loop by hand, which is how any particularly difficult sound was originally looped anyway. But I doubt that every person unpacking the file wants to do that. I suppose you could compress, decompress, loop the decompressed sample, and then put those loop points back into the compressed file.... cjs -- Curt Sampson <[EMAIL PROTECTED]> +81 90 7737 2974 http://www.NetBSD.org Don't you know, in this new Dark Age, we're all light. --XTC ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Flac-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/flac-dev
