Erik de Castro Lopo
2007-Jul-14 21:36 UTC
[Flac-dev] Is FLAC__stream_decoder_seek_absolute working for OggFlac?
Hi all, Is seeking working for OggFlac files? I keep on getting a FLAC__STREAM_DECODER_SEEK_ERROR. Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- "Why do they protest against France for making it illegal to wear hijabs, but not against Saudi Arabia for making it illegal not to wear them?" -- Irshad Manji http://www.timesonline.co.uk/article/0,,2092-1696968,00.html
Josh Coalson
2007-Jul-24 19:23 UTC
[Flac-dev] Is FLAC__stream_decoder_seek_absolute working for OggFlac?
--- Erik de Castro Lopo <erikd-flac@mega-nerd.com> 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. Josh ____________________________________________________________________________________ Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
Erik de Castro Lopo
2007-Jul-25 02:56 UTC
[Flac-dev] Is FLAC__stream_decoder_seek_absolute working for OggFlac?
Josh Coalson wrote:> --- Erik de Castro Lopo <erikd-flac@mega-nerd.com> 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