diff options
Diffstat (limited to 'libs/ardour/utils.cc')
-rw-r--r-- | libs/ardour/utils.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc index 9698486e90..64e06b6f12 100644 --- a/libs/ardour/utils.cc +++ b/libs/ardour/utils.cc @@ -341,7 +341,7 @@ CFStringRefToStdString(CFStringRef stringRef) #endif // __APPLE__ void -compute_equal_power_fades (nframes_t nframes, float* in, float* out) +compute_equal_power_fades (framecnt_t nframes, float* in, float* out) { double step; @@ -349,7 +349,7 @@ compute_equal_power_fades (nframes_t nframes, float* in, float* out) in[0] = 0.0f; - for (nframes_t i = 1; i < nframes - 1; ++i) { + for (framecnt_t i = 1; i < nframes - 1; ++i) { in[i] = in[i-1] + step; } @@ -358,7 +358,7 @@ compute_equal_power_fades (nframes_t nframes, float* in, float* out) const float pan_law_attenuation = -3.0f; const float scale = 2.0f - 4.0f * powf (10.0f,pan_law_attenuation/20.0f); - for (nframes_t n = 0; n < nframes; ++n) { + for (framecnt_t n = 0; n < nframes; ++n) { float inVal = in[n]; float outVal = 1 - inVal; out[n] = outVal * (scale * outVal + 1.0f - scale); |