Fix error in samplerate converter

git-svn-id: svn://localhost/ardour2/branches/3.0@7951 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Sakari Bergen 2010-11-02 18:07:29 +00:00
parent a41525c3f7
commit fb048ebc30

View File

@ -113,8 +113,8 @@ SampleRateConverter::process (ProcessContext<float> const & c)
/* first time, append new data from data_in into the leftover_data buffer */
TypeUtils<float>::copy (&leftover_data [leftover_frames * channels], in, frames);
src_data.input_frames = frames + leftover_frames;
TypeUtils<float>::copy (in, &leftover_data [leftover_frames * channels], frames);
src_data.input_frames = frames / channels + leftover_frames;
} else {
/* otherwise, just use whatever is still left in leftover_data; the contents