+6
-6
@@ -92,6 +92,7 @@ pub enum CrossoverFilter {
|
||||
Bl48,
|
||||
}
|
||||
|
||||
#[cfg_attr(feature = "serialization", derive(Serialize, Deserialize))]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, EnumIter)]
|
||||
pub enum PEQBand {
|
||||
B1 = 1,
|
||||
@@ -291,7 +292,7 @@ pub struct Limiter {
|
||||
#[cfg_attr(feature = "serialization", derive(Serialize, Deserialize))]
|
||||
#[derive(Debug, Clone, PartialEq, Default)]
|
||||
pub struct GraphicEQ {
|
||||
pub gains: Vec<f32>,
|
||||
pub gains: HashMap<DiscreteFrequency, f32>,
|
||||
pub bypass: bool,
|
||||
}
|
||||
|
||||
@@ -323,13 +324,13 @@ pub struct Crossover {
|
||||
#[derive(Debug, Clone, PartialEq, Default)]
|
||||
pub struct MatrixRoutes {
|
||||
pub connected: Vec<InputChannel>,
|
||||
pub gains: Vec<f32>,
|
||||
pub gains: HashMap<InputChannel, f32>,
|
||||
}
|
||||
|
||||
#[cfg_attr(feature = "serialization", derive(Serialize, Deserialize))]
|
||||
#[derive(Debug, Clone, PartialEq, Default)]
|
||||
pub struct PEQChain {
|
||||
pub bands: Vec<PEQ>,
|
||||
pub bands: HashMap<PEQBand, PEQ>,
|
||||
pub bypass: bool,
|
||||
}
|
||||
|
||||
@@ -360,7 +361,7 @@ pub struct InputChannelState {
|
||||
pub geq: GraphicEQ,
|
||||
pub peq_chain: PEQChain,
|
||||
pub crossover: CrossoverFilters,
|
||||
pub linked_channels: Vec<Channel>,
|
||||
pub linked_channels: Vec<InputChannel>,
|
||||
pub mute: bool,
|
||||
}
|
||||
|
||||
@@ -376,7 +377,7 @@ pub struct OutputChannelState {
|
||||
pub gain: f32,
|
||||
pub phase_inverted: bool,
|
||||
pub delay: f32,
|
||||
pub linked_channels: Vec<Channel>,
|
||||
pub linked_channels: Vec<OutputChannel>,
|
||||
pub mute: bool,
|
||||
}
|
||||
|
||||
@@ -409,6 +410,5 @@ pub struct DSPState {
|
||||
pub(crate) name: String,
|
||||
pub(crate) flags: DeviceFlags,
|
||||
pub(crate) presets: PresetBank,
|
||||
|
||||
pub(crate) current_config: DSPConfigState,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user