Preserve full stereo playback frames

This commit is contained in:
Brandon McGinty (chatgpt)
2026-08-09 13:16:52 -04:00
committed by Brandon McGinty
parent 7d7d59649b
commit f09c234ead
+1 -1
View File
@@ -536,7 +536,7 @@ func (s *Stream) processAudioPacket(packet *gumble.AudioPacket, user *gumble.Use
rawPtr := 0 rawPtr := 0
if isStereo { if isStereo {
// Process stereo samples as pairs // Process stereo samples as pairs
for i := 0; i < samples; i += 2 { for i := 0; i < samples*2; i += 2 {
// Process left channel with saturation protection // Process left channel with saturation protection
sample := packet.AudioBuffer[i] sample := packet.AudioBuffer[i]
if boost > 1 { if boost > 1 {