Better logging for packet stability and hopefully latency control.
This commit is contained in:
1 parent
c1722c2491
commit
35de0866dc
8 files changed
+244
-11
No files matched your search
@@ -164,8 +164,8 @@ func (s *Stream) process() {
|
||||
|
||||
byteBuffer := make([]byte, frameSize*2)
|
||||
|
||||
outgoing := s.client.AudioOutgoing()
|
||||
defer close(outgoing)
|
||||
outgoing := s.client.NewAudioSender()
|
||||
defer outgoing.Close()
|
||||
|
||||
ticker := time.NewTicker(interval)
|
||||
defer ticker.Stop()
|
||||
@@ -189,7 +189,7 @@ func (s *Stream) process() {
|
||||
int16Buffer[i] = int16(volume * float)
|
||||
}
|
||||
atomic.AddInt64(&s.elapsed, int64(interval))
|
||||
outgoing <- gumble.AudioBuffer(int16Buffer)
|
||||
outgoing.Send(gumble.AudioBuffer(int16Buffer))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user