Fix wording on documentation on float32 Read

This commit is contained in:
DataHoarder 2022-12-01 09:49:03 +01:00
parent aeeb264e36
commit 635616c531
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk

View file

@ -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) {