diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-03-07 22:13:53 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-03-07 22:13:53 +0000 |
commit | f07ea817511902d6ef52d3aa07dc3539fcc4d11c (patch) | |
tree | 4aa2341043f71485505ff3cf382c433f3bc3c870 /libs/ardour/amp.cc | |
parent | 5a0a06f94fd6531a7ec23516c87452c0af384e63 (diff) |
manage Route::_have_internal_generator more accurately and never flush processors if there is on; correctly manage declicking so that only *TRACKS* without internal generators will declick at transport state transitions (fixes horrible click at transport stop in some configurations
git-svn-id: svn://localhost/ardour2/branches/3.0@9100 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/amp.cc')
-rw-r--r-- | libs/ardour/amp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/amp.cc b/libs/ardour/amp.cc index 5f305182f8..40a1de2047 100644 --- a/libs/ardour/amp.cc +++ b/libs/ardour/amp.cc @@ -243,7 +243,7 @@ Amp::declick (BufferSet& bufs, framecnt_t nframes, int dir) if (declick != nframes) { if (target == 0.0) { - memset (&buffer[declick], 0, sizeof (Sample) * (nframes - declick)); + memset (&buffer[declick], 0, sizeof (Sample) * (nframes - declick)); } else if (target != 1.0) { apply_gain_to_buffer (&buffer[declick], nframes - declick, target); } |