pub struct LtcDecoder { /* private fields */ }Expand description
Minimal LTC frame-boundary detector.
In a real system LTC is an 80-bit bi-phase mark coded audio signal.
This implementation models the state machine that detects a sync word
and returns the number of complete frames found in an audio sample
buffer (where each bit is represented as a single bool sample for
simplicity / testability).
Implementations§
Source§impl LtcDecoder
impl LtcDecoder
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LtcDecoder
impl RefUnwindSafe for LtcDecoder
impl Send for LtcDecoder
impl Sync for LtcDecoder
impl Unpin for LtcDecoder
impl UnsafeUnpin for LtcDecoder
impl UnwindSafe for LtcDecoder
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> 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