audio: Fix usage of 'oto'

This commit is contained in:
Hajime Hoshi 2017-05-05 15:13:46 +09:00
parent 766072cdbb
commit 64862929a9

View File

@ -258,8 +258,7 @@ func (c *Context) Update() error {
if n != len(buf) {
return c.driver.Close()
}
// TODO: Rename this to Enqueue
err = c.driver.Proceed(buf)
_, err = c.driver.Write(buf)
if err == io.EOF {
return c.driver.Close()
}