Skip to main content

EngineConfig

Struct EngineConfig 

Source
pub struct EngineConfig {
Show 29 fields pub mains: Vec<String>, pub subs: Vec<String>, pub groups: Vec<(String, Vec<String>)>, pub target: TargetCurve, pub xo: Vec<(String, f64)>, pub main_position: u32, pub taps: usize, pub lift_ms: f64, pub max_boost_db: f64, pub peq_bands: Option<usize>, pub max_latency_ms: Option<f64>, pub rc_range: (f64, Option<f64>), pub rc_bands: Vec<(f64, f64)>, pub low_protect: bool, pub input_hp_hz: Option<f64>, pub lf_align: bool, pub mode_decay: bool, pub hf_phase: bool, pub room_volume_m3: Option<f64>, pub rc_hi_basis: RcHiBasis, pub rc_hi_transition: u8, pub phase_frac: f64, pub sub_manual: Vec<(String, SubManual)>, pub sub_main_delay_ms: f64, pub bundle_layouts: Vec<(String, BundleLayout)>, pub infra_boost_max_db: f64, pub xo_peq_on: bool, pub xo_peq_lo_hz: f64, pub xo_peq_hi_hz: f64,
}
Expand description

The resolved design settings: the engine constructor’s surface.

Fields§

§mains: Vec<String>

Main roles, in configuration group order.

§subs: Vec<String>

Sub roles, in configuration order.

§groups: Vec<(String, Vec<String>)>

Configuration groups and their roles, in order (SpeakerConfig.groups()).

§target: TargetCurve

Target curve (a copy taken when the computation starts).

§xo: Vec<(String, f64)>

Crossover in Hz per main group, in upstream dictionary order.

§main_position: u32

Reference (listening) position.

§taps: usize

Channel FIR taps; 0 means PEQ only.

§lift_ms: f64

Excess-phase lift in ms, before the FIR-length cap.

§max_boost_db: f64

Boost ceiling in dB for RC, and the cap of the XO and bus PEQ boosts.

§peq_bands: Option<usize>

Input PEQ bands; None means 16.

§max_latency_ms: Option<f64>

Total filter latency budget in ms; None means lift + 15.

§rc_range: (f64, Option<f64>)

RC range (low Hz, high Hz); a missing high bound means automatic (Schroeder frequency, at most 500 Hz).

§rc_bands: Vec<(f64, f64)>

Additional manually bounded correction bands (ADR 0024).

§low_protect: bool

Protect measured low-frequency rolloff (ADR 0022), off by default.

§input_hp_hz: Option<f64>

Common input high-pass in Hz, applied only after design (ADR 0031).

§lf_align: bool

Common LF arrival for the mains (ADR 0025), off by default.

§mode_decay: bool

Pole-replacing cuts for long modes (ADR 0025), off by default.

§hf_phase: bool

Unwind constant FIR phase above the correction bands (ADR 0030).

§room_volume_m3: Option<f64>

Room volume in m³, for the Schroeder frequency.

§rc_hi_basis: RcHiBasis

Automatic upper-limit evidence; ignored for a manual RC range.

§rc_hi_transition: u8

Schroeder transition multiplier: 1, 2 or 4.

§phase_frac: f64

Octave fraction of the excess-phase smoothing (6, or 24 in linear mode).

§sub_manual: Vec<(String, SubManual)>

Manual sub settings by role, in the order the settings hold them.

§sub_main_delay_ms: f64

Main output delay added when fixed subs are present, in ms.

§bundle_layouts: Vec<(String, BundleLayout)>

Bundle layouts by bundle name, in the order the settings hold them.

§infra_boost_max_db: f64

Ceiling in dB of the two-way infra sub level match.

§xo_peq_on: bool

Whether the main acoustic-XO PEQ runs.

§xo_peq_lo_hz: f64

Lower edge of the XO PEQ fitting range in Hz, 0 for automatic.

§xo_peq_hi_hz: f64

Upper edge of the XO PEQ fitting range in Hz, 0 for automatic.

Trait Implementations§

Source§

impl Clone for EngineConfig

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EngineConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for EngineConfig

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for EngineConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ByRef<T> for T

Source§

fn by_ref(&self) -> &T

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Imply<T> for U
where T: ?Sized, U: ?Sized,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.