summaryrefslogtreecommitdiff
path: root/libs/ardour/route.cc
diff options
context:
space:
mode:
authorSampo Savolainen <v2@iki.fi>2006-09-05 17:53:54 +0000
committerSampo Savolainen <v2@iki.fi>2006-09-05 17:53:54 +0000
commitbabf75d871ee253fbe32c50737aa110a4fffa36f (patch)
tree604d9858a6fec9b039cd46ab39d9862a30db215d /libs/ardour/route.cc
parente513d106d7ecf7e629f55c6eb554a2638f9c6443 (diff)
Fix declicking for phase inverted routes by stopping
process_output_buffers() from inverting the phase of a buffer twice. Also fixed bug in apply_declick() which resulted in incorrect phases for even buffers of p-reversed routes. git-svn-id: svn://localhost/ardour2/trunk@906 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r--libs/ardour/route.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc
index 45040750b4..4f8a6ffd18 100644
--- a/libs/ardour/route.cc
+++ b/libs/ardour/route.cc
@@ -262,17 +262,17 @@ Route::process_output_buffers (vector<Sample*>& bufs, uint32_t nbufs,
-------------------------------------------------------------------------------------------------- */
if (declick > 0) {
- apply_declick (bufs, nbufs, nframes, 0.0, 1.0, _phase_invert);
+ apply_declick (bufs, nbufs, nframes, 0.0, 1.0, false);
_pending_declick = 0;
} else if (declick < 0) {
- apply_declick (bufs, nbufs, nframes, 1.0, 0.0, _phase_invert);
+ apply_declick (bufs, nbufs, nframes, 1.0, 0.0, false);
_pending_declick = 0;
} else {
/* no global declick */
if (solo_gain != dsg) {
- apply_declick (bufs, nbufs, nframes, solo_gain, dsg, _phase_invert);
+ apply_declick (bufs, nbufs, nframes, solo_gain, dsg, false);
solo_gain = dsg;
}
}
@@ -289,7 +289,7 @@ Route::process_output_buffers (vector<Sample*>& bufs, uint32_t nbufs,
}
if (!_soloed && _mute_affects_pre_fader && (mute_gain != dmg)) {
- apply_declick (bufs, nbufs, nframes, mute_gain, dmg, _phase_invert);
+ apply_declick (bufs, nbufs, nframes, mute_gain, dmg, false);
mute_gain = dmg;
mute_declick_applied = true;
}
@@ -359,7 +359,7 @@ Route::process_output_buffers (vector<Sample*>& bufs, uint32_t nbufs,
if (!_soloed && (mute_gain != dmg) && !mute_declick_applied && _mute_affects_post_fader) {
- apply_declick (bufs, nbufs, nframes, mute_gain, dmg, _phase_invert);
+ apply_declick (bufs, nbufs, nframes, mute_gain, dmg, false);
mute_gain = dmg;
mute_declick_applied = true;
}
@@ -525,7 +525,7 @@ Route::process_output_buffers (vector<Sample*>& bufs, uint32_t nbufs,
}
if (!_soloed && (mute_gain != dmg) && !mute_declick_applied && _mute_affects_control_outs) {
- apply_declick (bufs, nbufs, nframes, mute_gain, dmg, _phase_invert);
+ apply_declick (bufs, nbufs, nframes, mute_gain, dmg, false);
mute_gain = dmg;
mute_declick_applied = true;
}
@@ -570,7 +570,7 @@ Route::process_output_buffers (vector<Sample*>& bufs, uint32_t nbufs,
----------------------------------------------------------------------*/
if (!_soloed && (mute_gain != dmg) && !mute_declick_applied && _mute_affects_main_outs) {
- apply_declick (bufs, nbufs, nframes, mute_gain, dmg, _phase_invert);
+ apply_declick (bufs, nbufs, nframes, mute_gain, dmg, false);
mute_gain = dmg;
mute_declick_applied = true;
}