Re: FLAC: how to dump seekpoints ?

Gregory Maxwell <[email protected]> Thu, 2 Apr 2009 01:59:12 -0400
Newsgroups gmane.comp.audio.compression.flac.user
Message-ID <[email protected]>
On Thu, Apr 2, 2009 at 1:11 AM,  <[email protected]> wrote:
> Hello,
>
> metaflac provides exporting CUEpoints, but not SEEKpoints.
> As i understand, cuepoints represent gaps beetween tracks (inserting pause),
> whereas seekpoints merely describe a list of seekable points.
> Can cuepoint be used just as seekpoints (in the end, the
> only thing which matters is that some classic media players
> will recognize them).

You don't need seekpoints to seek in FLAC.

You can simply jump to a position and advance to the next valid frame,
then conduct a bisection search to find the location you were looking
for.

Seekpoints act as a helper to reduce seeking (and to make seeking
possible for applications too stupid to perform a search on their
own).