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.
|
||||
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)
|
||||
if err != nil {
|
||||
switch err {
|
||||
|
@ -445,6 +445,7 @@ func (d *ALSA) Read(p []byte) (int, error) {
|
|||
return 0, nil
|
||||
}
|
||||
}
|
||||
d.l.Log(logger.Debug, fmt.Sprintf("%v read %v bytes", pkg, n))
|
||||
chunk.Close()
|
||||
return n, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue