Fix wording on documentation on float32 Read
This commit is contained in:
parent
aeeb264e36
commit
635616c531
|
@ -36,7 +36,7 @@ func NewDecoderFloat32(source io.Reader) *DecoderFloat32 {
|
|||
return d
|
||||
}
|
||||
|
||||
// Read copies the decoded audio data from the internal buffer to p and returns the number of bytes copied.
|
||||
// Read copies the decoded audio data from the internal buffer to p and returns the number of items copied.
|
||||
// If the internal buffer is empty, then Read first tries to read mp3 data from the source and decode it.
|
||||
// If len(p) == 0, then Read will return zero bytes, but if the internal buffer is empty, then before that it will still try to decode one frame and fill the internal buffer.
|
||||
func (d *DecoderFloat32) Read(p []float32) (int, error) {
|
||||
|
|
Loading…
Reference in a new issue