In games like Tremulous the main menu has a music in the background. Hearing it every time gets annoying, so people shut it up by setting s_musicvolume to 0. Yet when launching the game, a bit of music can still be heard. This happens with the base sound system only.
Created attachment 1835[details]
strictly use s_musicVolume
I gather the music is pre-amplified by the volume for a short time (to fill a large buffer), which makes the volume transitioning with the use of static variables ineffective.
Created attachment 1835 [details] strictly use s_musicVolume I gather the music is pre-amplified by the volume for a short time (to fill a large buffer), which makes the volume transitioning with the use of static variables ineffective.