Skip to content

pkgs/audio/resampler

Provides PCM sample-rate, channel and sample format conversion, current native implementation uses SoXR.

Go API References

Core structure and main function

SymbolFunction
FormatDescription input/output sample rate, channels and encoding.
ResamplerDefine streaming conversion and closing contracts.
SoxrSoXR-backed implementation.
NewCreate 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.