summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/mute_master.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-05-19 14:32:49 +0000
committerCarl Hetherington <carl@carlh.net>2010-05-19 14:32:49 +0000
commit6ad69a206ca325e9e50eff4f8f2088170b468f00 (patch)
tree24c716755fa2f36ccc68100cabf53a5ae4be4b7d /libs/ardour/ardour/mute_master.h
parente258b2622a4386b405c2216d79b34887c3ed55bf (diff)
When muting a route because another is soloed, take
into account the muting options (pre-fader/post-fader etc.) for the muted route. git-svn-id: svn://localhost/ardour2/branches/3.0@7119 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/mute_master.h')
-rw-r--r--libs/ardour/ardour/mute_master.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/libs/ardour/ardour/mute_master.h b/libs/ardour/ardour/mute_master.h
index c219ce3ec3..228126b582 100644
--- a/libs/ardour/ardour/mute_master.h
+++ b/libs/ardour/ardour/mute_master.h
@@ -47,17 +47,13 @@ class MuteMaster : public SessionHandleRef, public PBD::Stateful
MuteMaster (Session& s, const std::string& name);
~MuteMaster() {}
- bool muted() const { return _muted && (_mute_point != MutePoint (0)); }
- bool muted_at (MutePoint mp) const { return _muted && (_mute_point & mp); }
-
- bool muted_pre_fader() const { return muted_at (PreFader); }
- bool muted_post_fader() const { return muted_at (PostFader); }
- bool muted_listen() const { return muted_at (Listen); }
- bool muted_main () const { return muted_at (Main); }
+ bool muted_by_self () const { return _muted_by_self && (_mute_point != MutePoint (0)); }
+ bool muted_by_self_at (MutePoint mp) const { return _muted_by_self && (_mute_point & mp); }
+ bool muted_by_others_at (MutePoint mp) const;
gain_t mute_gain_at (MutePoint) const;
- void set_muted (bool yn) { _muted = yn; }
+ void set_muted_by_self (bool yn) { _muted_by_self = yn; }
void mute_at (MutePoint);
void unmute_at (MutePoint);
@@ -76,7 +72,7 @@ class MuteMaster : public SessionHandleRef, public PBD::Stateful
private:
volatile MutePoint _mute_point;
- volatile bool _muted;
+ volatile bool _muted_by_self;
volatile bool _soloed;
volatile bool _solo_ignore;
};