Lines Matching defs:streaminfo
393 FLAC__StreamMetadata streaminfo;
407 if(!FLAC__metadata_get_streaminfo(filenames[i], &streaminfo)) {
413 sample_rate = streaminfo.data.stream_info.sample_rate;
414 bits_per_sample = streaminfo.data.stream_info.bits_per_sample;
415 channels = streaminfo.data.stream_info.channels;
418 if(sample_rate != streaminfo.data.stream_info.sample_rate) {
419 fprintf(stderr, "%s: ERROR: sample rate of %u Hz does not match previous files' %u Hz\n", filenames[i], streaminfo.data.stream_info.sample_rate, sample_rate);
422 if(bits_per_sample != streaminfo.data.stream_info.bits_per_sample) {
423 fprintf(stderr, "%s: ERROR: resolution of %u bps does not match previous files' %u bps\n", filenames[i], streaminfo.data.stream_info.bits_per_sample, bits_per_sample);
426 if(channels != streaminfo.data.stream_info.channels) {
427 fprintf(stderr, "%s: ERROR: # channels (%u) does not match previous files' (%u)\n", filenames[i], streaminfo.data.stream_info.channels, channels);