mirror of https://bitbucket.org/ausocean/av.git
audio: removed names from returns
This commit is contained in:
parent
9fe09255be
commit
2b4593fcc0
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue