diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-04-26 23:58:31 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-04-26 23:58:31 +0000 |
commit | a841933ac7b00716fecb87ccc9fe9148b987f2d1 (patch) | |
tree | 2af2e42dfc18c12eb2dbed800098b336ee06efb0 /libs | |
parent | 596daa2b8baf420a82254e2dce14a47ecf916fc0 (diff) |
missed SSE patch from mike
git-svn-id: svn://localhost/ardour2/trunk@1755 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/io.cc | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc index f899b71d1e..0bda946d11 100644 --- a/libs/ardour/io.cc +++ b/libs/ardour/io.cc @@ -343,11 +343,7 @@ IO::pan (vector<Sample*>& bufs, uint32_t nbufs, nframes_t nframes, nframes_t off memcpy (dst, bufs[0], sizeof (Sample) * nframes); for (n = 1; n < nbufs; ++n) { - src = bufs[n]; - - for (nframes_t n = 0; n < nframes; ++n) { - dst[n] += src[n]; - } + Session::mix_buffers_no_gain(dst,bufs[n],nframes); } output(0)->mark_silence (false); @@ -365,11 +361,7 @@ IO::pan (vector<Sample*>& bufs, uint32_t nbufs, nframes_t nframes, nframes_t off } for (n = 1; n < nbufs; ++n) { - src = bufs[n]; - - for (nframes_t n = 0; n < nframes; ++n) { - dst[n] += src[n] * gain_coeff; - } + Session::mix_buffers_with_gain(dst,bufs[n],nframes,gain_coeff); } output(0)->mark_silence (false); |