[Flac-dev] libFLAC++ Seeking
istvan.gyurki at freemail.hu
Thu Sep 27 11:11:58 PDT 2007
> I've a problem with seeking using libFLAC++ API.
> The call to seek_absolute always returns with false, whatever I do.
> I tried many different ways, finally I tried to reduce my added code to near zero, so I used the cpp decode example in ...\flac-1.2.1\examples\cpp\decode\file\.main.cpp and added only one line:
> bool b=decoder.seek_absolute(1000);
> right before
> ok = decoder.process_until_end_of_stream();
> seek_absolute always returns false.
> I'm pretty sure I missed something and otherwise this works fine.
> One more thing. I complied the 1.2.1 sources with msvc6 sp6 and this works with debug libs...
> Any hints?
> I still couldn't figure out why's that, but finally I changed file_length_callback_ in stream_decoder.c; replaced fno/fstat with fseek(f,0,SEEK_END)/fgetpos pair and now it works perfectly.
A cégek itt keresnek téged – te hol keresed őket? [origo] állás
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Flac-dev