Versions in this module Expand all Collapse all v0 v0.7.3 Nov 5, 2026 v0.7.2 Nov 5, 2026 Changes in this version + const DefaultBitrate + const EncoderDelay + const FrameSize + var ErrEncoderClosed = errors.New("go-aac: encoder is closed") + var ErrInvalidAudio = errors.New("go-aac: input contains NaN or Inf") + var SampleRates = [13]int + func AppendADTSHeader(dst []byte, sampleRate, channels, payloadLen int) ([]byte, error) + func SIMDEnabled() bool + type Coder int + const CoderFast + const CoderNMR + const CoderTwoLoop + type Encoder struct + func NewEncoder(cfg EncoderConfig) (*Encoder, error) + func (e *Encoder) AudioSpecificConfig() []byte + func (e *Encoder) Delay() int + func (e *Encoder) Drained() bool + func (e *Encoder) EncodeFrame(dst []byte, samples [][]float32) ([]byte, error) + func (e *Encoder) Reset(cfg EncoderConfig) error + func (e *Encoder) Stats() Stats + type EncoderConfig struct + Bitrate int + Channels int + Coder Coder + Cutoff int + DisableIS bool + DisableMS bool + DisablePNS bool + DisableTNS bool + SampleRate int + type Stats struct + Bands int64 + ChannelFrames int64 + Frames int64 + ISBands int64 + MSBands int64 + MeanLambda float64 + PNSBands int64 + PairBands int64 + ShortFrames int64 + TNSLongFrames int64 + TNSShortFrames int64 + func (s Stats) String() string