pub type Mp3Decoder = MpaDecoder;👎Deprecated: use
default::codecs::MpaDecoder insteadAliased Type§
pub struct Mp3Decoder { /* private fields */ }Trait Implementations
Source§impl Decoder for MpaDecoder
impl Decoder for MpaDecoder
Source§fn try_new(
params: &CodecParameters,
_: &DecoderOptions,
) -> Result<MpaDecoder, Error>
fn try_new( params: &CodecParameters, _: &DecoderOptions, ) -> Result<MpaDecoder, Error>
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<'_>, Error>
fn decode(&mut self, packet: &Packet) -> Result<AudioBufferRef<'_>, Error>
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