diff --git a/servers/qemuserver/server.go b/servers/qemuserver/server.go index d7608d2..d977179 100644 --- a/servers/qemuserver/server.go +++ b/servers/qemuserver/server.go @@ -145,7 +145,7 @@ func (s *Server) Run() error { logrus.Debug("start reading PCM") defer close(s.pcm) for { - b := make([]byte, 2048) // to be configured + b := make([]byte, s.options.Audio.BufferSize) // to be configured if _, err := f.Read(b[:]); err != nil { logrus.Error(err) }