pub struct StreamInfo { /* private fields */ }
Expand description
Codec initialisation parameters for an ALAC stream.
Implementations§
Source§impl StreamInfo
impl StreamInfo
Creates a StreamInfo
from a magic cookie. This is often stored in the header of a
container format.
Sourcepub fn from_sdp_format_parameters(
params: &str,
) -> Result<StreamInfo, InvalidData>
pub fn from_sdp_format_parameters( params: &str, ) -> Result<StreamInfo, InvalidData>
Creates a StreamInfo
from SDP format specific parameters, i.e. the fmtp
attribute.
pub fn sample_rate(&self) -> u32
pub fn bit_depth(&self) -> u8
pub fn channels(&self) -> u8
pub fn max_frames_per_packet(&self) -> u32
pub fn max_samples_per_packet(&self) -> u32
Trait Implementations§
Source§impl Clone for StreamInfo
impl Clone for StreamInfo
Source§fn clone(&self) -> StreamInfo
fn clone(&self) -> StreamInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StreamInfo
impl Debug for StreamInfo
Source§impl PartialEq for StreamInfo
impl PartialEq for StreamInfo
impl Eq for StreamInfo
impl StructuralPartialEq for StreamInfo
Auto Trait Implementations§
impl Freeze for StreamInfo
impl RefUnwindSafe for StreamInfo
impl Send for StreamInfo
impl Sync for StreamInfo
impl Unpin for StreamInfo
impl UnwindSafe for StreamInfo
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