Skip to main content

Module pcm

Module pcm 

Source
Expand description

Decoded samples: 16 bits, interleaved, one or two channels.

Structs§

Limits
What a decoder may produce: a malformed or hostile file stops here, before it costs the memory it asks for.
Pcm
A sound decoded whole.
PcmFormat
The rate and channels of some samples.

Enums§

Channels
How many channels a frame has.

Functions§

from_i8
sample of 8 bits as one of 16: the same fraction of full scale.
from_i24
sample of 24 bits, in the low bits of an i32, as one of 16: the bits below are dropped, as a truncating converter does. Out of range, it clamps.
from_i32
sample of 32 bits as one of 16: the bits below are dropped.