Expand description
Zero-copy audio sample format conversion.
Provides utilities for converting between i16 PCM sample slices and raw byte
slices using [bytemuck] (zero-copy reinterpret casts), and for wrapping
owned byte vectors as shared [Bytes] handles for zero-copy fan-out.
Functionsยง
- bytes_
to_ i16 - Convert raw bytes to i16 PCM samples (zero-copy via bytemuck).
- i16_
to_ bytes - Convert a slice of i16 PCM samples to raw bytes (zero-copy via bytemuck).
- into_
shared - Wrap raw bytes as a shared
Byteshandle for zero-copy fan-out.