Better logging for packet stability and hopefully latency control.
This commit is contained in:
+3
-3
@@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user