pub struct MonitorProcessor { /* private fields */ }Expand description
Mirrors a track’s own PCM frames into a MonitorHub, tagged with a leg
byte. Frames merely relayed for another leg (e.g. the caller’s audio
forwarded through the media-pass track’s send_packet) are filtered out by
the owner check — the originating track publishes its own copy.
Implementations§
Source§impl MonitorProcessor
impl MonitorProcessor
pub fn new(owner: TrackId, leg: u8, hub: MonitorHub) -> Self
Trait Implementations§
Source§impl Processor for MonitorProcessor
impl Processor for MonitorProcessor
fn process_frame(&mut self, frame: &mut AudioFrame) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for MonitorProcessor
impl !UnwindSafe for MonitorProcessor
impl Freeze for MonitorProcessor
impl Send for MonitorProcessor
impl Sync for MonitorProcessor
impl Unpin for MonitorProcessor
impl UnsafeUnpin for MonitorProcessor
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<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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