Josh Coalson wrote:

> --- Erik de Castro Lopo <[EMAIL PROTECTED]> wrote:
> 
> > Hi all,
> > 
> > Is seeking working for OggFlac files? I keep on getting a
> > FLAC__STREAM_DECODER_SEEK_ERROR.
> 
> yes, it should work fine.  in flac/src/test_seeking/main.c there
> is an example usage of FLAC__stream_decoder_seek_absolute().  you
> could try compiling it and running test_seeking on it.  if if fails
> maybe there is a bug that your stream is triggering.

Ok, running the command:

    src/test_seeking/test_seeking flac_char.ogg
        
resulted in:

    +++ seek test: FLAC__StreamDecoder (Ogg FLAC, read_mode=0)
    
    file's total_samples is 0
    Begin seek barrage, count=0
    #0:seek(0)... seek failed, assuming it was past EOF... OK
    #1:seek(1)... seek failed, assuming it was past EOF... OK
    #2:seek(2)... seek failed, assuming it was past EOF... OK
    #3:seek(3)... seek failed, assuming it was past EOF... OK
    #4:seek(4)... seek failed, assuming it was past EOF... OK
    #5:seek(5)... seek failed, assuming it was past EOF... OK
    #6:seek(6)... seek failed, assuming it was past EOF... OK
    #7:seek(7)... seek failed, assuming it was past EOF... OK
    #8:seek(8)... seek failed, assuming it was past EOF... OK
    #9:seek(9)... seek failed, assuming it was past EOF... OK
    #10:seek(2332)... seek failed, assuming it was past EOF... OK
    #11:seek(2331)... seek failed, assuming it was past EOF... OK
    #12:seek(2330)... seek failed, assuming it was past EOF... OK
    #13:seek(2329)... seek failed, assuming it was past EOF... OK

and so on.

The test file is here:

    http://www.mega-nerd.com/tmp/flac_char.ogg

Erik
-- 
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
"C++ is a language strongly optimized for liars and people who
go by guesswork and ignorance." -- Erik Naggum
_______________________________________________
Flac-dev mailing list
Flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev

Reply via email to