• Home
  • Raw
  • Download

Lines Matching refs:outfile

50 sfe_copy_data_fp (SNDFILE *outfile, SNDFILE *infile, int channels, int normalize)  in sfe_copy_data_fp()  argument
64 sf_writef_double (outfile, data, readcount) ; in sfe_copy_data_fp()
78 sf_writef_double (outfile, data, readcount) ; in sfe_copy_data_fp()
86 sfe_copy_data_int (SNDFILE *outfile, SNDFILE *infile, int channels) in sfe_copy_data_int() argument
95 sf_writef_int (outfile, data, readcount) ; in sfe_copy_data_int()
105 merge_broadcast_info (SNDFILE * infile, SNDFILE * outfile, int format, const METADATA_INFO * info) in merge_broadcast_info() argument
134 { if (infile == outfile) in merge_broadcast_info()
196 if (sf_command (outfile, SFC_SET_BROADCAST_INFO, &binfo, sizeof (binfo)) == 0) in merge_broadcast_info()
205 update_strings (SNDFILE * outfile, const METADATA_INFO * info) in update_strings() argument
208 sf_set_string (outfile, SF_STR_TITLE, info->title) ; in update_strings()
211 sf_set_string (outfile, SF_STR_COPYRIGHT, info->copyright) ; in update_strings()
214 sf_set_string (outfile, SF_STR_ARTIST, info->artist) ; in update_strings()
217 sf_set_string (outfile, SF_STR_COMMENT, info->comment) ; in update_strings()
220 sf_set_string (outfile, SF_STR_DATE, info->date) ; in update_strings()
223 sf_set_string (outfile, SF_STR_ALBUM, info->album) ; in update_strings()
226 sf_set_string (outfile, SF_STR_LICENSE, info->license) ; in update_strings()
234 { SNDFILE *infile = NULL, *outfile = NULL ; in sfe_apply_metadata_changes() local
243 infile = outfile = sf_open (filenames [0], SFM_RDWR, &sfinfo) ; in sfe_apply_metadata_changes()
249 outfile = sf_open (filenames [1], SFM_WRITE, &sfinfo) ; in sfe_apply_metadata_changes()
258 if (outfile == NULL) in sfe_apply_metadata_changes()
259 …{ printf ("Error : Not able to open output file '%s' : %s\n", filenames [1], sf_strerror (outfile)… in sfe_apply_metadata_changes()
264 if (info->has_bext_fields && merge_broadcast_info (infile, outfile, sfinfo.format, info)) in sfe_apply_metadata_changes()
269 if (infile != outfile) in sfe_apply_metadata_changes()
274 { if (sfe_copy_data_fp (outfile, infile, sfinfo.channels, SF_FALSE) != 0) in sfe_apply_metadata_changes()
281 sfe_copy_data_int (outfile, infile, sfinfo.channels) ; in sfe_apply_metadata_changes()
284 update_strings (outfile, info) ; in sfe_apply_metadata_changes()
288 if (outfile != NULL && outfile != infile) in sfe_apply_metadata_changes()
289 sf_close (outfile) ; in sfe_apply_metadata_changes()