Struct symphonia_codec_aac::AacDecoder
source · pub struct AacDecoder { /* private fields */ }
Expand description
Advanced Audio Coding (AAC) decoder.
Implements a decoder for Advanced Audio Decoding Low-Complexity (AAC-LC) as defined in ISO/IEC 13818-7 and ISO/IEC 14496-3.
Trait Implementations§
source§impl Decoder for AacDecoder
impl Decoder for AacDecoder
source§fn try_new(params: &CodecParameters, _: &DecoderOptions) -> Result<Self>
fn try_new(params: &CodecParameters, _: &DecoderOptions) -> Result<Self>
Attempts to instantiates a
Decoder
using the provided CodecParameters
.source§fn supported_codecs() -> &'static [CodecDescriptor]
fn supported_codecs() -> &'static [CodecDescriptor]
Gets a list of codec descriptors for the codecs supported by this Decoder.
source§fn codec_params(&self) -> &CodecParameters
fn codec_params(&self) -> &CodecParameters
Gets a reference to an updated set of
CodecParameters
based on the parameters the
Decoder
was instantiated with.source§fn decode(&mut self, packet: &Packet) -> Result<AudioBufferRef<'_>>
fn decode(&mut self, packet: &Packet) -> Result<AudioBufferRef<'_>>
Decodes a
Packet
of audio data and returns a copy-on-write generic (untyped) audio buffer
of the decoded audio. Read moresource§fn finalize(&mut self) -> FinalizeResult
fn finalize(&mut self) -> FinalizeResult
Optionally, obtain post-decode information such as the verification status.
source§fn last_decoded(&self) -> AudioBufferRef<'_>
fn last_decoded(&self) -> AudioBufferRef<'_>
Allows read access to the internal audio buffer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for AacDecoder
impl Send for AacDecoder
impl Sync for AacDecoder
impl Unpin for AacDecoder
impl UnwindSafe for AacDecoder
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