diff options
-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; |