package
1.0.12
Repository: https://github.com/mewkiz/flac.git
Documentation: pkg.go.dev

# Functions

New creates a new Frame for accessing the audio samples of r.
Parse reads and parses the header, and the audio samples from each subframe of a frame.

# Constants

2 channels: left, side; using inter-channel decorrelation.
2 channels: left, right.
3 channels: left, right, center.
7 channels: left, right, center, LFE, center surround, side left, side right.
6 channels: left, right, center, LFE, left surround, right surround.
8 channels: left, right, center, LFE, left surround, right surround, side left, side right.
5 channels: left, right, center, left surround, right surround.
4 channels: left, right, left surround, right surround.
2 channels: mid, side; using inter-channel decorrelation.
1 channel: mono.
2 channels: side, right; using inter-channel decorrelation.
PredConstant specifies that the subframe contains a constant sound.
PredFIR specifies that the subframe contains linear prediction coded audio samples.
PredFixed specifies that the subframe contains linear prediction coded audio samples.
PredVerbatim specifies that the subframe contains unencoded audio samples.
Rice coding with a 4-bit Rice parameter (rice1).
Rice coding with a 5-bit Rice parameter (rice2).

# Variables

Errors returned by Frame.parseHeader.
FixedCoeffs maps from prediction order to the LPC coefficients used in fixed encoding.

# Structs

A Frame contains the header and subframes of an audio frame.
A Header contains the basic properties of an audio frame, such as its sample rate and channel count.
RicePartition is a partition containing a subset of the residuals of a subframe.
RiceSubframe holds rice-coding subframe fields used by residual coding methods rice1 and rice2.
A Subframe contains the encoded audio samples from one channel of an audio block (a part of the audio stream).
A SubHeader specifies the prediction method and order of a subframe.

# Type aliases

Channels specifies the number of channels (subframes) that exist in a frame, their order and possible inter-channel decorrelation.
Pred specifies the prediction method used to encode the audio samples of a subframe.
ResidualCodingMethod specifies a residual coding method.