pub struct ReverbConfig {
pub room_size: f32,
pub damping: f32,
pub wet: f32,
pub dry: f32,
pub width: f32,
pub predelay_ms: f32,
}Expand description
Configuration for reverb effects.
Fields§
§room_size: f32Room size (0.0 - 1.0).
damping: f32Damping/high-frequency absorption (0.0 - 1.0).
wet: f32Wet signal level (0.0 - 1.0).
dry: f32Dry signal level (0.0 - 1.0).
width: f32Stereo width (0.0 - 1.0).
predelay_ms: f32Pre-delay in milliseconds.
Implementations§
Source§impl ReverbConfig
impl ReverbConfig
Sourcepub fn new(room_size: f32, damping: f32, wet: f32) -> Self
pub fn new(room_size: f32, damping: f32, wet: f32) -> Self
Create a new reverb configuration with custom parameters.
Sourcepub fn with_room_size(self, room_size: f32) -> Self
pub fn with_room_size(self, room_size: f32) -> Self
Set room size.
Sourcepub fn with_damping(self, damping: f32) -> Self
pub fn with_damping(self, damping: f32) -> Self
Set damping.
Sourcepub fn with_width(self, width: f32) -> Self
pub fn with_width(self, width: f32) -> Self
Set stereo width.
Sourcepub fn with_predelay(self, predelay_ms: f32) -> Self
pub fn with_predelay(self, predelay_ms: f32) -> Self
Set pre-delay in milliseconds.
Sourcepub fn small_room() -> Self
pub fn small_room() -> Self
Small room preset.
Sourcepub fn medium_room() -> Self
pub fn medium_room() -> Self
Medium room preset.
Trait Implementations§
Source§impl Clone for ReverbConfig
impl Clone for ReverbConfig
Source§fn clone(&self) -> ReverbConfig
fn clone(&self) -> ReverbConfig
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 ReverbConfig
impl Debug for ReverbConfig
Auto Trait Implementations§
impl Freeze for ReverbConfig
impl RefUnwindSafe for ReverbConfig
impl Send for ReverbConfig
impl Sync for ReverbConfig
impl Unpin for ReverbConfig
impl UnsafeUnpin for ReverbConfig
impl UnwindSafe for ReverbConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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