Lines Matching refs:file
115 { printf ("Usage :\n %s <file> ...\n", progname) ;
117 printf (" %s --instrument <file>\n", progname) ;
118 printf (" Prints out the instrument data for the given file.\n\n") ;
119 printf (" %s --broadcast <file>\n", progname) ;
120 printf (" Prints out the broadcast WAV info for the given file.\n\n") ;
121 printf (" %s --channel-map <file>\n", progname) ;
122 printf (" Prints out the channel map for the given file.\n\n") ;
123 printf (" %s --cart <file>\n", progname) ;
124 printf (" Prints out the cart chunk WAV info for the given file.\n\n") ;
211 /* Accumulate the total of all known file durations */
220 SNDFILE *file ;
226 if ((file = sf_open (filename, SFM_READ, &sfinfo)) == NULL)
227 { printf ("Error : Not able to open input file %s.\n", filename) ;
230 sf_command (file, SFC_GET_LOG_INFO, strbuffer, BUFFER_LEN) ;
237 sf_command (file, SFC_GET_LOG_INFO, strbuffer, BUFFER_LEN) ;
256 sf_command (file, SFC_CALC_SIGNAL_MAX, &signal_max, sizeof (signal_max)) ;
262 sf_close (file) ;
285 { SNDFILE *file ;
292 if ((file = sf_open (filename, SFM_READ, &sfinfo)) == NULL)
293 { printf ("Error : Not able to open input file %s.\n", filename) ;
300 got_inst = sf_command (file, SFC_GET_INSTRUMENT, &inst, sizeof (inst)) ;
301 sf_close (file) ;
326 { SNDFILE *file ;
334 if ((file = sf_open (filename, SFM_READ, &sfinfo)) == NULL)
335 { printf ("Error : Not able to open input file %s.\n", filename) ;
344 got_bext = sf_command (file, SFC_GET_BROADCAST_INFO, &bext, sizeof (bext)) ;
345 sf_close (file) ;
397 { SNDFILE *file ;
404 if ((file = sf_open (filename, SFM_READ, &sfinfo)) == NULL)
405 { printf ("Error : Not able to open input file %s.\n", filename) ;
417 got_chanmap = sf_command (file, SFC_GET_CHANNEL_MAP_INFO, channel_map, sfinfo.channels * sizeof (int)) ;
418 sf_close (file) ;
473 { SNDFILE *file ;
481 if ((file = sf_open (filename, SFM_READ, &sfinfo)) == NULL)
482 { printf ("Error : Not able to open input file %s.\n", filename) ;
489 got_cart = sf_command (file, SFC_GET_CART_INFO, &cart, sizeof (cart)) ;
490 sf_close (file) ;