Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DataChunkSize represents the amount of data read from physical bitstream on each iteration. DataChunkSize = 4096 // could be also 8192 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct { sync.Mutex SampleRate int32 Channels int32 // contains filtered or unexported fields }
Decoder implements an OggVorbis decoder.
func New ¶
func New(log *log.Entry, r librespot.SizedReadAtSeeker, meta *audio.MetadataPage, gain float32) (*Decoder, error)
New creates and initialises a new OggVorbis decoder for the provided bytestream.
func (*Decoder) Close ¶
func (d *Decoder) Close()
Close stops and finalizes the decoding process, releases the allocated resources. Puts the decoder into an unrecoverable state.
func (*Decoder) PositionMs ¶
func (*Decoder) SetPositionMs ¶
Click to show internal directories.
Click to hide internal directories.