pub struct DiffusionReverbSettings {
pub pre_delay_ms: u64,
pub room_size_ms: u64,
pub decay: f32,
pub damping: f32,
pub diffusion: f32,
}Expand description
Serialized configuration for the diffusion reverb.
Fields§
§pre_delay_ms: u64Pre-delay time in milliseconds.
room_size_ms: u64Base delay time in milliseconds that scales the comb filters.
decay: f32Feedback amount for the comb filters. Higher values mean longer decay.
damping: f32Lowpass damping applied inside the comb feedback path.
diffusion: f32Feedback amount for the allpass diffusers. Higher values increase density.
Implementations§
Source§impl DiffusionReverbSettings
impl DiffusionReverbSettings
Sourcepub fn new(
pre_delay_ms: u64,
room_size_ms: u64,
decay: f32,
damping: f32,
diffusion: f32,
) -> Self
pub fn new( pre_delay_ms: u64, room_size_ms: u64, decay: f32, damping: f32, diffusion: f32, ) -> Self
Create diffusion reverb settings with basic validation.
§Arguments
pre_delay_ms: Pre-delay time in milliseconds.room_size_ms: Base delay for the comb filters in milliseconds.decay: Comb feedback gain in the range[0.0, 1.0).damping: Lowpass damping factor in the range[0.0, 1.0).diffusion: Allpass feedback gain in the range[0.0, 1.0).
§Returns
The validated settings.
Trait Implementations§
Source§impl Clone for DiffusionReverbSettings
impl Clone for DiffusionReverbSettings
Source§fn clone(&self) -> DiffusionReverbSettings
fn clone(&self) -> DiffusionReverbSettings
Returns a duplicate of the value. Read more
1.0.0 · 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 DiffusionReverbSettings
impl Debug for DiffusionReverbSettings
Source§impl Default for DiffusionReverbSettings
impl Default for DiffusionReverbSettings
Source§impl<'de> Deserialize<'de> for DiffusionReverbSettingswhere
DiffusionReverbSettings: Default,
impl<'de> Deserialize<'de> for DiffusionReverbSettingswhere
DiffusionReverbSettings: Default,
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 DiffusionReverbSettings
impl RefUnwindSafe for DiffusionReverbSettings
impl Send for DiffusionReverbSettings
impl Sync for DiffusionReverbSettings
impl Unpin for DiffusionReverbSettings
impl UnwindSafe for DiffusionReverbSettings
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