pub struct FlowController {
pub tape: TapeEffect,
pub volume: VolumeEffect,
pub fade: FadeEffect,
pub crossfade: CrossfadeController,
/* private fields */
}Fields§
§tape: TapeEffect§volume: VolumeEffect§fade: FadeEffect§crossfade: CrossfadeControllerImplementations§
Source§impl FlowController
impl FlowController
pub fn new( frame_rx: Receiver<AudioFrame>, frame_tx: Sender<AudioFrame>, sample_rate: u32, channels: usize, volume: f32, ) -> Self
pub fn for_mixer( frame_rx: Receiver<AudioFrame>, sample_rate: u32, channels: usize, volume: f32, ) -> Self
pub fn run(&mut self)
pub fn try_pop_frame(&mut self) -> Result<Option<PooledBuffer>, AudioError>
pub fn process_frame(&mut self, frame: &mut [i16])
pub fn take_opus(&mut self) -> Option<Vec<u8>>
Auto Trait Implementations§
impl Freeze for FlowController
impl RefUnwindSafe for FlowController
impl Send for FlowController
impl Sync for FlowController
impl Unpin for FlowController
impl UnsafeUnpin for FlowController
impl UnwindSafe for FlowController
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> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
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