mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
Fix websockets surface crash when panner is not available
This commit is contained in:
parent
54c4d3adc5
commit
224be91211
2 changed files with 10 additions and 4 deletions
|
|
@ -165,8 +165,10 @@ ArdourFeedback::observe_strips ()
|
|||
strip->gain_control ()->Changed.connect (_signal_connections, MISSING_INVALIDATOR,
|
||||
boost::bind<void> (StripGainObserver (), this, strip_n), event_loop ());
|
||||
|
||||
if (strip->pan_azimuth_control ()) {
|
||||
strip->pan_azimuth_control ()->Changed.connect (_signal_connections, MISSING_INVALIDATOR,
|
||||
boost::bind<void> (StripPanObserver (), this, strip_n), event_loop ());
|
||||
}
|
||||
|
||||
strip->mute_control ()->Changed.connect (_signal_connections, MISSING_INVALIDATOR,
|
||||
boost::bind<void> (StripMuteObserver (), this, strip_n), event_loop ());
|
||||
|
|
|
|||
|
|
@ -92,8 +92,12 @@ ArdourStrips::strip_pan (uint32_t strip_n) const
|
|||
void
|
||||
ArdourStrips::set_strip_pan (uint32_t strip_n, double value)
|
||||
{
|
||||
boost::shared_ptr<AutomationControl> ac = nth_strip (strip_n)->pan_azimuth_control ();
|
||||
if (!ac) {
|
||||
return;
|
||||
}
|
||||
value = (value + 1.0) / 2.0;
|
||||
nth_strip (strip_n)->pan_azimuth_control ()->set_value (value, PBD::Controllable::NoGroup);
|
||||
ac->set_value (value, PBD::Controllable::NoGroup);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue