From 249ae49b434ccff6f4eb135cf18247e192962a2b Mon Sep 17 00:00:00 2001 From: Michael Reif <19reifl93@gmail.com> Date: Sun, 7 Jan 2024 10:14:23 +0100 Subject: [PATCH] execbc: Removed Buffered IO since it caused delay in the audio output --- pkg/execbc/pipe.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/execbc/pipe.go b/pkg/execbc/pipe.go index 66a5920d..5ad73398 100644 --- a/pkg/execbc/pipe.go +++ b/pkg/execbc/pipe.go @@ -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) {