This commit is contained in:
Sense T 2022-10-03 00:15:43 +00:00
parent 708732a37b
commit 1be49c0dd2

View File

@ -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)
}