Documentation ¶ Index ¶ type Decoder func New(log librespot.Logger, r librespot.SizedReadAtSeeker, gain float32) (*Decoder, error) func (d *Decoder) Close() error func (d *Decoder) PositionMs() int64 func (d *Decoder) Read(p []float32) (n int, err error) func (d *Decoder) SetPositionMs(pos int64) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Decoder ¶ type Decoder struct { SampleRate int32 Channels int32 // contains filtered or unexported fields } Decoder implements an FLAC decoder. func New ¶ func New(log librespot.Logger, r librespot.SizedReadAtSeeker, gain float32) (*Decoder, error) func (*Decoder) Close ¶ func (d *Decoder) Close() error func (*Decoder) PositionMs ¶ func (d *Decoder) PositionMs() int64 func (*Decoder) Read ¶ func (d *Decoder) Read(p []float32) (n int, err error) func (*Decoder) SetPositionMs ¶ func (d *Decoder) SetPositionMs(pos int64) error Source Files ¶ View all Source files decoder.go Click to show internal directories. Click to hide internal directories.