pub struct LtcDecoder { /* private fields */ }Expand description
Biphase mark code decoder
Implementations§
Source§impl LtcDecoder
impl LtcDecoder
Sourcepub fn new(sample_rate: u32, frame_rate: FrameRate, min_amplitude: f32) -> Self
pub fn new(sample_rate: u32, frame_rate: FrameRate, min_amplitude: f32) -> Self
Create a new LTC decoder
Sourcepub fn process_samples(
&mut self,
samples: &[f32],
) -> Result<Option<Timecode>, TimecodeError>
pub fn process_samples( &mut self, samples: &[f32], ) -> Result<Option<Timecode>, TimecodeError>
Process audio samples and decode timecode
Sourcepub fn last_decoded_timecode(&self) -> Option<Timecode>
pub fn last_decoded_timecode(&self) -> Option<Timecode>
Return the most recently decoded timecode, if any.
This is the same value that was returned by the last successful call
to process_samples. It is cleared on
reset.
Sourcepub fn is_synchronized(&self) -> bool
pub fn is_synchronized(&self) -> bool
Check if decoder is synchronized
Sourcepub fn sync_confidence(&self) -> f32
pub fn sync_confidence(&self) -> f32
Get sync confidence (0.0 to 1.0)
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