Lines Matching refs:decoder_client_data
271 DecoderClientData decoder_client_data;
275 decoder_client_data.pcm = pcm;
276 decoder_client_data.got_data = false;
277 decoder_client_data.total_samples = 0;
278 decoder_client_data.quiet = false;
279 decoder_client_data.ignore_errors = false;
280 decoder_client_data.error_occurred = false;
289 if(FLAC__stream_decoder_init_ogg_file(decoder, filename, write_callback_, metadata_callback_, error_callback_, &decoder_client_data) != FLAC__STREAM_DECODER_INIT_STATUS_OK)
293 if(FLAC__stream_decoder_init_file(decoder, filename, write_callback_, metadata_callback_, error_callback_, &decoder_client_data) != FLAC__STREAM_DECODER_INIT_STATUS_OK)
302 decoder_client_data.quiet = true;
305 decoder_client_data.quiet = false;
313 printf("file's total_samples is %I64u\n", decoder_client_data.total_samples);
315 printf("file's total_samples is %llu\n", (unsigned long long)decoder_client_data.total_samples);
317 n = (long int)decoder_client_data.total_samples;
326 n = 9 * filesize / (decoder_client_data.channels * decoder_client_data.bits_per_sample);
359 else if(decoder_client_data.total_samples == 0 && total_samples <= 0)
380 decoder_client_data.quiet = true;
383 decoder_client_data.quiet = false;