Better logging for packet stability and hopefully latency control.

This commit is contained in:
Storm Dragon
2026-09-09 14:19:47 -04:00
parent c1722c2491
commit 35de0866dc
8 changed files with 244 additions and 11 deletions
+3 -3
View File
@@ -32,8 +32,8 @@ func StartToneGenerator(client *gumble.Client, stop <-chan struct{}) {
ticker := time.NewTicker(interval)
defer ticker.Stop()
outgoing := client.AudioOutgoing()
defer close(outgoing)
outgoing := client.NewAudioSender()
defer outgoing.Close()
fmt.Fprintf(os.Stderr, "tonetest: starting 440 Hz tone generator (frameSize=%d, interval=%v)\n",
frameSize, interval)
@@ -53,7 +53,7 @@ func StartToneGenerator(client *gumble.Client, stop <-chan struct{}) {
phase -= 2.0 * math.Pi
}
}
outgoing <- gumble.AudioBuffer(buf)
outgoing.Send(gumble.AudioBuffer(buf))
}
}
}