• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/flac-1.2.1/src/share/grabbag/

Lines Matching refs:filename

70 static FLAC__bool get_file_stats_(const char *filename, struct stat *stats)
72 FLAC__ASSERT(0 != filename);
74 return (0 == stat(filename, stats));
77 static void set_file_stats_(const char *filename, struct stat *stats)
79 FLAC__ASSERT(0 != filename);
82 (void)chmod(filename, stats->st_mode);
341 const char *grabbag__replaygain_analyze_file(const char *filename, float *title_gain, float *title_peak)
356 if(FLAC__stream_decoder_init_file(decoder, filename, write_callback_, metadata_callback_, error_callback_, &instance) != FLAC__STREAM_DECODER_INIT_STATUS_OK) {
443 static const char *store_to_file_pre_(const char *filename, FLAC__Metadata_Chain **chain, FLAC__StreamMetadata **block)
452 if(!FLAC__metadata_chain_read(*chain, filename)) {
499 static const char *store_to_file_post_(const char *filename, FLAC__Metadata_Chain *chain, FLAC__bool preserve_modtime)
502 const FLAC__bool have_stats = get_file_stats_(filename, &stats);
504 (void)grabbag__file_change_stats(filename, /*read_only=*/false);
515 set_file_stats_(filename, &stats);
520 const char *grabbag__replaygain_store_to_file(const char *filename, float album_gain, float album_peak, float title_gain, float title_peak, FLAC__bool preserve_modtime)
526 if(0 != (error = store_to_file_pre_(filename, &chain, &block)))
534 if(0 != (error = store_to_file_post_(filename, chain, preserve_modtime)))
540 const char *grabbag__replaygain_store_to_file_reference(const char *filename, FLAC__bool preserve_modtime)
546 if(0 != (error = store_to_file_pre_(filename, &chain, &block)))
554 if(0 != (error = store_to_file_post_(filename, chain, preserve_modtime)))
560 const char *grabbag__replaygain_store_to_file_album(const char *filename, float album_gain, float album_peak, FLAC__bool preserve_modtime)
566 if(0 != (error = store_to_file_pre_(filename, &chain, &block)))
574 if(0 != (error = store_to_file_post_(filename, chain, preserve_modtime)))
580 const char *grabbag__replaygain_store_to_file_title(const char *filename, float title_gain, float title_peak, FLAC__bool preserve_modtime)
586 if(0 != (error = store_to_file_pre_(filename, &chain, &block)))
594 if(0 != (error = store_to_file_post_(filename, chain, preserve_modtime)))