From 4b4041319d6e3b32529b901641166052e37d56d4 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 21 Feb 2019 02:57:39 -0800 Subject: Pass the number of input channels to EffectState::process --- Alc/effects/null.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/effects/null.cpp') diff --git a/Alc/effects/null.cpp b/Alc/effects/null.cpp index 96cb3114..6c9e3008 100644 --- a/Alc/effects/null.cpp +++ b/Alc/effects/null.cpp @@ -17,7 +17,7 @@ struct ALnullState final : public EffectState { ALboolean deviceUpdate(const ALCdevice *device) override; void update(const ALCcontext *context, const ALeffectslot *slot, const ALeffectProps *props, const EffectTarget target) override; - void process(ALsizei samplesToDo, const ALfloat (*RESTRICT samplesIn)[BUFFERSIZE], ALfloat (*RESTRICT samplesOut)[BUFFERSIZE], ALsizei numChannels) override; + void process(ALsizei samplesToDo, const ALfloat (*RESTRICT samplesIn)[BUFFERSIZE], const ALsizei numInput, ALfloat (*RESTRICT samplesOut)[BUFFERSIZE], const ALsizei numOutput) override; DEF_NEWDEL(ALnullState) }; @@ -52,7 +52,7 @@ void ALnullState::update(const ALCcontext* UNUSED(context), const ALeffectslot* * input to the output buffer. The result should be added to the output buffer, * not replace it. */ -void ALnullState::process(ALsizei UNUSED(samplesToDo), const ALfloat (*RESTRICT UNUSED(samplesIn))[BUFFERSIZE], ALfloat (*RESTRICT UNUSED(samplesOut))[BUFFERSIZE], ALsizei UNUSED(numChannels)) +void ALnullState::process(ALsizei /*samplesToDo*/, const ALfloat (*RESTRICT /*samplesIn*/)[BUFFERSIZE], const ALsizei /*numInput*/, ALfloat (*RESTRICT /*samplesOut*/)[BUFFERSIZE], const ALsizei /*numOutput*/) { } -- cgit v1.2.3