pub struct OpusCodecDecoder { /* private fields */ }Trait Implementations§
Source§impl Decoder for OpusCodecDecoder
impl Decoder for OpusCodecDecoder
Source§fn try_new(params: &CodecParameters, _options: &DecoderOptions) -> Result<Self>
fn try_new(params: &CodecParameters, _options: &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: &SymphPacket) -> Result<AudioBufferRef<'_>>
fn decode(&mut self, packet: &SymphPacket) -> 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
impl Sync for OpusCodecDecoder
Auto Trait Implementations§
impl Freeze for OpusCodecDecoder
impl RefUnwindSafe for OpusCodecDecoder
impl Send for OpusCodecDecoder
impl Unpin for OpusCodecDecoder
impl UnsafeUnpin for OpusCodecDecoder
impl UnwindSafe for OpusCodecDecoder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more