search for: flac__file_decoder_invalid_callback

Displaying 2 results from an estimated 2 matches for "flac__file_decoder_invalid_callback".

2004 Sep 10
2
Using libFLAC++
...LAC::Decoder:File, and am now implementing a "::Play" function, that will eventually take a file name as a parameter and play it. I've stub-implemented all the required functions (meta,error, and write_callback). 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 t...
2004 Sep 10
0
Using libFLAC++
...nd am now implementing a "::Play" function, that will > eventually take a file name as a parameter and play it. I've > stub-implemented all the required functions (meta,error, and write_callback). > 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_); This is wrong. It should be:...