aaclc

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: MIT, MIT Imports: 5 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 aaclc decodes 5.1 AAC-LC access units (channel configuration 6).

Copyright 2003-2010 VisualOn, Inc. SPDX-License-Identifier: Apache-2.0 AAC spectral and scalefactor codebooks and scalefactor band boundaries transcribed from VisualOn aacenc/src/aac_rom.c. See UPSTREAM.md for the exact revision and license. The packed pair lengths are unpacked here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

Decoder keeps filterbank history for one 5.1 AAC-LC stream. Its planar output is borrowed until the next Decode call.

func NewDecoder

func NewDecoder(rate int) (*Decoder, error)

NewDecoder configures the sample rate of a channel-configuration 6 stream.

func (*Decoder) Decode

func (d *Decoder) Decode(packet []byte) (audio.Buffer[float32], error)

Decode decodes one raw access unit containing one AAC-LC frame.

func (*Decoder) PCMFormat

func (d *Decoder) PCMFormat() audio.Format

PCMFormat returns the native float PCM format.

Jump to

Keyboard shortcuts

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