Documentation
¶
Overview ¶
Package flac decodes FLAC for package audio, with github.com/mewkiz/flac: .flac files, and FLAC in MP4 through package audio/mp4, as lossless DASH streams carry it. Import it for its side effect:
import _ "github.com/HyperparameterSI/golet/backend/audio/flac"
FLAC's frames stand alone, so a seek lands on the very frame of sound asked for, without a seek table.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCodec ¶
NewCodec returns a decoder of the FLAC frames of an MP4's track whose configuration, its dfLa box's, is blocks: the metadata blocks, as a FLAC file has them after "fLaC".
func NewDecoder ¶
func NewDecoder(r io.ReadSeeker) (audio.Decoder, error)
NewDecoder returns a decoder of the FLAC file r holds, after an ID3 tag if one is first. It decodes to stereo: a mono file in both, and the front left and right of more channels.
Types ¶
This section is empty.