search for: seek_absolute

Displaying 15 results from an estimated 15 matches for "seek_absolute".

2004 Sep 10
3
problem with seek_absolute in libFLAC++
Hello, I have been changing my (C++)program over to the new FLAC++ API which has gone relatively smoothly. However, the function seek_absolute() (from the FLAC::Decoder::File class) does not seem to work. It always returns false and doesnt seek at all. Using gdb, I have narrowed down the problem somewhat, but being the novice programmer that I am, I still don't know whats wrong. When I call the seek_absolute() function eg. seek_a...
2004 Sep 10
0
problem with seek_absolute in libFLAC++
--- David Collett <jg@webone.com.au> wrote: > Hello, > I have been changing my (C++)program over to the new FLAC++ API which > > has gone relatively smoothly. > > However, the function seek_absolute() (from the FLAC::Decoder::File > class) does not seem to work. It always returns false and doesnt seek > at > all. Using gdb, I have narrowed down the problem somewhat, but being > the > novice programmer that I am, I still don't know whats wrong. > > When I call the s...
2004 Sep 10
1
problem with seek_absolute in libFLAC++
...! Thanks for you quick response, David Josh Coalson wrote: >--- David Collett <jg@webone.com.au> wrote: > >>Hello, >>I have been changing my (C++)program over to the new FLAC++ API which >> >>has gone relatively smoothly. >> >>However, the function seek_absolute() (from the FLAC::Decoder::File >>class) does not seem to work. It always returns false and doesnt seek >>at >>all. Using gdb, I have narrowed down the problem somewhat, but being >>the >>novice programmer that I am, I still don't know whats wrong. >> >...
2007 Sep 26
2
libFLAC++ Seeking
Hello, 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 = dec...
2016 Jan 13
1
FLAC__stream_decoder_seek_absolute calling write callback
Hello, The API documentation [1] `FLAC__stream_decoder_seek_absolute` says: "Flush the input and seek to an absolute sample. Decoding will resume at the given sample. Note that because of this, the next write callback may contain a partial block." I expected that subsequent `process_single` calls would return data starting exactly from the sample I'v...
2007 Sep 27
1
libFLAC++ Seeking
?rta: > ?rta: > > Hello, > > 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); >...
2008 Feb 20
2
FLAC seeking error
I am writing a FLAC encoder/decoder and when I use the flac_static.lib that was compiled in debug mode in MS Visual Studio 2003, the seek_absolute function works fine. However, if I compile flac_static in release mode in the same environment, the seek_absolute function no longer works. No parts of my code change, the only difference is whether I link in the release lib instead of the debug lib. I just recompiled the whole of a new copy of...
2005 Apr 27
2
seek_absolute problem
--- Bernd Löhr <B.Loehr@hermstedt.de> wrote: > Hi, > > I am using the FLAC encoder and decoder lib in it's integer only > version (FLAC__INTEGER_ONLY_LIBRARY) on a PPC405 system. > > I encounter complete different behaviour when setting random playback > > positions while decoding different flac encoded files. > If they have been encoded on a PC,
2004 Sep 10
1
seek problem
Hi Flac developers! I'm using the seekable_stream_decoder API of libFLAC 1.03 and I'm stuck with a mysterious problem: my FLAC plugin works nicely as long as the seek_absolute() function is never used, but as soon as I seek around in a sample (ie. call seek_absolute() with an offset != 0), I cannot detect the end of a file anymore. decoder_get_state() never returns FLAC__SEEKABLE_STREAM_DECODER_END_OF_STREAM in this case. First I thought that this might be a problem of m...
2004 Sep 10
1
Unexpected writeCallback() calls
...pretty annoying and should be changed in future libFLAC versions, IMHO: The writeCallback is not only called after functions which do decoding (like process_whole_stream(), process_one_frame() or process_remaining_frames()), ie. where one expects that new data arrives. Instead, also functions like seek_absolute() can create decoded data. I think that generating new data should be restricted to the three functions mentioned above, because it would make libFLAC easier to use. Currently, it is best that a developer does all FLAC API calls in one function, because one never knows when new data arrives. This m...
2007 Sep 26
0
libFLAC++ Seeking
?rta: > Hello, > > 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); >...
2016 Jan 19
0
FLAC__stream_decoder_seek_absolute calling write callback
...derWriteStatus::FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE; } virtual void error_callback(::FLAC__StreamDecoderErrorStatus status) override {} } decoder; decoder.init("sample.flac"); decoder.process_until_end_of_metadata(); decoder.seek_absolute(1); return 0; } Despite not calling `process_single`, this snippet crashes with "write_callback called!" because internally `seek_absolute(sample)` processes the frame which contains `sample`. My question was whether this behaviour was intentional/documented (I haven't f...
2004 Sep 27
1
Decoding via API from a single FLAC file using a cue sheet
...to rip the CD to a single track and add a cue sheet to the metadata which was recently discussed on the list. How would I access specific tracks using this approach by means of the FLAC (or FLAC++) API in my own decoder implementation? Are there seek points in the cue sheet that I can use with the seek_absolute methods? If so, are there any code examples to extract the seek points from the metadata? Lars
2005 Aug 03
1
C++ File Decoder position not implemented?
It appears the C++ File Decoder wrapper to the FLAC__File_Decoder_decode_position function has not been implemented. How can I determine what the current sample is being decoded? I note the seek_absolute function is included, so I can go to a particular sample, but I don't know where I am :-) Thanks! Scot -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/flac/attachments/20050803/5c1fa744/attachment.html
2016 Nov 15
2
Seek failure with very short files
Hi! We are using libFLAC++ in our project for both encoding and decoding. I've found an issue where ::FLAC::Decoder::Stream::seek_absolute() fails with very short files (less than 2500 frames or so.) I've attached an example of such a file. The failure case is in stream_decoder.c, line 3071. The comment above this case reads "check if the bounds are still ok." The sample we're seeking to is in range and its particul...