Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BufferSize = 1024 * 10
BufferSize Decoded data buffer size.
View Source
var WaitForDataDuration = time.Millisecond * 10
WaitForDataDuration wait for the data time duration.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct { SampleRate int Channels int Kbps int Layer int // contains filtered or unexported fields }
Decoder decode the mp3 stream by minimp3
func DecodeFull ¶
DecodeFull put all of the mp3 data to decode.
func NewDecoder ¶
NewDecoder decode mp3 stream and get a Decoder for read the raw data to play.
func (*Decoder) Read ¶
Read read the raw stream
Click to show internal directories.
Click to hide internal directories.