aac

package
v0.1.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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.

func NewCodec

func NewCodec(asc []byte) (mp4.Codec, error)

NewCodec returns a decoder of the raw AAC packets of a track configured by asc, its AudioSpecificConfig: an MP4's, for package mp4.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL