aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-10-14 11:21:52 -0700
committerChris Robinson <[email protected]>2012-10-14 11:21:52 -0700
commita852669dcebf7ff80a0698ca8afe6c8400480202 (patch)
treea190d8cb692f7e21e29b30283b7709b0cd957cbe /Alc/ALu.c
parent3240894cd5ee4d3bae6798b6d480ef2dfacc403a (diff)
Store the output buffers in the DirectParams struct
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 821160a8..d0c17c0a 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -403,6 +403,10 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
SrcMatrix[c]);
}
}
+
+ ALSource->Params.Direct.OutBuffer = Device->DryBuffer;
+ ALSource->Params.Direct.ClickRemoval = Device->ClickRemoval;
+ ALSource->Params.Direct.PendingClicks = Device->PendingClicks;
for(i = 0;i < NumSends;i++)
{
ALeffectslot *Slot = ALSource->Send[i].Slot;
@@ -432,7 +436,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
{
- const ALCdevice *Device = ALContext->Device;
+ ALCdevice *Device = ALContext->Device;
ALfloat Velocity[3],Direction[3],Position[3],SourceToListener[3];
ALfloat InnerAngle,OuterAngle,Angle,Distance,ClampedDist;
ALfloat MinVolume,MaxVolume,MinDist,MaxDist,Rolloff;
@@ -500,6 +504,10 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
WetGainAuto = ALSource->WetGainAuto;
WetGainHFAuto = ALSource->WetGainHFAuto;
RoomRolloffBase = ALSource->RoomRolloffFactor;
+
+ ALSource->Params.Direct.OutBuffer = Device->DryBuffer;
+ ALSource->Params.Direct.ClickRemoval = Device->ClickRemoval;
+ ALSource->Params.Direct.PendingClicks = Device->PendingClicks;
for(i = 0;i < NumSends;i++)
{
ALeffectslot *Slot = ALSource->Send[i].Slot;