Versions in this module Expand all Collapse all v0 v0.1.0 Jun 8, 2026 Changes in this version + type Bandwidth byte + const BandwidthFullband + const BandwidthMediumband + const BandwidthNarrowband + const BandwidthSuperwideband + const BandwidthWideband + func (b Bandwidth) SampleRate() int + func (b Bandwidth) String() string + type Configuration byte + type Decoder struct + func NewDecoder() Decoder + func NewDecoderWithOutput(sampleRate, channels int) (Decoder, error) + func (d *Decoder) Decode(in, out []byte) (bandwidth Bandwidth, isStereo bool, err error) + func (d *Decoder) DecodeFloat32(in []byte, out []float32) (bandwidth Bandwidth, isStereo bool, err error) + func (d *Decoder) DecodeToFloat32(in []byte, out []float32) (int, error) + func (d *Decoder) DecodeToInt16(in []byte, out []int16) (int, error) + func (d *Decoder) Init(sampleRate, channels int) error