Documentation ¶
Overview ¶
Package flac wraps libflac to provide the parent audio package a codec for FLAC.
Currently only a decoder is implemented.
Index ¶
- Variables
- type SoundFileReaderFLAC
- func (r *SoundFileReaderFLAC) Close() error
- func (r *SoundFileReaderFLAC) Info() audio.SoundFileInfo
- func (r *SoundFileReaderFLAC) Open(file io.ReadSeeker) (info audio.SoundFileInfo, err error)
- func (r *SoundFileReaderFLAC) Read(data []int16) (samplesRead int64, err error)
- func (r *SoundFileReaderFLAC) Seek(sampleOffset int64) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Magic = []byte("fLaC")
Magic is the magic header of the FLAC format. It is at the very beginning of the file.
View Source
var SoundFileCheckFLAC = audio.SoundFileCheckMagic(Magic, 0)
SoundFileCheckFLAC is the check function of the FLAC format.
Functions ¶
This section is empty.
Types ¶
type SoundFileReaderFLAC ¶
type SoundFileReaderFLAC struct {
// contains filtered or unexported fields
}
func (*SoundFileReaderFLAC) Close ¶
func (r *SoundFileReaderFLAC) Close() error
func (*SoundFileReaderFLAC) Info ¶
func (r *SoundFileReaderFLAC) Info() audio.SoundFileInfo
func (*SoundFileReaderFLAC) Open ¶
func (r *SoundFileReaderFLAC) Open(file io.ReadSeeker) (info audio.SoundFileInfo, err error)
func (*SoundFileReaderFLAC) Read ¶
func (r *SoundFileReaderFLAC) Read(data []int16) (samplesRead int64, err error)
func (*SoundFileReaderFLAC) Seek ¶
func (r *SoundFileReaderFLAC) Seek(sampleOffset int64) error
Click to show internal directories.
Click to hide internal directories.