Documentation
¶
Overview ¶
Package frame implements the FLAC frame wire format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartSample ¶
func StartSample(header Header, info streaminfo.StreamInfo) uint64
Types ¶
type Header ¶
type Header struct {
BlockSize int
SampleRate int
Channels int
ChannelAssignment uint8
BitsPerSample int
BlockingStrategy bool
Number uint64
HeaderBytes int
HeaderCRC byte
FrameBytes int
}
func ParseHeader ¶
func ParseHeader(data []byte, info streaminfo.StreamInfo) (Header, error)
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner splits native FLAC audio data into complete, validated frames.
func NewScanner ¶
func NewScanner(r io.Reader, info streaminfo.StreamInfo, options Options) (*Scanner, error)
func (*Scanner) FrameOffset ¶
Click to show internal directories.
Click to hide internal directories.