execbc: Removed Buffered IO since it caused delay in the audio output
This commit is contained in:
+1
-3
@@ -1,7 +1,6 @@
|
|||||||
package execbc
|
package execbc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
|
||||||
"io"
|
"io"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
|
||||||
@@ -20,8 +19,7 @@ func PipeCloser(cmd *exec.Cmd) (io.WriteCloser, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
return pipeCloser{stdin, stdin, cmd}, nil
|
||||||
return pipeCloser{bufio.NewWriterSize(stdin, core.BufferSize), stdin, cmd}, nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p pipeCloser) Close() (err error) {
|
func (p pipeCloser) Close() (err error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user