use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq)]
#[serde(default)]
pub struct LoudnormSettings {
    pub accurate_true_peak: bool,

    pub target_offset: f64,
    pub target_i: f64,
    pub target_tp: f64,
}

impl Default for LoudnormSettings {
    fn default() -> Self {
        Self {
            accurate_true_peak: true,

            target_offset: 0.0,
            target_i: -14.0,
            target_tp: -2.0,
        }
    }
}
