pub struct LtcWriter { /* private fields */ }Expand description
LTC writer
Implementations§
Source§impl LtcWriter
impl LtcWriter
Sourcepub fn new(config: LtcWriterConfig) -> Self
pub fn new(config: LtcWriterConfig) -> Self
Create a new LTC writer with configuration
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
Trait Implementations§
Source§impl TimecodeWriter for LtcWriter
impl TimecodeWriter for LtcWriter
Source§fn write_timecode(&mut self, timecode: &Timecode) -> Result<(), TimecodeError>
fn write_timecode(&mut self, timecode: &Timecode) -> Result<(), TimecodeError>
Write a timecode to the output
Source§fn frame_rate(&self) -> FrameRate
fn frame_rate(&self) -> FrameRate
Get the current frame rate
Auto Trait Implementations§
impl Freeze for LtcWriter
impl RefUnwindSafe for LtcWriter
impl Send for LtcWriter
impl Sync for LtcWriter
impl Unpin for LtcWriter
impl UnsafeUnpin for LtcWriter
impl UnwindSafe for LtcWriter
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