fix required-sample count for cubic interpolation.
authorRobin Gareus <robin@gareus.org>
Wed, 7 Nov 2012 03:17:55 +0000 (03:17 +0000)
committerRobin Gareus <robin@gareus.org>
Wed, 7 Nov 2012 03:17:55 +0000 (03:17 +0000)
commita8cf2aa4f95f1b6c81b5d1e970623c8cfcf0c584
tree9664b92b3f0f7d1c6cc2fe770ecace136c683761
parentcb57b954809c5fd7db06f0bdf10e219355b05248
fix required-sample count for cubic interpolation.

I have not proved if the iterative process in
CubicInterpolation::interpolate() is identical to
(nframes * fabs(_actual_speed)), however ceil()
of it is empirically always larger.
Also, the cubic interpolation needs +2 samples.

Ardour3: Too close to call :)

git-svn-id: svn://localhost/ardour2/branches/3.0@13392 d708f5d6-7413-0410-9779-e7cbd77b26cf
libs/ardour/audio_diskstream.cc