Displaying 10 results from an estimated 10 matches for "flac__streamdecodererrorstatus".
2004 Sep 10
2
Storing FLAC in Matroska
...turn FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE;
};
void flac_DecoderMetaDataCallback(const FLAC__StreamDecoder *decoder, const
FLAC__StreamMetadata *metadata, void *client_data)
{
flacData *ourData = (flacData *)client_data;
};
void flac_DecoderErrorCallback(const FLAC__StreamDecoder *decoder,
FLAC__StreamDecoderErrorStatus status, void *client_data)
{
flacData *ourData = (flacData *)client_data;
};
int main(int argc, char* argv[])
{
//Create the FLAC stream decoder
FLAC__StreamDecoder *flac_file = FLAC__stream_decoder_new();
//Setup the callbacks
FLAC__stream_decoder_set_read_callback(flac_file,
(FLAC__Stream...
2016 Jan 19
0
FLAC__stream_decoder_seek_absolute calling write callback
...* const
buffer[]) override {
std::cout << "write_callback called!" << std::endl;
abort();
return
FLAC__StreamDecoderWriteStatus::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!" beca...
2004 Sep 10
0
http streaming in the xmms plugin
...iteStatus (*WriteCallback) (const void *decoder, const FLAC__Frame *frame, const FLAC__int32 * const buffer[], void *client_data);
+ typedef void (*MetadataCallback) (const void *decoder, const FLAC__StreamMetadata *metadata, void *client_data);
+ typedef void (*ErrorCallback) (const void *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data);
+
+ typedef struct {
+ FLAC__bool seekable;
+ void* (*new_decoder) (void);
+ FLAC__bool (*set_md5_checking) (void *decoder, FLAC__bool value);
+ FLAC__bool (*set_source) (void *decoder, const char* source);
+ FLAC__bool (*set_metadata_ignore_all) (void *decoder);
+...
2004 Sep 10
2
Storing FLAC in Matroska
Hello,
I'm looking into storing FLAC audio in Matroska and I have a few
questions.
1. Can I use libflac to extract the compressed frames?
Or will I need to write up a simple file parser?
2. What is required to decode the frames?
From the docs I understand that you need the FRAME and you may need the
METADATA_BLOCK.
Thanks,
Jory Stone
jcsston@toughguy.net
Matroska, the new,
2013 Jul 01
2
About Decode Streaming
Sorry, I am newbie.
Sample codes are from
https://github.com/oneman/libflac/tree/master/examples/cpp.
I used FLAC__stream_decoder_process_single function but it still gives
exception. Maybe I could not control read callback, you're right.
I will check it and write result in this thread.
Thanks for help.
2013/7/1 Martijn van Beurden <mvanb1 at gmail.com>
> I'll top-post this
2004 Sep 10
2
flac_read callback not called in Windows?
...\n", decoded_samples);
return FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE; // or ABORT
}
static void flac_metadata(const FLAC__SeekableStreamDecoder *decoder,
const FLAC__StreamMetadata *metadata, void *client_data)
{
}
static void flac_error(const FLAC__SeekableStreamDecoder *decoder,
FLAC__StreamDecoderErrorStatus status, void *client_data)
{
fprintf(stderr, "flac_error %d\n", status);
logerror("flac decode error %d\n", status);
}
static void init_flac(void)
{
fprintf(stderr, "init flac\n");
sprintf(flacFilename, "%s.flac", Machine->gamedrv->name);
flacFile...
2013 Jul 02
0
About Decode Streaming
...on of decoder
FLAC__StreamDecoderWriteStatus decoderWriteCallback(const
FLAC__StreamDecoder *decoder,
const FLAC__Frame *frame,
const FLAC__int32 * const buffer[],
void *callback_param
);
/// \brief error callback function of decoder
void decoderErrorCallback(const FLAC__StreamDecoder *decoder,
FLAC__StreamDecoderErrorStatus status,
void *callback_param
);
When I call following statement,
*// decode data*
*if(!FLAC__stream_decoder_process_single(m_decoder))*
* return;*
*
*
firstly, read callback is called. In read callback function, I just use
memory copy process.
*// copy buffer array to m_pile_array*
*if(input_p...
2013 Jul 02
2
About Decode Streaming
...decoderWriteCallback(const
> FLAC__StreamDecoder *decoder,
> const FLAC__Frame *frame,
> const FLAC__int32 * const buffer[],
> void *callback_param
> );
>
> /// \brief error callback function of decoder
> void decoderErrorCallback(const FLAC__StreamDecoder *decoder,
> FLAC__StreamDecoderErrorStatus status,
> void *callback_param
> );
>
> When I call following statement,
>
> *// decode data*
> *if(!FLAC__stream_decoder_process_single(m_decoder))*
> * return;*
> *
> *
> firstly, read callback is called. In read callback function, I just use
> memory copy pr...
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
2005 May 25
0
[PATCH] Fix fuction prototypes/definitions with void argument
...*filename, char **title, int *length);
static void *play_loop_(void *arg);
@@ -128,7 +128,7 @@ static FLAC__StreamDecoderWriteStatus wr
static void metadata_callback_(const void *decoder, const FLAC__StreamMetadata *metadata, void *client_data);
static void error_callback_(const void *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data);
-static void init_decoder_func_tables();
+static void init_decoder_func_tables(void);
static decoder_t source_to_decoder_type (const char *source);
InputPlugin flac_ip =
@@ -181,7 +181,7 @@ static const decoder_funcs_t* DECODER_FU
static decoder_funcs_t const * de...