search for: flac__stream_decoder_get_state

Displaying 7 results from an estimated 7 matches for "flac__stream_decoder_get_state".

2011 Sep 15
1
decoder lost after processing
...coder code to use libao. The example code works just fine, but when I use libao, after calling FLAC__stream_decoder_process_until_end_of_stream(), decoder points to an inaccessible area of memory (0x2). This invariable causes a segmentation fault when anything else thereafter uses the decoder (i.e. FLAC__stream_decoder_get_state() and FLAC__stream_decoder_delete()). What could be causing the problem? My code can be accessed here <http://sprunge.us/IUha> Best regards, Albert Chang
2011 Sep 28
1
Compiling - Win - GNU Compiler
...------------ I can compile if I don't use this variables (at the bottom of this site / extern FLAC_API...): http://flac.sourceforge.net/api/stream__decoder_8h.html <cstring> doesn't change anything. i.e.: //fprintf(stderr, " state: %s\n", FLAC__StreamDecoderStateString[FLAC__stream_decoder_get_state(decoder)]); If I use this variables I get: undefined reference to `FLAC__StreamDecoderInitStatusString' examples\cpp\decode\file\main.cpp ------------------------------------------------- I cannot compile at all. The same as in C (above) AND ... : flac.o:flac.cpp:(.text+0xc): undefined refe...
2013 Jul 02
2
About Decode Streaming
Martijn, I don't use any metadata when encoding and decoding. When I call *FLAC__StreamDecoderStateString[FLAC__stream_decoder_get_state(m_decoder)] * * * it returns FLAC__STREAM_DECODER_SEARCH_FOR_METADATA enum value. Is it an error ? 2013/7/2 Burak Or?un ?zkablan <borcunozkablan at gmail.com> > Hi again, > > I can not solve problem. I want to mention my source code, so you may > answer easily. > > This...
2013 Jul 02
0
About Decode Streaming
On 02-07-13 11:01, Burak Or?un ?zkablan wrote: > I don't use any metadata when encoding and decoding. When I call > > *FLAC__StreamDecoderStateString[FLAC__stream_decoder_get_state(m_decoder)] > * > * > * > it returns > > FLAC__STREAM_DECODER_SEARCH_FOR_METADATA > > enum value. Is it an error ? There is always metadata in a FLAC stream, for example, the samplerate, number of channels used, FLAC encoder version etc. This is called the STREAMINFO blo...
2013 Jul 02
3
About Decode Streaming
...leep or process more than excepted time, does sync lost? 2013/7/2 Martijn van Beurden <mvanb1 at gmail.com> > On 02-07-13 11:01, Burak Or?un ?zkablan wrote: > > I don't use any metadata when encoding and decoding. When I call > > * > FLAC__StreamDecoderStateString[FLAC__stream_decoder_get_state(m_decoder)] > * > * > * > it returns > > FLAC__STREAM_DECODER_SEARCH_FOR_METADATA > > enum value. Is it an error ? > > > There is always metadata in a FLAC stream, for example, the samplerate, > number of channels used, FLAC encoder version etc. This is called...
2004 Sep 10
0
http streaming in the xmms plugin
...__bool (*) (void *)) FLAC__file_decoder_process_single, ! file_decoder_is_eof ! }; ! ! /*********** HTTP decoder functions */ ! ! static gchar *url_; + static FLAC__bool http_decoder_set_md5_checking (void *decoder, FLAC__bool value) + { + (void) value; + // operation unsupported + return FLAC__stream_decoder_get_state ((const FLAC__StreamDecoder *) decoder) == + FLAC__STREAM_DECODER_UNINITIALIZED; + } + + static FLAC__bool http_decoder_set_url (void *decoder, const char* url) + { + (void) decoder; + url_ = g_strdup (url); return true; } ! static FLAC__StreamDecoderReadStatus http_decoder_read_callba...
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