diff --git a/input/audio/audio.go b/input/audio/audio.go index 25fad00b..702ab35b 100644 --- a/input/audio/audio.go +++ b/input/audio/audio.go @@ -361,15 +361,15 @@ func (d *Device) input() { } // 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. - _, err = d.rb.Next(rbNextTimeout) + _, err := d.rb.Next(rbNextTimeout) if err != nil { return 0, err } // Read from ring buffer. - n, err = d.rb.Read(p) + n, err := d.rb.Read(p) if err != nil { return 0, err }