execbc: Removed Buffered IO since it caused delay in the audio output

This commit is contained in:
Michael Reif
2024-01-07 10:14:23 +01:00
parent 33eafd5691
commit 249ae49b43
+1 -3
View File
@@ -1,7 +1,6 @@
package execbc
import (
"bufio"
"io"
"os/exec"
@@ -20,8 +19,7 @@ func PipeCloser(cmd *exec.Cmd) (io.WriteCloser, error) {
if err != nil {
return nil, err
}
return pipeCloser{bufio.NewWriterSize(stdin, core.BufferSize), stdin, cmd}, nil
return pipeCloser{stdin, stdin, cmd}, nil
}
func (p pipeCloser) Close() (err error) {