missed SSE patch from mike
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 26 Apr 2007 23:58:31 +0000 (23:58 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 26 Apr 2007 23:58:31 +0000 (23:58 +0000)
git-svn-id: svn://localhost/ardour2/trunk@1755 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/io.cc

index f899b71d1ea2c15e01d1eed4ebc34933d0c2ab5a..0bda946d116769b671bb1b3cbc41692a859453a8 100644 (file)
@@ -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);