Displaying 1 result from an estimated 1 matches for "my_seek".
Did you mean:
_seek
2015 Jun 16
0
Low-level seek routines in libFLAC
...unctions, and we won't change its behaviour.
The user code that uses those functions might look like this:
void foo()
{
FLAC__uint64 offset;
FLAC__stream_decoder_seek_prepare(decoder, target_sample, stream_length);
for (;;) {
FLAC__stream_decoder_seek(decoder, &offset);
my_seek(file, offset);
FLAC__stream_decoder_process_single(decoder);
if /* write() callback was called - seek has been completed */ {
puts("seek OK");
break;
}
}
}
I always like to control the full workflow of my program, and by having those seek functions I'm sure...