Lines Matching refs:decoder
1 /* example_cpp_decode_file - Simple FLAC file decoder using libFLAC
33 #include "FLAC++/decoder.h"
89 OurDecoder decoder(fout);
91 if(!decoder) {
92 fprintf(stderr, "ERROR: allocating decoder\n");
97 (void)decoder.set_md5_checking(true);
99 FLAC__StreamDecoderInitStatus init_status = decoder.init(argv[1]);
101 fprintf(stderr, "ERROR: initializing decoder: %s\n", FLAC__StreamDecoderInitStatusString[init_status]);
106 ok = decoder.process_until_end_of_stream();
108 fprintf(stderr, " state: %s\n", decoder.get_state().resolved_as_cstring(decoder));