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:
parent
a41525c3f7
commit
fb048ebc30
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user