aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/compressor.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-05-13 18:28:01 -0700
committerChris Robinson <[email protected]>2016-05-13 18:28:01 -0700
commit93a94d177c4bb0b9c8feb85420a388d32df4cc8f (patch)
tree9a395a1ce06ed8e6057c6b74ae520f8140fa977e /Alc/effects/compressor.c
parent59cd6230a661d5cee69c0a44c4dde152eed9f865 (diff)
Get rid of an unnecessary copy of ALeffectProps
Diffstat (limited to 'Alc/effects/compressor.c')
-rw-r--r--Alc/effects/compressor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/effects/compressor.c b/Alc/effects/compressor.c
index c501b3ba..6329d3f1 100644
--- a/Alc/effects/compressor.c
+++ b/Alc/effects/compressor.c
@@ -56,12 +56,12 @@ static ALboolean ALcompressorState_deviceUpdate(ALcompressorState *state, ALCdev
return AL_TRUE;
}
-static ALvoid ALcompressorState_update(ALcompressorState *state, const ALCdevice *device, const ALeffectslot *slot)
+static ALvoid ALcompressorState_update(ALcompressorState *state, const ALCdevice *device, const ALeffectslot *slot, const ALeffectProps *props)
{
aluMatrixf matrix;
ALuint i;
- state->Enabled = slot->Params.EffectProps.Compressor.OnOff;
+ state->Enabled = props->Compressor.OnOff;
aluMatrixfSet(&matrix,
1.0f, 0.0f, 0.0f, 0.0f,