[Flac-dev] FlacPak

Curt Sampson cjs at cynic.net
Thu Nov 20 00:28:08 PST 2003


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  <cjs at cynic.net>   +81 90 7737 2974   http://www.NetBSD.org
    Don't you know, in this new Dark Age, we're all light.  --XTC




More information about the Flac-dev mailing list