pkgs/audio/resampler
Provides PCM sample-rate, channel and sample format conversion, current native implementation uses SoXR.
Core structure and main function
| Symbol | Function |
|---|---|
Format | Description input/output sample rate, channels and encoding. |
Resampler | Define streaming conversion and closing contracts. |
Soxr | SoXR-backed implementation. |
New | Create converter based on source reader and format at both ends. |
Resampler only converts PCM representation and is not responsible for decoding compressed audio, nor does it determine the target device or network format.