Documentation
¶
Overview ¶
Package aac decodes AAC-LC for package audio, with github.com/tphakala/go-aac: in MP4 (.m4a, and fragmented .m4s as DASH streams it), through package audio/mp4, and in ADTS (.aac). Import it for its side effect:
import _ "github.com/HyperparameterSI/golet/backend/audio/aac"
HE-AAC (AAC+, with SBR) and HE-AAC v2 it does not decode: their files fail to open, and mp4.Track's Decodable says so of them.
go-aac is under the LGPL 2.1 or later, unlike Golet, whose license is MIT: an app that imports this package links it, and takes on the LGPL's terms for it.
Index ¶
Constants ¶
const FrameLength = 1024
FrameLength is how many frames each AAC packet decodes to.
Variables ¶
This section is empty.
Functions ¶
func NewADTSDecoder ¶
func NewADTSDecoder(r io.ReadSeeker) (audio.Decoder, error)
NewADTSDecoder returns a decoder of the AAC in ADTS frames r holds, as an .aac file, after an ID3 tag if one is first. It decodes to stereo.
Types ¶
This section is empty.