Lines Matching defs:header
716 struct wave_header header;
729 if (read(fd, &header, sizeof(header)) < (int)sizeof(header)) {
734 if (header.hdr.magic != WAV_RIFF || header.hdr.type != WAV_WAVE) {
738 if (header.body.format != LE_SHORT(WAV_PCM_CODE)) {
740 LE_SHORT(header.body.format), wav_file[channel]);
743 if (header.body.channels != LE_SHORT(1)) {
745 wav_file[channel], LE_SHORT(header.body.channels));
748 if (header.body.rate != LE_INT(rate)) {
750 LE_INT(header.body.rate), wav_file[channel]);
753 if (header.body.sample_bits != LE_SHORT(16)) {
755 LE_SHORT(header.body.sample_bits), wav_file[channel]);
758 if (header.chunk.type != WAV_DATA) {
762 wav_file_size[channel] = LE_INT(header.chunk.length);