Bug 3674 - s_alGain is probably way too low.
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Sound
Version: 1.35
Hardware: All All
: P3 normal
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2008-06-07 20:04 EDT by Ryan C. Gordon
Modified: 2008-08-08 14:27:30 EDT
0 users

See Also:



Description Ryan C. Gordon 2008-06-07 20:04:09 EDT
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 1 Zachary J. Slater 2008-07-05 01:15:32 EDT
I'd like to see this resolved before 1.35 goes out the door.
Comment 2 Tim Angus 2008-07-05 19:09:41 EDT
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.
Comment 3 Tim Angus 2008-08-08 14:27:30 EDT
Fixed in r1439.