mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 06:05:43 +01:00
Clean up 135814cf0, prefer PannableChanged signal
This allows to also catch cases when a panner-ui directly changes set_linked_to_route() of the panner shell.
This commit is contained in:
parent
ba31151c42
commit
e16ac09e54
2 changed files with 8 additions and 1 deletions
|
|
@ -124,6 +124,7 @@ private:
|
|||
Send (const Send&);
|
||||
|
||||
void panshell_changed ();
|
||||
void pannable_changed ();
|
||||
void snd_output_changed (IOChange, void*);
|
||||
|
||||
void update_delaylines ();
|
||||
|
|
|
|||
|
|
@ -108,6 +108,7 @@ Send::Send (Session& s, boost::shared_ptr<Pannable> p, boost::shared_ptr<MuteMas
|
|||
|
||||
if (panner_shell()) {
|
||||
panner_shell()->Changed.connect_same_thread (*this, boost::bind (&Send::panshell_changed, this));
|
||||
panner_shell()->PannableChanged.connect_same_thread (*this, boost::bind (&Send::pannable_changed, this));
|
||||
}
|
||||
if (_output) {
|
||||
_output->changed.connect_same_thread (*this, boost::bind (&Send::snd_output_changed, this, _1, _2));
|
||||
|
|
@ -453,7 +454,6 @@ void
|
|||
Send::set_panner_linked_to_route (bool onoff) {
|
||||
if (_panshell) {
|
||||
_panshell->set_linked_to_route (onoff);
|
||||
PropertyChanged (PBD::PropertyChange ()); /* EMIT SIGNAL */
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -503,6 +503,12 @@ Send::panshell_changed ()
|
|||
_meter->configure_io (ChanCount (DataType::AUDIO, pan_outs()), ChanCount (DataType::AUDIO, pan_outs()));
|
||||
}
|
||||
|
||||
void
|
||||
Send::pannable_changed ()
|
||||
{
|
||||
PropertyChanged (PBD::PropertyChange ()); /* EMIT SIGNAL */
|
||||
}
|
||||
|
||||
bool
|
||||
Send::set_name (const string& new_name)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue