mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
Set session dirty when pans change (#3807).
git-svn-id: svn://localhost/ardour2/branches/3.0@9010 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
0ace3f6e20
commit
252be42c04
2 changed files with 15 additions and 0 deletions
|
|
@ -91,6 +91,9 @@ class Pannable : public PBD::Stateful, public Automatable, public SessionHandleR
|
||||||
uint32_t _responding_to_control_auto_state_change;
|
uint32_t _responding_to_control_auto_state_change;
|
||||||
|
|
||||||
void control_auto_state_changed (AutoState);
|
void control_auto_state_changed (AutoState);
|
||||||
|
|
||||||
|
private:
|
||||||
|
void value_changed ();
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,12 @@ Pannable::Pannable (Session& s)
|
||||||
pan_width_control->alist()->automation_state_changed.connect_same_thread (*this, boost::bind (&Pannable::control_auto_state_changed, this, _1));
|
pan_width_control->alist()->automation_state_changed.connect_same_thread (*this, boost::bind (&Pannable::control_auto_state_changed, this, _1));
|
||||||
pan_frontback_control->alist()->automation_state_changed.connect_same_thread (*this, boost::bind (&Pannable::control_auto_state_changed, this, _1));
|
pan_frontback_control->alist()->automation_state_changed.connect_same_thread (*this, boost::bind (&Pannable::control_auto_state_changed, this, _1));
|
||||||
pan_lfe_control->alist()->automation_state_changed.connect_same_thread (*this, boost::bind (&Pannable::control_auto_state_changed, this, _1));
|
pan_lfe_control->alist()->automation_state_changed.connect_same_thread (*this, boost::bind (&Pannable::control_auto_state_changed, this, _1));
|
||||||
|
|
||||||
|
pan_azimuth_control->Changed.connect_same_thread (*this, boost::bind (&Pannable::value_changed, this));
|
||||||
|
pan_elevation_control->Changed.connect_same_thread (*this, boost::bind (&Pannable::value_changed, this));
|
||||||
|
pan_width_control->Changed.connect_same_thread (*this, boost::bind (&Pannable::value_changed, this));
|
||||||
|
pan_frontback_control->Changed.connect_same_thread (*this, boost::bind (&Pannable::value_changed, this));
|
||||||
|
pan_lfe_control->Changed.connect_same_thread (*this, boost::bind (&Pannable::value_changed, this));
|
||||||
}
|
}
|
||||||
|
|
||||||
Pannable::~Pannable ()
|
Pannable::~Pannable ()
|
||||||
|
|
@ -92,6 +98,12 @@ Pannable::set_panner (boost::shared_ptr<Panner> p)
|
||||||
_panner = p;
|
_panner = p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
Pannable::value_changed ()
|
||||||
|
{
|
||||||
|
_session.set_dirty ();
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Pannable::set_automation_state (AutoState state)
|
Pannable::set_automation_state (AutoState state)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue