pub struct AsfWmaDecoder<R: Read + Seek> { /* private fields */ }Expand description
ASF + WMA (v1/v2) decoding pipeline.
This type owns the Read+Seek source, parses ASF headers, reassembles media objects
and decodes WMA packets into PCM.
Implementations§
Source§impl<R: Read + Seek> AsfWmaDecoder<R>
impl<R: Read + Seek> AsfWmaDecoder<R>
Sourcepub fn open(reader: R) -> Result<Self>
pub fn open(reader: R) -> Result<Self>
Open an ASF/WMV stream and initialize the WMA decoder.
The decoder selects the first audio stream with format tag 0x0160 (WMAv1) or 0x0161 (WMAv2).
pub fn sample_rate(&self) -> u32
pub fn channels(&self) -> u16
Sourcepub fn next_frame(&mut self) -> Result<Option<DecodedAudioFrame>>
pub fn next_frame(&mut self) -> Result<Option<DecodedAudioFrame>>
Decode the next audio frame.
Returns Ok(None) on end-of-stream.
Auto Trait Implementations§
impl<R> Freeze for AsfWmaDecoder<R>where
R: Freeze,
impl<R> RefUnwindSafe for AsfWmaDecoder<R>where
R: RefUnwindSafe,
impl<R> Send for AsfWmaDecoder<R>where
R: Send,
impl<R> Sync for AsfWmaDecoder<R>where
R: Sync,
impl<R> Unpin for AsfWmaDecoder<R>where
R: Unpin,
impl<R> UnwindSafe for AsfWmaDecoder<R>where
R: UnwindSafe,
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