Fix off-by-one error in SamplerPrivate::render_note_resample().
authorGabriel M. Beddingfield <gabriel@teuton.org>
Sat, 6 Mar 2010 23:09:37 +0000 (17:09 -0600)
committerGabriel M. Beddingfield <gabriel@teuton.org>
Sat, 6 Mar 2010 23:09:37 +0000 (17:09 -0600)
commite84a6db1bdbc5f081b15fbbb9139994d95e27534
treed630446b0c9bd1dd5e8f60644521ca9617fbda70
parentcb84504c9389c393cc17f815133bac6f2822e619
Fix off-by-one error in SamplerPrivate::render_note_resample().

Some Hydrogen users were reporting[1] semi-random noise at the end of
their samples, and it was found to happen when the sample is resampled
(e.g. random pitch value is set high).

This change is the same as for Hydrogen branches/0.9.4 SVN Rev 1616.

[1] http://www.hydrogen-music.org/forum/?action=show_thread&thread=1142&fid=4&page=1
src/Tritium/src/Sampler.cpp