Lines Matching refs:format
40 fprintf(bat->err, _("Invalid format: sample size=%d\n"),
76 /* If the format header is larger, skip the rest */
166 wav->format.magic = WAV_FMT;
167 wav->format.fmt_size = 16;
168 wav->format.format = WAV_FORMAT_PCM;
169 wav->format.channels = bat->channels;
170 wav->format.sample_rate = bat->rate;
171 wav->format.sample_length = bat->sample_size * 8;
172 wav->format.blocks_align = bat->channels * bat->sample_size;
173 wav->format.bytes_p_second = wav->format.blocks_align * bat->rate;
177 + sizeof(wav->format) + sizeof(wav->header) - 8;
189 err = fwrite(&wav->format, 1, sizeof(wav->format), fp);
190 if (err != sizeof(wav->format)) {
191 fprintf(bat->err, _("Write file error: format %d\n"), err);
212 + sizeof(wav.format) + sizeof(wav.header) - 8;