corrected resample buffer size calc

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@112 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Danny McRae
2006-03-28 11:24:47 +00:00
parent 462c48d012
commit 387cee03d4
2 changed files with 5 additions and 1 deletions

View File

@@ -1207,7 +1207,7 @@ sampleBuffer * sampleBuffer::resample( sampleFrame * _data,
static_cast<f_cnt_t>( src_frame_float );
const f_cnt_t src_frame = tLimit<f_cnt_t>(
static_cast<f_cnt_t>( src_frame_float ),
1, _frames - 2 );
1, _frames - 3 );
for( ch_cnt_t ch = 0; ch < DEFAULT_CHANNELS; ++ch )
{
dst_buf[frame][ch] = cubicInterpolate(