Lines Matching refs:hdr
500 struct wav_header hdr; in play_wav() local
516 hdr.sample_rate = rate; in play_wav()
517 hdr.num_channels = ch; in play_wav()
518 hdr.data_sz = 0; in play_wav()
522 if (read(fd, &hdr, sizeof(hdr)) != sizeof(hdr)) { in play_wav()
527 if ((hdr.riff_id != ID_RIFF) || in play_wav()
528 (hdr.riff_fmt != ID_WAVE) || in play_wav()
529 (hdr.fmt_id != ID_FMT)) { in play_wav()
533 if ((hdr.audio_format != FORMAT_PCM) || in play_wav()
534 (hdr.fmt_sz != 16)) { in play_wav()
538 if (hdr.bits_per_sample != 16) { in play_wav()
544 hdr.sample_rate = rate; in play_wav()
545 hdr.num_channels = ch; in play_wav()
546 hdr.data_sz = 0; in play_wav()
556 return play_file(hdr.sample_rate, hdr.num_channels, fd, flag, device, hdr.data_sz); in play_wav()