Documentation ¶
Overview ¶
Package flac implements a Free Lossless Audio Codec (FLAC) decoder.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct { MetaData // contains filtered or unexported fields }
A Decoder decodes a FLAC audio file. Unlike the Decode function, a decoder can decode the file incrementally, one frame at a time.
func NewDecoder ¶
NewDecoder reads the FLAC header information and returns a new Decoder. If an error is encountered while reading the header information then nil is returned along with the error.
type MetaData ¶
type MetaData struct { *StreamInfo *VorbisComment }
MetaData contains metadata header information from a FLAC file header.
type StreamInfo ¶
type StreamInfo struct { MinBlock int MaxBlock int MinFrame int MaxFrame int SampleRate int NChannels int BitsPerSample int TotalSamples int64 MD5 [md5.Size]byte }
StreamInfo contains information about the FLAC stream.
type VorbisComment ¶
VorbisComment (a.k.a. FLAC tags) contains Vorbis-style comments that are human-readable textual information.
Click to show internal directories.
Click to hide internal directories.