ValveSoftware / Source-1-Games

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

[TF2] Non-loop taunt sound is muted after coming back from ALT+TAB #6033

Open Tiagoquix opened 4 months ago

Tiagoquix commented 4 months ago

When taunting with a taunt that does not have a loop (for example, the Schadenfreude), the taunt sound is muted for the duration of the taunt if I minimize and come back to the game.

This does not happen with looping taunts (for example, the Kazotsky Kick).

I'm on Fedora Linux 40 KDE using X11 and PipeWire, plus SELinux enabled. Latest system updates applied. I also have snd_surround_speakers -1 set (the default value).

I already have this fix applied (even before the 64-bit update), and I still have it now, so I don't think SELinux is the problem here, but I'm just mentioning it in case it's related somehow.

Thank you for your attention.

StufkaTeam commented 4 months ago

Can confirm. OS: Mint 21.3 CPU: Ryzen 5 5600x GPU: RTX 3070 Motherboard: Aorus B450 Elite Mostly happens on 7.1 audio setting

Tiagoquix commented 4 months ago

@StufkaTeam Could you test if the problem persists with snd_surround_speakers -1 (the default value)?

Tiagoquix commented 4 months ago

Addendum:

The same problem seems to be related to cases where a sound wouldn't play until the game is in focus.

For example: starting the game, but pressing ALT+TAB, will only make the game play the main menu music when it gets focus. On Windows, IIRC, the music starts even if the game is minimized; it doesn't wait for the user to have focus in the main menu.

Another example: winning or losing a match, but pressing ALT+TAB before the Administrador says "Victory!" or "You failed!" will have the same behavior as the menu music, which requires the game to be focused for the audio to be played.

It's like the game stops/pauses (insteading of only muting) every instance of audio when it's minimized.

StufkaTeam commented 4 months ago

@Tiagoquix it seems that it occurs randomy. I tested this 5 times, and only 1 time it actually resumed playing taunt sound. Not really sure how to replicate or avoid it constantly.