From: Paul Davis Date: Thu, 26 Apr 2007 23:58:31 +0000 (+0000) Subject: missed SSE patch from mike X-Git-Tag: 2.8.16~2158 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=a841933ac7b00716fecb87ccc9fe9148b987f2d1;p=ardour.git missed SSE patch from mike git-svn-id: svn://localhost/ardour2/trunk@1755 d708f5d6-7413-0410-9779-e7cbd77b26cf --- 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& 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& 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);