ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
641 stars 74 forks source link

[TF2] Sometimes after death the sound is left in post-death state #3580

Open Invertisment opened 3 years ago

Invertisment commented 3 years ago

I can't reproduce this one. It happens in rare occasions and persists for several rounds.

When playing on a server and death happens sometimes for multiple next rounds the sound remains in a post-death sound state. The sounds are there but their volumes are changed in such a way that player emitted sounds are very suppressed. But voice sounds (a.k.a. "Spy!") are loud as before.

From my understanding this is very similar to some kind of race condition in the sound re-enabling procedure. What I imagine is that sound-enabling code doesn't happen or happens before they get disabled.

This is not a system sound error as the game sounds are there. It's only that most of the sounds are suppressed. I don't have a memory dump or any technical information. It's only that from time to time sounds remain in this state.

I tried to use snd_restart while having the issue. It doesn't do anything at the exact moment but I think it helps to get rid of the sound issue faster but I can't verify it.

AzureWoof commented 3 years ago

This also sometimes occurs when playing back demo files by jumping to a tick where you're alive after respawning from a death.