pub struct LowPass { /* private fields */ }Expand description
An effect that suppresses high frequencies.
LowPass reduces the volume of frequencies above the given cutoff.
This can create the impression of sound coming from far away or in another room.
§Examples
let sin = SineWave::new(1.0, 440.0);
let low_pass = LowPass::new(sin.into_shared(), 200.0);Implementations§
Trait Implementations§
Source§impl AudioSource for LowPass
impl AudioSource for LowPass
Source§fn read(&mut self, buffer: &mut AudioBuffer<'_>) -> ReadResult
fn read(&mut self, buffer: &mut AudioBuffer<'_>) -> ReadResult
Consume audio data and attempt to fill the given buffer. Read more
Auto Trait Implementations§
impl Freeze for LowPass
impl RefUnwindSafe for LowPass
impl Send for LowPass
impl Sync for LowPass
impl Unpin for LowPass
impl UnsafeUnpin for LowPass
impl UnwindSafe for LowPass
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Move this audio source into an
Arc<Mutex<...>> so that it can be
shared between threads.