summaryrefslogtreecommitdiffstats
path: root/src
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 /src
parentb760e11d5f9f4d25919a566ef727164da4376062 (diff)
downloadingen-master.tar.gz
ingen-master.tar.bz2
ingen-master.zip
Fix build on systems without SSEHEADmaster
Diffstat (limited to 'src')
-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;