Lines Matching defs:outf

100     FILE   *outf;
120 if ((outf = init_outfile(outPath, lame_get_decode_only(gf))) == NULL) {
125 return outf;
170 lame_decoder_loop(lame_t gfp, FILE * outf, char *inPath, char *outPath)
221 WriteWaveHeader(outf, 0x7FFFFFFF, lame_get_in_samplerate(gfp), tmp_num_channels, 16);
232 put_audio16(outf, Buffer, iread, tmp_num_channels);
251 /* if outf is seekable, rewind and adjust length */
253 && !fseek(outf, 0l, SEEK_SET))
254 WriteWaveHeader(outf, (int) wavsize, lame_get_in_samplerate(gfp), tmp_num_channels, 16);
262 lame_decoder(lame_t gfp, FILE * outf, char *inPath, char *outPath)
266 ret = lame_decoder_loop(gfp, outf, inPath, outPath);
267 fclose(outf); /* close the output file */
328 write_xing_frame(lame_global_flags * gf, FILE * outf, size_t offset)
347 if (fseek(outf, (long) offset, SEEK_SET) != 0) {
351 owrite = fwrite(mp3buffer, 1, imp3, outf);
365 write_id3v1_tag(lame_t gf, FILE * outf)
379 owrite = fwrite(mp3buffer, 1, imp3, outf);
389 lame_encoder_loop(lame_global_flags * gf, FILE * outf, int nogap, char *inPath, char *outPath)
403 size_t written = fwrite(id3v2tag, 1, n_bytes, outf);
416 size_t owrite = fwrite(id3v2tag, 1, id3v2_size, outf);
425 fflush(outf);
464 owrite = (int) fwrite(mp3buffer, 1, imp3, outf);
472 fflush(outf);
492 owrite = (int) fwrite(mp3buffer, 1, imp3, outf);
498 fflush(outf);
500 imp3 = write_id3v1_tag(gf, outf);
502 fflush(outf);
507 write_xing_frame(gf, outf, id3v2_size);
509 fflush(outf);
519 lame_encoder(lame_global_flags * gf, FILE * outf, int nogap, char *inPath, char *outPath)
523 ret = lame_encoder_loop(gf, outf, nogap, inPath, outPath);
524 fclose(outf); /* close the output file */
547 FILE *outf = NULL;
598 outf = init_files(gf, nogap_inPath[0], nogap_outPath[0]);
601 outf = init_files(gf, inPath, outPath);
603 if (outf == NULL) {
622 fclose(outf);
633 ret = lame_decoder(gf, outf, inPath, outPath);
637 ret = lame_encoder(gf, outf, 0, inPath, outPath);
646 outf = init_files(gf, nogap_inPath[i], nogap_outPath[i]);
647 if (outf == NULL) {
657 ret = lame_encoder(gf, outf, use_flush_nogap, nogap_inPath[i], nogap_outPath[i]);