mirror of https://bitbucket.org/ausocean/av.git
alsa: log number of bytes read
This commit is contained in:
parent
be35600571
commit
a0867331cb
|
@ -431,7 +431,7 @@ func (d *ALSA) Read(p []byte) (int, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read from pool buffer.
|
// Read from pool buffer.
|
||||||
d.l.Log(logger.Debug, pkg+"getting next chunk ready")
|
d.l.Log(logger.Debug, pkg+"reading from buffer")
|
||||||
n, err := d.buf.Read(p)
|
n, err := d.buf.Read(p)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
switch err {
|
switch err {
|
||||||
|
@ -445,6 +445,7 @@ func (d *ALSA) Read(p []byte) (int, error) {
|
||||||
return 0, nil
|
return 0, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
d.l.Log(logger.Debug, fmt.Sprintf("%v read %v bytes", pkg, n))
|
||||||
chunk.Close()
|
chunk.Close()
|
||||||
return n, nil
|
return n, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue