aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-11-26 18:01:29 -0800
committerChris Robinson <[email protected]>2010-11-26 18:01:29 -0800
commitca1ec4b221b95b94ef32aed3f8c648c999a5552c (patch)
tree4d4c4ae395e25201a880dda27d7ec379fad4f125
parentfacb922f3e1d39af8514916c990acd9ff9d8baae (diff)
Fix some comments
-rw-r--r--Alc/ALu.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index a6151a10..f22b2a22 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -91,22 +91,22 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
ALfloat cw;
ALint i;
- //Get context properties
+ /* Get device properties */
Format = ALContext->Device->Format;
DupStereo = ALContext->Device->DuplicateStereo;
NumSends = ALContext->Device->NumAuxSends;
Frequency = ALContext->Device->Frequency;
- //Get listener properties
+ /* Get listener properties */
ListenerGain = ALContext->Listener.Gain;
- //Get source properties
+ /* Get source properties */
SourceVolume = ALSource->flGain;
MinVolume = ALSource->flMinGain;
MaxVolume = ALSource->flMaxGain;
Pitch = ALSource->flPitch;
- //1. Multi-channel buffers always play "normal"
+ /* Calculate the stepping value */
Channels = 0;
BufferListItem = ALSource->queue;
while(BufferListItem != NULL)
@@ -138,6 +138,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
BufferListItem = BufferListItem->next;
}
+ /* Calculate gains */
DryGain = SourceVolume;
DryGain = __min(DryGain,MaxVolume);
DryGain = __max(DryGain,MinVolume);