Displaying 4 results from an estimated 4 matches for "flac__file_decoder_init".
2004 Sep 10
1
[Flac-users] Trouble Building flac-1.1.0
...c:134: syntax error before "void"
file_decoder.c: In function `FLAC__file_decoder_delete':
file_decoder.c:143: dereferencing pointer to incomplete type
file_decoder.c: At top level:
file_decoder.c:156: syntax error before "FLAC__FileDecoderState"
file_decoder.c: In function `FLAC__file_decoder_init':
2004 Sep 10
2
Using libFLAC++
...However, when I do the following, it prints 7, which appears to be
FLAC__FILE_DECODER_INVALID_CALLBACK, meaning I haven't set up one of the
callbacks that I need to.
bool FlacDecoder::play(const char *filename)
{
FLAC__FileDecoderState fstate;
set_filename(filename);
fstate = FLAC__file_decoder_init(decoder_);
cout << fstate << endl;
return true;
}
Now, I thought the main difference between libFLAC and libFLAC++ was that in
c++ you didn't have to manually set the callbacks, just inherit and they
would be set for you. Am I miss reading the docs there? Of course, pr...
2004 Sep 10
0
Using libFLAC++
...7, which appears to be
> FLAC__FILE_DECODER_INVALID_CALLBACK, meaning I haven't set up one of the
> callbacks that I need to.
>
> bool FlacDecoder::play(const char *filename)
> {
> FLAC__FileDecoderState fstate;
> set_filename(filename);
>
> fstate = FLAC__file_decoder_init(decoder_);
This is wrong. It should be:
fstate = init();
> cout << fstate << endl;
>
> return true;
> }
>
[...]
--
Miroslav Lichvar
2004 Sep 10
0
http streaming in the xmms plugin
...E_VORBIS_COMMENT);
! FLAC__file_decoder_set_write_callback(decoder, write_callback_);
! FLAC__file_decoder_set_metadata_callback(decoder, metadata_callback_);
! FLAC__file_decoder_set_error_callback(decoder, error_callback_);
! FLAC__file_decoder_set_client_data(decoder, &file_info_);
! if(FLAC__file_decoder_init(decoder) != FLAC__FILE_DECODER_OK)
! return false;
! if(!FLAC__file_decoder_process_until_end_of_metadata(decoder))
! return false;
return true;
}
! void safe_decoder_finish_(FLAC__FileDecoder *decoder)
{
! if(decoder && FLAC__file_decoder_get_state(decoder) != FLAC__F...