pub struct AutoAudioBuffer { /* private fields */ }Expand description
auto re-sample and buffer the audio frame from the decoder to the encoder
some encode, like opus support variable frame size, the frame decoded from other format may not be the same as the frame size of the encoder, this filter graph will handle the re-sample and frame split.
Implementations§
Source§impl AutoAudioBuffer
impl AutoAudioBuffer
pub fn new<S, D>(src: S, dst: D) -> FFmpegResult<Self>
pub fn add_frame(&mut self, frame: &AudioFrame) -> FFmpegResult
pub fn recv_frames<F>(&mut self, cb: &mut F) -> FFmpegResult
pub fn flush(&mut self) -> FFmpegResult
Auto Trait Implementations§
impl !Send for AutoAudioBuffer
impl !Sync for AutoAudioBuffer
impl Freeze for AutoAudioBuffer
impl RefUnwindSafe for AutoAudioBuffer
impl Unpin for AutoAudioBuffer
impl UnsafeUnpin for AutoAudioBuffer
impl UnwindSafe for AutoAudioBuffer
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