pub struct HardwareEmulation {
pub bit_depth: u8,
pub sample_rate: f32,
pub dac_nonlinearity: bool,
pub clock_drift: f32,
pub voltage_drop: f32,
pub crosstalk: f32,
pub thermal_noise: f32,
pub ageing_effect: f32,
}Expand description
Parameters for emulating vintage hardware imperfections.
Fields§
§bit_depth: u8Bit depth of the DAC.
sample_rate: f32Sample rate in Hz.
dac_nonlinearity: boolWhether to simulate DAC non-linearity.
clock_drift: f32Clock drift factor.
voltage_drop: f32Voltage drop factor.
crosstalk: f32Channel crosstalk factor.
thermal_noise: f32Thermal noise floor.
ageing_effect: f32Ageing effect factor.
Implementations§
Source§impl HardwareEmulation
impl HardwareEmulation
Sourcepub fn for_system(system: ClassicSystem) -> Self
pub fn for_system(system: ClassicSystem) -> Self
Creates a HardwareEmulation configured for a given classic system.
Trait Implementations§
Source§impl Clone for HardwareEmulation
impl Clone for HardwareEmulation
Source§fn clone(&self) -> HardwareEmulation
fn clone(&self) -> HardwareEmulation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HardwareEmulation
impl Debug for HardwareEmulation
Source§impl Default for HardwareEmulation
impl Default for HardwareEmulation
Source§impl<'de> Deserialize<'de> for HardwareEmulation
impl<'de> Deserialize<'de> for HardwareEmulation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HardwareEmulation
impl RefUnwindSafe for HardwareEmulation
impl Send for HardwareEmulation
impl Sync for HardwareEmulation
impl Unpin for HardwareEmulation
impl UnsafeUnpin for HardwareEmulation
impl UnwindSafe for HardwareEmulation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more