Lines Matching refs:wav_file
670 static const char *wav_file[MAX_CHANNELS];
719 wav_file[channel] = search_for_file(name);
720 if (! wav_file[channel]) {
725 if ((fd = open(wav_file[channel], O_RDONLY)) < 0) {
726 fprintf(stderr, _("Cannot open WAV file %s\n"), wav_file[channel]);
730 fprintf(stderr, _("Invalid WAV file %s\n"), wav_file[channel]);
735 fprintf(stderr, _("Not a WAV file: %s\n"), wav_file[channel]);
740 LE_SHORT(header.body.format), wav_file[channel]);
745 wav_file[channel], LE_SHORT(header.body.channels));
750 LE_INT(header.body.rate), wav_file[channel]);
755 LE_SHORT(header.body.sample_bits), wav_file[channel]);
759 fprintf(stderr, _("Invalid WAV file %s\n"), wav_file[channel]);
814 if (! wav_file[channel]) {
825 wavfp = fopen(wav_file[channel], "r");