From f41149628955fc8145bef6db0c110b71664c0a3a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 21 Jul 2009 14:39:21 +0000 Subject: fix clicking when processors become active/inactive; reduce crazy 2.5sec delay for quit dialog git-svn-id: svn://localhost/ardour2/branches/3.0@5402 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/processor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/ardour/ardour/processor.h') diff --git a/libs/ardour/ardour/processor.h b/libs/ardour/ardour/processor.h index 2df10e9c69..a97dcc4cf7 100644 --- a/libs/ardour/ardour/processor.h +++ b/libs/ardour/ardour/processor.h @@ -59,7 +59,7 @@ class Processor : public SessionObject, public AutomatableControls, public Laten virtual bool visible() const { return true; } virtual void set_visible (bool) {} - bool active () const { return _active; } + bool active () const { return _pending_active; } bool get_next_ab_is_active () const { return _next_ab_is_active; } void set_next_ab_is_active (bool yn) { _next_ab_is_active = yn; } @@ -73,8 +73,8 @@ class Processor : public SessionObject, public AutomatableControls, public Laten virtual void run (BufferSet& bufs, sframes_t start_frame, sframes_t end_frame, nframes_t nframes) {} virtual void silence (nframes_t nframes) {} - virtual void activate () { _active = true; ActiveChanged(); } - virtual void deactivate () { _active = false; ActiveChanged(); } + virtual void activate () { _pending_active = true; ActiveChanged(); } + virtual void deactivate () { _pending_active = false; ActiveChanged(); } virtual bool configure_io (ChanCount in, ChanCount out); -- cgit v1.2.3