Lines Matching defs:file
51 FILE *file ATTRIBUTE_UNUSED)
54 the number of frames of the wav file or the number of frames of the
55 wav file when doing direct analysis (--local) */
63 static int read_chunk_fmt(struct bat *bat, char *file, FILE *fp, bool skip,
73 file, err);
82 file, ret);
86 /* If the file is opened for playback, update BAT data;
87 If the file is opened for analysis, no update */
97 int read_wav_header(struct bat *bat, char *file, FILE *fp, bool skip)
105 /* Read header of RIFF wav file */
108 fprintf(bat->err, _("Read header error: %s:%zd\n"), file, err);
113 fprintf(bat->err, _("%s is not a riff/wave file\n"), file);
117 /* Read chunks in RIFF wav file */
122 fprintf(bat->err, _("%s:%zd\n"), file, err);
129 err = read_chunk_fmt(bat, file, fp, skip,
136 /* If the file is opened for playback, update BAT data;
137 If the file is opened for analysis, no update */
153 file, ret);
186 fprintf(bat->err, _("Write file error: header %d\n"), err);
191 fprintf(bat->err, _("Write file error: format %d\n"), err);
196 fprintf(bat->err, _("Write file error: chunk %d\n"), err);
220 * Generate buffer to be played either from input file or from generated data
231 if (bat->playback.file != NULL) {
232 /* From input file */
245 fprintf(bat->err, _("Read file error"));