From 07d94b9b4868fad26c9e8ac2ae4901849a09b8ac Mon Sep 17 00:00:00 2001 From: John Emmas Date: Sun, 4 Aug 2013 15:17:19 +0100 Subject: 'libs/ardour' - Use 'std::vector' instead of dynamically sized arrays (required to be buildable with MSVC) --- libs/ardour/sndfilesource.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/ardour/sndfilesource.cc') diff --git a/libs/ardour/sndfilesource.cc b/libs/ardour/sndfilesource.cc index f29682aeaa..2aae84085a 100644 --- a/libs/ardour/sndfilesource.cc +++ b/libs/ardour/sndfilesource.cc @@ -766,12 +766,12 @@ SndFileSource::crossfade (Sample* data, framecnt_t cnt, int fade_in) } else if (xfade < xfade_frames) { - gain_t in[xfade]; - gain_t out[xfade]; + std::vector in(xfade); + std::vector out(xfade); /* short xfade, compute custom curve */ - compute_equal_power_fades (xfade, in, out); + compute_equal_power_fades (xfade, &in[0], &out[0]); for (framecnt_t n = 0; n < xfade; ++n) { xfade_buf[n] = (xfade_buf[n] * out[n]) + (fade_data[n] * in[n]); -- cgit v1.2.3