Home | History | Annotate | Download | only in libalsa-intf

Lines Matching refs:hdr

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