summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-05-27 09:52:19 -0400
committerDavid Robillard <d@drobilla.net>2022-05-27 09:52:19 -0400
commit41dcb999034254a6aa1161610c38978b0b819b15 (patch)
tree9986a383bd506af06ed7db8f58b7ab84efa6e93e
parentb760e11d5f9f4d25919a566ef727164da4376062 (diff)
downloadingen-41dcb999034254a6aa1161610c38978b0b819b15.tar.gz
ingen-41dcb999034254a6aa1161610c38978b0b819b15.tar.bz2
ingen-41dcb999034254a6aa1161610c38978b0b819b15.zip
Fix build on systems without SSE
-rw-r--r--src/server/Buffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/Buffer.cpp b/src/server/Buffer.cpp
index 36dfaf19..69db7b5e 100644
--- a/src/server/Buffer.cpp
+++ b/src/server/Buffer.cpp
@@ -259,7 +259,7 @@ Buffer::peak(const RunContext& ctx) const
#else
const Sample* const buf = samples();
float peak = 0.0f;
- for (SampleCount i = 0; i < context.nframes(); ++i) {
+ for (SampleCount i = 0; i < ctx.nframes(); ++i) {
peak = fmaxf(peak, fabsf(buf[i]));
}
return peak;