aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <chris.kcat@gmail.com>2019-05-29 09:37:25 -0700
committerChris Robinson <chris.kcat@gmail.com>2019-05-29 09:37:25 -0700
commitec3a6f8cded70aeb54e9c658fa68a680c017e1ef (patch)
treeba1d289c58645040cf0aaccaf6405dae8a87c414 /Alc/alu.cpp
parentb923eb187991a8db56fd23cffa70f946ce24c1ff (diff)
Use FloatBufferLine for the effect process method
Diffstat (limited to 'Alc/alu.cpp')
-rw-r--r--Alc/alu.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/Alc/alu.cpp b/Alc/alu.cpp
index 2a43cd88..9f61be10 100644
--- a/Alc/alu.cpp
+++ b/Alc/alu.cpp
@@ -1465,11 +1465,8 @@ void ProcessContext(ALCcontext *ctx, const ALsizei SamplesToDo)
[SamplesToDo](const ALeffectslot *slot) -> void
{
EffectState *state{slot->Params.mEffectState};
- state->process(SamplesToDo,
- &reinterpret_cast<float(&)[BUFFERSIZE]>(slot->Wet.Buffer[0]),
- slot->Wet.NumChannels,
- &reinterpret_cast<float(&)[BUFFERSIZE]>(state->mOutBuffer[0]),
- state->mOutChannels);
+ state->process(SamplesToDo, slot->Wet.Buffer, slot->Wet.NumChannels,
+ state->mOutBuffer, state->mOutChannels);
}
);
}