diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index ef07ca17fb..13dbd3bcf0 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -34,6 +34,7 @@ #include #include +#include "ardour/amp.h" #include "ardour/session.h" #include "ardour/route.h" #include "ardour/audio_track.h" @@ -42,6 +43,7 @@ #include "ardour/filesystem_paths.h" #include "ardour/panner.h" #include "ardour/plugin.h" +#include "ardour/send.h" #include "osc.h" #include "osc_controllable.h" @@ -910,7 +912,7 @@ OSC::route_set_send_gain_abs (int rid, int sid, float val) --sid; } - boost::shared_ptr p = r->nth_send (send); + boost::shared_ptr p = r->nth_send (sid); if (p) { boost::shared_ptr s = boost::dynamic_pointer_cast(p); @@ -941,7 +943,7 @@ OSC::route_set_send_gain_dB (int rid, int sid, float val) --sid; } - boost::shared_ptr p = r->nth_send (send); + boost::shared_ptr p = r->nth_send (sid); if (p) { boost::shared_ptr s = boost::dynamic_pointer_cast(p);