#[non_exhaustive]pub struct AudioPacketConfig { /* private fields */ }Expand description
Per-stream audio configuration delivered via on_stream_info.
Implementations§
Source§impl AudioPacketConfig
impl AudioPacketConfig
Sourcepub fn stream_index(&self) -> usize
pub fn stream_index(&self) -> usize
Output stream index; matches PacketView::stream_index.
Sourcepub fn codec_string(&self) -> &str
pub fn codec_string(&self) -> &str
RFC 6381 codec string ("mp4a.40.X", X = audio object type).
Sourcepub fn codec_config(&self) -> &[u8] ⓘ
pub fn codec_config(&self) -> &[u8] ⓘ
The AudioSpecificConfig, suitable as the WebCodecs description.
Sourcepub fn extradata(&self) -> &[u8] ⓘ
pub fn extradata(&self) -> &[u8] ⓘ
FFmpeg-oriented alias of codec_config.
Sourcepub fn time_base(&self) -> AVRational
pub fn time_base(&self) -> AVRational
Time base every timestamp of this stream is expressed in.
Sourcepub fn sample_rate(&self) -> i32
pub fn sample_rate(&self) -> i32
Sample rate in Hz.
Sourcepub fn channel_layout(&self) -> &str
pub fn channel_layout(&self) -> &str
FFmpeg channel-layout description (e.g. "stereo", "5.1").
Trait Implementations§
Source§impl Clone for AudioPacketConfig
impl Clone for AudioPacketConfig
Source§fn clone(&self) -> AudioPacketConfig
fn clone(&self) -> AudioPacketConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AudioPacketConfig
impl RefUnwindSafe for AudioPacketConfig
impl Send for AudioPacketConfig
impl Sync for AudioPacketConfig
impl Unpin for AudioPacketConfig
impl UnsafeUnpin for AudioPacketConfig
impl UnwindSafe for AudioPacketConfig
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