summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-06-06 11:19:23 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-06-06 11:19:23 -0400
commit36359a7d8f96a46574421e31d8980388320d62d0 (patch)
treeded9e44b69a690442a2789fe25c20f5aaa1fb68a /libs
parentaddb33bc630721e623f90b6f3e920eedcdc40742 (diff)
correct previous premature commit re: OSC and send gain
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaces/osc/osc.cc6
1 files 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 <pbd/file_utils.h>
#include <pbd/failed_constructor.h>
+#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<Processor> p = r->nth_send (send);
+ boost::shared_ptr<Processor> p = r->nth_send (sid);
if (p) {
boost::shared_ptr<Send> s = boost::dynamic_pointer_cast<Send>(p);
@@ -941,7 +943,7 @@ OSC::route_set_send_gain_dB (int rid, int sid, float val)
--sid;
}
- boost::shared_ptr<Processor> p = r->nth_send (send);
+ boost::shared_ptr<Processor> p = r->nth_send (sid);
if (p) {
boost::shared_ptr<Send> s = boost::dynamic_pointer_cast<Send>(p);