Fix some comments
This commit is contained in:
parent
facb922f3e
commit
ca1ec4b221
@ -91,22 +91,22 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
|
|||||||
ALfloat cw;
|
ALfloat cw;
|
||||||
ALint i;
|
ALint i;
|
||||||
|
|
||||||
//Get context properties
|
/* Get device properties */
|
||||||
Format = ALContext->Device->Format;
|
Format = ALContext->Device->Format;
|
||||||
DupStereo = ALContext->Device->DuplicateStereo;
|
DupStereo = ALContext->Device->DuplicateStereo;
|
||||||
NumSends = ALContext->Device->NumAuxSends;
|
NumSends = ALContext->Device->NumAuxSends;
|
||||||
Frequency = ALContext->Device->Frequency;
|
Frequency = ALContext->Device->Frequency;
|
||||||
|
|
||||||
//Get listener properties
|
/* Get listener properties */
|
||||||
ListenerGain = ALContext->Listener.Gain;
|
ListenerGain = ALContext->Listener.Gain;
|
||||||
|
|
||||||
//Get source properties
|
/* Get source properties */
|
||||||
SourceVolume = ALSource->flGain;
|
SourceVolume = ALSource->flGain;
|
||||||
MinVolume = ALSource->flMinGain;
|
MinVolume = ALSource->flMinGain;
|
||||||
MaxVolume = ALSource->flMaxGain;
|
MaxVolume = ALSource->flMaxGain;
|
||||||
Pitch = ALSource->flPitch;
|
Pitch = ALSource->flPitch;
|
||||||
|
|
||||||
//1. Multi-channel buffers always play "normal"
|
/* Calculate the stepping value */
|
||||||
Channels = 0;
|
Channels = 0;
|
||||||
BufferListItem = ALSource->queue;
|
BufferListItem = ALSource->queue;
|
||||||
while(BufferListItem != NULL)
|
while(BufferListItem != NULL)
|
||||||
@ -138,6 +138,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
|
|||||||
BufferListItem = BufferListItem->next;
|
BufferListItem = BufferListItem->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Calculate gains */
|
||||||
DryGain = SourceVolume;
|
DryGain = SourceVolume;
|
||||||
DryGain = __min(DryGain,MaxVolume);
|
DryGain = __min(DryGain,MaxVolume);
|
||||||
DryGain = __max(DryGain,MinVolume);
|
DryGain = __max(DryGain,MinVolume);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user