feat: Add client-side voice processing and comprehensive packet handling, leveraging a Go-native Opus library.
This commit is contained in:
@@ -103,7 +103,7 @@ func (c *Client) handleVoice(pkt *protocol.Packet) {
|
||||
|
||||
// 3. Process PCM: Reduce Volume (divide by 4)
|
||||
for i := range pcm {
|
||||
pcm[i] = pcm[i] / 4
|
||||
pcm[i] = pcm[i] / 10
|
||||
}
|
||||
|
||||
// 4. Get or Create Encoder
|
||||
|
||||
Reference in New Issue
Block a user