pub struct CmafAudioMuxer { /* private fields */ }Expand description
Stateful CMAF audio segmenter. Same model as the video muxer but simpler — every audio sample is independently decodable, so there’s no first-sample-flags / sync-boundary requirement.
Implementations§
Source§impl CmafAudioMuxer
impl CmafAudioMuxer
pub fn new(output_dir: impl AsRef<Path>, info: AudioInfo) -> Result<Self>
pub fn add_packet(&mut self, payload: Vec<u8>, duration: u32) -> Result<()>
pub fn pending_duration_ticks(&self) -> u64
pub fn flush_segment(&mut self) -> Result<Option<SegmentInfo>>
pub fn finalize(self) -> Result<CmafTrackManifest>
Auto Trait Implementations§
impl Freeze for CmafAudioMuxer
impl RefUnwindSafe for CmafAudioMuxer
impl Send for CmafAudioMuxer
impl Sync for CmafAudioMuxer
impl Unpin for CmafAudioMuxer
impl UnsafeUnpin for CmafAudioMuxer
impl UnwindSafe for CmafAudioMuxer
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