From 387cee03d4c95c8c28825c7517638f7aa19992d8 Mon Sep 17 00:00:00 2001 From: Danny McRae Date: Tue, 28 Mar 2006 11:24:47 +0000 Subject: [PATCH] corrected resample buffer size calc git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@112 0778d3d1-df1d-0410-868b-ea421aaaa00d --- ChangeLog | 4 ++++ src/lib/sample_buffer.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ea6a3d1c1..65fecd504 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-03-28 Danny McRae + * lib/sample_buffer.cpp: + corrected miscalculation of buffer size in resample + 2005-03-26 Danny McRae * plugins/vibed/: diff --git a/src/lib/sample_buffer.cpp b/src/lib/sample_buffer.cpp index a9539bc80..61b546f90 100644 --- a/src/lib/sample_buffer.cpp +++ b/src/lib/sample_buffer.cpp @@ -1207,7 +1207,7 @@ sampleBuffer * sampleBuffer::resample( sampleFrame * _data, static_cast( src_frame_float ); const f_cnt_t src_frame = tLimit( static_cast( src_frame_float ), - 1, _frames - 2 ); + 1, _frames - 3 ); for( ch_cnt_t ch = 0; ch < DEFAULT_CHANNELS; ++ch ) { dst_buf[frame][ch] = cubicInterpolate(