Lines Matching refs:info

105 merge_broadcast_info (SNDFILE * infile, SNDFILE * outfile, int format, const METADATA_INFO * info)
112 { printf ("Error : This is not a WAV file and hence broadcast info cannot be added to it.\n\n") ;
137 "Error : Attempting in-place broadcast info update, but file does not\n"
146 if (info->x != NULL) \
148 memcpy (binfo.x, info->x, MIN (strlen (info->x), sizeof (binfo.x))) ; \
160 if (info->x != NULL) \
161 { binfo.x = round (atof (info->x) * 100.0) ; \
171 if (info->time_ref != NULL)
172 { uint64_t ts = atoll (info->time_ref) ;
179 if (info->coding_history != NULL)
180 { if (info->coding_hist_append)
186 memcpy (binfo.coding_history + slen, info->coding_history, sizeof (binfo.coding_history) - slen) ;
189 { size_t slen = MIN (strlen (info->coding_history), sizeof (binfo.coding_history)) ;
192 memcpy (binfo.coding_history, info->coding_history, slen) ;
198 { printf ("Error : Setting of broadcast info chunks failed.\n\n") ;
206 update_strings (SNDFILE * outfile, const METADATA_INFO * info)
208 if (info->title != NULL)
209 sf_set_string (outfile, SF_STR_TITLE, info->title) ;
211 if (info->copyright != NULL)
212 sf_set_string (outfile, SF_STR_COPYRIGHT, info->copyright) ;
214 if (info->artist != NULL)
215 sf_set_string (outfile, SF_STR_ARTIST, info->artist) ;
217 if (info->comment != NULL)
218 sf_set_string (outfile, SF_STR_COMMENT, info->comment) ;
220 if (info->date != NULL)
221 sf_set_string (outfile, SF_STR_DATE, info->date) ;
223 if (info->album != NULL)
224 sf_set_string (outfile, SF_STR_ALBUM, info->album) ;
226 if (info->license != NULL)
227 sf_set_string (outfile, SF_STR_LICENSE, info->license) ;
234 sfe_apply_metadata_changes (const char * filenames [2], const METADATA_INFO * info)
265 if (info->has_bext_fields && merge_broadcast_info (infile, outfile, sfinfo.format, info))
285 update_strings (outfile, info) ;
383 { SF_FORMAT_INFO info ;
387 { info.format = format_map [k].format ;
388 sf_command (NULL, SFC_GET_FORMAT_INFO, &info, sizeof (info)) ;
389 printf (" %-10s : %s", format_map [k].ext, info.name == NULL ? "????" : info.name) ;
391 { info.format = format_map [k].format & SF_FORMAT_SUBMASK ;
392 sf_command (NULL, SFC_GET_FORMAT_INFO, &info, sizeof (info)) ;
393 printf (" %s", info.name == NULL ? "????" : info.name) ;