consts

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SamplesPerGr  = 576
	BytesPerFrame = SamplesPerGr * 2 * 4
)

Variables

View Source
var (
	SfBandIndicesSet = map[SamplingFrequency]SfBandIndices{
		SamplingFrequency44100: {
			L: []int{0, 4, 8, 12, 16, 20, 24, 30, 36, 44, 52, 62, 74, 90, 110, 134, 162, 196, 238, 288, 342, 418, 576},
			S: []int{0, 4, 8, 12, 16, 22, 30, 40, 52, 66, 84, 106, 136, 192},
		},
		SamplingFrequency48000: {
			L: []int{0, 4, 8, 12, 16, 20, 24, 30, 36, 42, 50, 60, 72, 88, 106, 128, 156, 190, 230, 276, 330, 384, 576},
			S: []int{0, 4, 8, 12, 16, 22, 28, 38, 50, 64, 80, 100, 126, 192},
		},
		SamplingFrequency32000: {
			L: []int{0, 4, 8, 12, 16, 20, 24, 30, 36, 44, 54, 66, 82, 102, 126, 156, 194, 240, 296, 364, 448, 550, 576},
			S: []int{0, 4, 8, 12, 16, 22, 30, 42, 58, 78, 104, 138, 180, 192},
		},
	}
)

Functions

This section is empty.

Types

type Layer

type Layer int
const (
	LayerReserved Layer = 0
	Layer3        Layer = 1
	Layer2        Layer = 2
	Layer1        Layer = 3
)

type Mode

type Mode int
const (
	ModeStereo        Mode = 0
	ModeJointStereo   Mode = 1
	ModeDualChannel   Mode = 2
	ModeSingleChannel Mode = 3
)

type SamplingFrequency

type SamplingFrequency int
const (
	SamplingFrequency44100    SamplingFrequency = 0
	SamplingFrequency48000    SamplingFrequency = 1
	SamplingFrequency32000    SamplingFrequency = 2
	SamplingFrequencyReserved SamplingFrequency = 3
)

func (SamplingFrequency) Int

func (s SamplingFrequency) Int() int

type SfBandIndices

type SfBandIndices struct {
	L []int
	S []int
}

type UnexpectedEOF

type UnexpectedEOF struct {
	At string
}

func (*UnexpectedEOF) Error

func (u *UnexpectedEOF) Error() string

type Version

type Version int
const (
	Version2_5      Version = 0
	VersionReserved Version = 1
	Version2        Version = 2
	Version1        Version = 3
)

Jump to

Keyboard shortcuts

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