From 36359a7d8f96a46574421e31d8980388320d62d0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 6 Jun 2013 11:19:23 -0400 Subject: [PATCH] correct previous premature commit re: OSC and send gain --- libs/surfaces/osc/osc.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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);