snd_openal.c does this in S_AL_Init() ...
s_alGain = Cvar_Get( "s_alGain", "0.4", CVAR_ARCHIVE );
...and multiplies all sources' gains by this value.
This is at best redundant with s_volume, but that line makes the default to play all sounds at 40% of their normal volume. Is there a good reason for this?
--ryan.
Comment 1Zachary J. Slater
2008-07-05 01:15:32 EDT
I'd like to see this resolved before 1.35 goes out the door.
I imagine the reason would be to normalise the OpenAL wrt to the existing Q3 sound system, so you can switch between them without big jumps in gain. I realise this is highly likely to be platform specific. It was in the original code dump for the OpenAL implementation though, so your guess is as good as mine as to its actual purpose. If it doesn't cause any problems I see no reason to just set it to 1.0.
snd_openal.c does this in S_AL_Init() ... s_alGain = Cvar_Get( "s_alGain", "0.4", CVAR_ARCHIVE ); ...and multiplies all sources' gains by this value. This is at best redundant with s_volume, but that line makes the default to play all sounds at 40% of their normal volume. Is there a good reason for this? --ryan.