mp4audio

package
v0.3.21 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: MIT Imports: 1 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 mp4audio holds what the readers and writers of an MPEG-4 AudioSpecificConfig (ISO/IEC 14496-3, 1.6.2.1) share: the sampling frequency indices.

Index

Constants

View Source
const ExplicitRate = 15

ExplicitRate is the sampling frequency index that announces a 24-bit rate in Hz in the stream instead of a rate of the table.

View Source
const SampleRateIndices = len(sampleRates)

SampleRateIndices is the number of sampling frequency indices that name a rate.

Variables

This section is empty.

Functions

func SampleRate

func SampleRate(index int) (rate int, ok bool)

SampleRate is the rate in Hz of a sampling frequency index; ok is false for ExplicitRate and the reserved indices.

func SampleRateIndex

func SampleRateIndex(rate int) (index int, ok bool)

SampleRateIndex is the sampling frequency index of a rate in Hz; ok is false for a rate outside the table, which a config announces with ExplicitRate.

Types

This section is empty.

Jump to

Keyboard shortcuts

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