Lines Matching refs:outfile

50 sfe_copy_data_fp (SNDFILE *outfile, SNDFILE *infile, int channels, int normalize)
64 sf_writef_double (outfile, data, readcount) ;
78 sf_writef_double (outfile, data, readcount) ;
86 sfe_copy_data_int (SNDFILE *outfile, SNDFILE *infile, int channels)
95 sf_writef_int (outfile, data, readcount) ;
105 merge_broadcast_info (SNDFILE * infile, SNDFILE * outfile, int format, const METADATA_INFO * info)
135 { if (infile == outfile)
197 if (sf_command (outfile, SFC_SET_BROADCAST_INFO, &binfo, sizeof (binfo)) == 0)
206 update_strings (SNDFILE * outfile, const METADATA_INFO * info)
209 sf_set_string (outfile, SF_STR_TITLE, info->title) ;
212 sf_set_string (outfile, SF_STR_COPYRIGHT, info->copyright) ;
215 sf_set_string (outfile, SF_STR_ARTIST, info->artist) ;
218 sf_set_string (outfile, SF_STR_COMMENT, info->comment) ;
221 sf_set_string (outfile, SF_STR_DATE, info->date) ;
224 sf_set_string (outfile, SF_STR_ALBUM, info->album) ;
227 sf_set_string (outfile, SF_STR_LICENSE, info->license) ;
235 { SNDFILE *infile = NULL, *outfile = NULL ;
244 infile = outfile = sf_open (filenames [0], SFM_RDWR, &sfinfo) ;
250 outfile = sf_open (filenames [1], SFM_WRITE, &sfinfo) ;
259 if (outfile == NULL)
260 { printf ("Error : Not able to open output file '%s' : %s\n", filenames [1], sf_strerror (outfile)) ;
265 if (info->has_bext_fields && merge_broadcast_info (infile, outfile, sfinfo.format, info))
270 if (infile != outfile)
275 { if (sfe_copy_data_fp (outfile, infile, sfinfo.channels, SF_FALSE) != 0)
282 sfe_copy_data_int (outfile, infile, sfinfo.channels) ;
285 update_strings (outfile, info) ;
289 if (outfile != NULL && outfile != infile)
290 sf_close (outfile) ;