Skip to main content

Crate audio_codec

Crate audio_codec 

Source

Re-exports§

pub use error::CodecError;
pub use resampler::Resampler;
pub use resampler::BoxedResampler;
pub use resampler::resample;

Modules§

error
g722
g729
opus
pcma
pcmu
resampler
Default polyphase resampler (f32 core, exact integer timing). Default polyphase FIR resampler (f32 core, exact integer timing).
resampler_fixed
Alternative polyphase resampler with a Q15 fixed-point core, for targets without an FPU. Not the default; use resampler unless you need it.
telephone_event
RFC 4733 telephone-event (DTMF) payload helpers.

Enums§

CodecType

Traits§

Decoder
Decoder trait: converts codec-specific bytes into PCM samples.
Encoder
Encoder trait: converts PCM samples into codec-specific bytes.

Functions§

bytes_to_samples
bytes_to_samples_into
Decode the little-endian bytes into out as Sample (i16) values.
create_decoder
create_encoder
create_opus_decoder
create_opus_encoder
samples_to_bytes
samples_to_bytes_into
Write the little-endian byte representation of samples into out.

Type Aliases§

PcmBuf
Sample