pub struct Chain<L, R> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<L: Source, R: Source> Source for Chain<L, R>
impl<L: Source, R: Source> Source for Chain<L, R>
Source§fn next_sample(&mut self) -> Option<Frame>
fn next_sample(&mut self) -> Option<Frame>
Advance the source to the next sample, returning it. Read more
Source§fn sample_rate(&self) -> SampleRate
fn sample_rate(&self) -> SampleRate
Returns the current sample rate of the source
Source§fn sample_count(&self) -> Option<u64>
fn sample_count(&self) -> Option<u64>
Returns the number of times
next_sample will yieldSource§fn sample_buffered(&mut self, output: &mut [Frame]) -> usize
fn sample_buffered(&mut self, output: &mut [Frame]) -> usize
Samples many samples at the same time and adds them to the output Read more
fn take(self, dur: Duration) -> Slice<Self>where
Self: Sized,
fn skip(self, dur: Duration) -> Slice<Self>where
Self: Sized,
fn pad_to(self, dur: Duration) -> PadTo<Self>where
Self: Sized,
fn crossfade<S>(self, other: S, dur: Duration) -> Crossfade<Self, S>
fn chain<S>(self, other: S) -> Chain<Self, S>
fn mix<S>(self, other: S) -> Mix<Self, S>
fn slice<R>(self, range: R) -> Slice<Self>
fn repeat(self) -> Repeat<Self>
fn samples_iter(self) -> SampleIter<Self> ⓘwhere
Self: Sized,
fn gain<G>(self, gain: G) -> Gain<Self, G>
fn spatial<L, P>(
self,
hrtf_lib: &HrtfLib,
listener: L,
params: P,
) -> Spatial<Self, L, P>where
Self: Sized,
L: for<'x> Value<'x, Item = AudioListener>,
P: for<'x> Value<'x, Item = AudioEmitter>,
fn high_pass(
self,
freq: f32,
bandwidth: f32,
) -> BilinearTransform<Self, Hpf, Constant<Hpf>>where
Self: Sized,
fn low_pass(
self,
freq: f32,
bandwidth: f32,
) -> BilinearTransform<Self, Lpf, Constant<Lpf>>where
Self: Sized,
fn blt<V, H>(self, transfer: V) -> BilinearTransform<Self, H, V>
fn history(
self,
freq: f32,
buf: Arc<Mutex<CircularQueue<Frame>>>,
) -> History<Self>where
Self: Sized,
fn oscilloscope(
self,
periods: usize,
output: Arc<Mutex<Vec<Frame>>>,
) -> Oscilloscope<Self>where
Self: Sized,
Auto Trait Implementations§
impl<L, R> Freeze for Chain<L, R>
impl<L, R> RefUnwindSafe for Chain<L, R>where
L: RefUnwindSafe,
R: RefUnwindSafe,
impl<L, R> Send for Chain<L, R>
impl<L, R> Sync for Chain<L, R>
impl<L, R> Unpin for Chain<L, R>
impl<L, R> UnwindSafe for Chain<L, R>where
L: UnwindSafe,
R: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ComponentValueBase for T
impl<T> ComponentValueBase for T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
Source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.
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>
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