projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modified fix from carl for region copy-moves-original-to-start bug; change verbose...
[ardour.git]
/
libs
/
ardour
/
panner.cc
diff --git
a/libs/ardour/panner.cc
b/libs/ardour/panner.cc
index deb131e6fcd005c2c8a8252e3b81fbbc45b81831..563d4e90d41da2ebca6584bfde602a4f85e4252f 100644
(file)
--- a/
libs/ardour/panner.cc
+++ b/
libs/ardour/panner.cc
@@
-653,10
+653,7
@@
Multi2dPanner::distribute (Sample* src, Sample** obufs, gain_t gain_coeff, nfram
}
pan = left * gain_coeff;
}
pan = left * gain_coeff;
-
- for (; n < nframes; ++n) {
- dst[n] += src[n] * pan;
- }
+ Session::mix_buffers_with_gain(dst+n,src+n,nframes-n,pan);
} else {
} else {
@@
-666,20
+663,10
@@
Multi2dPanner::distribute (Sample* src, Sample** obufs, gain_t gain_coeff, nfram
if ((pan *= gain_coeff) != 1.0f) {
if (pan != 0.0f) {
if ((pan *= gain_coeff) != 1.0f) {
if (pan != 0.0f) {
-
- for (nframes_t n = 0; n < nframes; ++n) {
- dst[n] += src[n] * pan;
- }
-
+ Session::mix_buffers_with_gain(dst,src,nframes,pan);
}
}
-
-
} else {
} else {
-
- for (nframes_t n = 0; n < nframes; ++n) {
- dst[n] += src[n];
- }
-
+ Session::mix_buffers_no_gain(dst,src,nframes);
}
#endif
#ifdef CAN_INTERP
}
#endif
#ifdef CAN_INTERP