pub struct LtcEncoder { /* private fields */ }Expand description
LTC encoder
Implementations§
Source§impl LtcEncoder
impl LtcEncoder
Sourcepub fn new(sample_rate: u32, frame_rate: FrameRate, amplitude: f32) -> Self
pub fn new(sample_rate: u32, frame_rate: FrameRate, amplitude: f32) -> Self
Create a new LTC encoder
Sourcepub fn encode_frame(
&mut self,
timecode: &Timecode,
) -> Result<Vec<f32>, TimecodeError>
pub fn encode_frame( &mut self, timecode: &Timecode, ) -> Result<Vec<f32>, TimecodeError>
Encode a timecode frame to audio samples
Sourcepub fn set_amplitude(&mut self, amplitude: f32)
pub fn set_amplitude(&mut self, amplitude: f32)
Set output amplitude
Auto Trait Implementations§
impl Freeze for LtcEncoder
impl RefUnwindSafe for LtcEncoder
impl Send for LtcEncoder
impl Sync for LtcEncoder
impl Unpin for LtcEncoder
impl UnsafeUnpin for LtcEncoder
impl UnwindSafe for LtcEncoder
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