#include "ardour/internal_return.h"
#include "ardour/internal_send.h"
#include "ardour/meter.h"
-#include "ardour/panner.h"
#include "ardour/panner_shell.h"
#include "ardour/route.h"
#include "ardour/session.h"
#include "i18n.h"
+namespace ARDOUR { class MuteMaster; class Pannable; }
+
using namespace PBD;
using namespace ARDOUR;
using namespace std;
Amp::apply_simple_gain (mixbufs, nframes, tgain);
}
- // Can't automate gain for sends or returns yet because we need different buffers
- // so that we don't overwrite the main automation data for the route amp
- // _amp->setup_gain_automation (start_frame, end_frame, nframes);
-
+ _amp->set_gain_automation_buffer (_session.send_gain_automation_buffer ());
+ _amp->setup_gain_automation (start_frame, end_frame, nframes);
_amp->run (mixbufs, start_frame, end_frame, nframes, true);
/* consider metering */