Serialize OpenAL playback on a dedicated thread

This commit is contained in:
Brandon McGinty (chatgpt)
2026-08-09 12:55:55 -04:00
committed by Brandon McGinty
parent 0f2eb4408f
commit 8c0887d562
4 changed files with 105 additions and 62 deletions
+2 -2
View File
@@ -243,8 +243,8 @@ func (b *Barnard) OnUserChange(e *gumble.UserChangeEvent) {
if !e.User.LocallyMuted() {
b.UserConfig.ToggleMute(e.User)
}
if au := e.User.AudioSource(); au != nil {
au.SetGain(0)
if b.Stream != nil {
b.Stream.UpdateUserGain(e.User)
}
}
}