rename analyze_replaygain to analyze_replaygain_track

This commit is contained in:
chaos 2023-10-30 22:50:34 +00:00
parent 12b0b687ae
commit feee847463
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@ use crate::types::AudioFileInfo;
use crate::types::File;
use crate::utils::formats::get_format_handler;
#[cfg(feature = "replaygain")]
use crate::utils::replaygain::analyze_replaygain;
use crate::utils::replaygain::analyze_replaygain_track;
use crate::utils::scan_for_music;
use ascii_reduce::reduce;
@ -153,7 +153,7 @@ pub fn add_replaygain_tags(file: &File, force: bool) -> Result<(), Box<dyn std::
file.join_path_from_source()
);
let replaygain_data = analyze_replaygain(file.join_path_to())?;
let replaygain_data = analyze_replaygain_track(file.join_path_to())?;
let mut handler = get_format_handler(file)?;

View file

@ -8,7 +8,7 @@ use string_error::static_err;
use crate::types::ReplayGainRawData;
pub fn analyze_replaygain(path: PathBuf) -> Result<ReplayGainRawData, Box<dyn std::error::Error>> {
pub fn analyze_replaygain_track(path: PathBuf) -> Result<ReplayGainRawData, Box<dyn std::error::Error>> {
let output = Command::new(crate::meta::FFMPEG)
.args([
"-hide_banner",