Displaying 9 results from an estimated 9 matches for "flac__seekable_stream_decoder_seek".
2004 Sep 10
3
seeking problems
...'ve been programming an external for PureData
<http://pure-data.sourceforge.net/> & <http://pure-data.org>, as well as
for Max/MSP....that reads multiple sound formats.
But, I've been having massive problems with getting reliable seeking with
FLAC.
sometimes when I call FLAC__seekable_stream_decoder_seek_absolute, I get
a false returned for FLAC__seekable_stream_decoder_process_single ..and
the error is of type FLAC__SEEKABLE_STREAM_DECODER_STREAM_DECODER_ERROR
is there any way to recover from this?
I try to do a FLAC__seekable_stream_decoder_flush or
FLAC__seekable_stream_decoder_reset on the...
2004 Sep 10
0
Re: seeking problems
...l for PureData
> <http://pure-data.sourceforge.net/> & <http://pure-data.org>, as well as
> for Max/MSP....that reads multiple sound formats.
>
> But, I've been having massive problems with getting reliable seeking with
> FLAC.
>
> sometimes when I call FLAC__seekable_stream_decoder_seek_absolute, I get
> a false returned for FLAC__seekable_stream_decoder_process_single ..and
> the error is of type FLAC__SEEKABLE_STREAM_DECODER_STREAM_DECODER_ERROR
>
> is there any way to recover from this?
> I try to do a FLAC__seekable_stream_decoder_flush or
> FLAC__seekab...
2004 Sep 10
0
new checkins
...r.h
--- seekable_stream_decoder.h 26 Jan 2002 17:36:39 -0000 1.2
+++ seekable_stream_decoder.h 6 May 2002 15:07:22 -0000
@@ -22,6 +22,11 @@
#include "stream_decoder.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
typedef enum {
FLAC__SEEKABLE_STREAM_DECODER_OK = 0,
FLAC__SEEKABLE_STREAM_DECODER_SEEKING,
@@ -163,5 +168,9 @@
FLAC__bool FLAC__seekable_stream_decoder_process_remaining_frames(FLAC__SeekableStreamDecoder *decoder);
FLAC__bool FLAC__seekable_stream_decoder_seek_absolute(FLAC__SeekableStreamDecoder *decoder, FLAC__uint64 sample);
+
+#ifdef __cplusplus
+}
+#endif
#endif
Index: s...
2004 Sep 10
3
new checkins
FYI, I have checked in a few interesting things. One is a
speedup to the decoder (about 15% improvement in overall
decode time). Another is a new interface to FLAC file
metadata. If you're curious look at include/FLAC/metadata.h.
It is basically a collection of object manipulation routines
and iterators that make it pretty easy to add/edit/delete
FLAC metadata in files efficiently. The
2004 Sep 10
3
Re: seeking problems
...or PureData
>><http://pure-data.sourceforge.net/> & <http://pure-data.org>, as well as
>>for Max/MSP....that reads multiple sound formats.
>>But, I've been having massive problems with getting reliable seeking with
>>FLAC.
>>sometimes when I call FLAC__seekable_stream_decoder_seek_absolute, I get
>>a false returned for FLAC__seekable_stream_decoder_process_single ..and
>>the error is of type FLAC__SEEKABLE_STREAM_DECODER_STREAM_DECODER_ERROR
>>is there any way to recover from this?
>>I try to do a FLAC__seekable_stream_decoder_flush or
>>FLA...
2005 Jan 25
0
bitbuffer optimizations
...figure out a target, we just use
- * our current position.
- */
- if(pos < 0) {
- FLAC__uint64 upos;
- if(decoder->private_->tell_callback(decoder, &upos, decoder->private_->client_data) != FLAC__SEEKABLE_STREAM_DECODER_TELL_STATUS_OK) {
- decoder->protected_->state = FLAC__SEEKABLE_STREAM_DECODER_SEEK_ERROR;
- return false;
- }
- pos = (FLAC__int64)upos;
- needs_seek = false;
- }
- else
- needs_seek = true;
-
- /* clip the position to the bounds, lower bound takes precedence */
- if(pos >= (FLAC__int64)upper_bound) {
- pos = (FLAC__int64)upper_bound-1;
- needs_seek = true;
- }
- if(po...
2006 May 11
2
C++ Set_Metadata Problem
I refer to a problem that appeared on the flac list last August that was
either solved off-list or abandoned.
(http://lists.xiph.org/pipermail/flac/2005-August/000468.html)
The problem is with using the C++ encoder classes, particularly the
FLAC::Encoder::File:set_metadata
function. JC said that the developers version of how to add a simple
metadata block looked right, but it did not work for
2004 Sep 10
2
better seeking
...figure out a target, we just use
- * our current position.
- */
- if(pos < 0) {
- FLAC__uint64 upos;
- if(decoder->private_->tell_callback(decoder, &upos, decoder->private_->client_data) != FLAC__SEEKABLE_STREAM_DECODER_TELL_STATUS_OK) {
- decoder->protected_->state = FLAC__SEEKABLE_STREAM_DECODER_SEEK_ERROR;
- return false;
- }
- pos = (FLAC__int32)upos;
- needs_seek = false;
- }
- else
- needs_seek = true;
-
- /* clip the position to the bounds, lower bound takes precedence */
- if(pos >= (FLAC__int64)upper_bound) {
- pos = (FLAC__int64)upper_bound-1;
- needs_seek = true;
- }
- if(po...
2004 Sep 10
4
bitbuffer optimizations
Ok, here is a patch waiting for new CVS :). It works fine for me, but
please check it before commiting...
--
Miroslav Lichvar
-------------- next part --------------
--- src/libFLAC/bitbuffer.c.orig 2003-01-30 17:36:01.000000000 +0100
+++ src/libFLAC/bitbuffer.c 2003-01-30 21:53:18.000000000 +0100
@@ -51,6 +51,25 @@
*/
static const unsigned FLAC__BITBUFFER_DEFAULT_CAPACITY = ((65536 - 64) *