diff options
author | David Robillard <d@drobilla.net> | 2022-05-27 09:52:19 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-05-27 09:52:19 -0400 |
commit | 41dcb999034254a6aa1161610c38978b0b819b15 (patch) | |
tree | 9986a383bd506af06ed7db8f58b7ab84efa6e93e | |
parent | b760e11d5f9f4d25919a566ef727164da4376062 (diff) | |
download | ingen-41dcb999034254a6aa1161610c38978b0b819b15.tar.gz ingen-41dcb999034254a6aa1161610c38978b0b819b15.tar.bz2 ingen-41dcb999034254a6aa1161610c38978b0b819b15.zip |
Fix build on systems without SSE
-rw-r--r-- | src/server/Buffer.cpp | 2 |
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; |