audio: removed names from returns

This commit is contained in:
Trek H 2019-06-13 23:42:26 +09:30
parent 9fe09255be
commit 2b4593fcc0
1 changed files with 3 additions and 3 deletions

View File

@ -361,15 +361,15 @@ func (d *Device) input() {
} }
// Read reads from the ringbuffer, returning the number of bytes read upon success. // Read reads from the ringbuffer, returning the number of bytes read upon success.
func (d *Device) Read(p []byte) (n int, err error) { func (d *Device) Read(p []byte) (int, error) {
// Ready ringbuffer for read. // Ready ringbuffer for read.
_, err = d.rb.Next(rbNextTimeout) _, err := d.rb.Next(rbNextTimeout)
if err != nil { if err != nil {
return 0, err return 0, err
} }
// Read from ring buffer. // Read from ring buffer.
n, err = d.rb.Read(p) n, err := d.rb.Read(p)
if err != nil { if err != nil {
return 0, err return 0, err
} }