If you are using pipewire add -sdlaudiodriver pipewire to your CS 2 launch options.

For those using gamemoderun it would look like this: gamemoderun %command% -sdlaudiodriver pipewire