mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-05 13:15:44 +01:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue