Documentation
¶
Overview ¶
Package aac encodes AAC-LC (ISO/IEC 14496-3): PCM in, ADTS frames out, mono to 5.1 at 44.1 or 48 kHz. Long blocks, a sine window, mid/side stereo, a rate loop with a bit reservoir over band thresholds that follow the signal's energy.
Index ¶
Constants ¶
const Delay = 1024
Delay is how many samples the decoded audio lags the input.
const FrameSamples = 1024
FrameSamples is a frame's samples per channel.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
Encoder codes PCM as AAC-LC.
func NewEncoder ¶
NewEncoder makes an encoder for channels at rate (44100 or 48000) and kbps kb/s. Channels go in AAC's order: C (mono), L R (stereo), C L R, C L R S, C L R Ls Rs, C L R Ls Rs LFE (lfe set, 6 channels).