summaryrefslogtreecommitdiff
path: root/libs/audiographer/src
diff options
context:
space:
mode:
authorSakari Bergen <sakari.bergen@beatwaves.net>2010-11-02 18:07:29 +0000
committerSakari Bergen <sakari.bergen@beatwaves.net>2010-11-02 18:07:29 +0000
commitfb048ebc30760fe11caef050dfb3da1817e57509 (patch)
treef341d12f355329dfb1cbd65ca26d8a61edb977ae /libs/audiographer/src
parenta41525c3f778f89d4563bbd50b8e7dbc1b10558b (diff)
Fix error in samplerate converter
git-svn-id: svn://localhost/ardour2/branches/3.0@7951 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/audiographer/src')
-rw-r--r--libs/audiographer/src/general/sr_converter.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/audiographer/src/general/sr_converter.cc b/libs/audiographer/src/general/sr_converter.cc
index 1fe51742a0..1fbed12128 100644
--- a/libs/audiographer/src/general/sr_converter.cc
+++ b/libs/audiographer/src/general/sr_converter.cc
@@ -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