Skip to main content

Module pcm

Module pcm 

Source
Expand description

Raw PCM conversion, including G.711 A-law and µ-law.

Functions§

decode_alaw
decode_pcm
decode_ulaw
encode_alaw
encode_pcm
encode_pcm_with_dither
Encode interleaved PCM with optional seeded noise at the final integer quantizer. The seed restarts on each call. For chunked input, use crate::stream::PcmEncoder::with_dither to retain its state across chunks. Float and G.711 samples reject enabled dither with crate::ErrorCode::InvalidArgument.
encode_ulaw