Versions in this module Expand all Collapse all v0 v0.1.0 Aug 25, 2026 Changes in this version + func OverlapWindow() []float32 + func SmoothFade(in1, in2, out []float32, overlap int, channels int) + func SmoothFadeWithSampleRate(in1, in2, out []float32, overlap int, channels int, outputSampleRate int) + type Decoder struct + func NewDecoder() Decoder + func (d *Decoder) Decode(in []byte, out []float32, isStereo bool, outputChannelCount int, ...) error + func (d *Decoder) DecodeToSampleRate(in []byte, out []float32, isStereo bool, outputChannelCount int, ...) error + func (d *Decoder) DecodeWithRange(in []byte, out []float32, isStereo bool, outputChannelCount int, ...) error + func (d *Decoder) DecodeWithRangeToSampleRate(in []byte, out []float32, isStereo bool, outputChannelCount int, ...) error + func (d *Decoder) FinalRange() uint32 + func (d *Decoder) Mode() *Mode + func (d *Decoder) Reset() + type Encoder struct + func NewEncoder() Encoder + func (e *Encoder) Complexity() int + func (e *Encoder) EncodeFrame(pcm [][]float32, dst []byte, frameBytes, startBand, endBand int) (int, error) + func (e *Encoder) FinalRange() uint32 + func (e *Encoder) Mode() *Mode + func (e *Encoder) Reset() + func (e *Encoder) SetBitrate(bps int) + func (e *Encoder) SetComplexity(c int) + func (e *Encoder) SetConstrainedVBR(cvbr bool) + func (e *Encoder) SetLossRate(rate int) + func (e *Encoder) SetVBR(vbr bool) + type Mode struct + func DefaultMode() *Mode + func (m *Mode) BandCount() int + func (m *Mode) BandEdges(lm int) ([]int, error) + func (m *Mode) BandRangeForSampleRate(sampleRate int) (startBand, endBand int, err error) + func (m *Mode) BandWidth(band, lm int) (int, error) + func (m *Mode) FrameSampleCount(lm int) (int, error) + func (m *Mode) HybridBandRange(sampleRate int) (startBand, endBand int, err error) + func (m *Mode) LMForFrameSampleCount(frameSampleCount int) (int, error) + func (m *Mode) MaxLM() int + func (m *Mode) SampleRate() int + func (m *Mode) ShortBlockSampleCount() int