#include <unistd.h>
#include <float.h>
+#include <glibmm.h>
+
#include <pbd/error.h>
#include <pbd/failed_constructor.h>
-#include <pbd/basename.h>
#include <pbd/xml++.h>
#include <ardour/session.h>
#include <pbd/mathfix.h>
-
using namespace std;
using namespace ARDOUR;
+using namespace PBD;
float Panner::current_automation_version_number = 1.0;
if (get_control_info (ch, ev, additional)) {
data.controller_number = additional;
data.value = val;
-
+ last_written = val;
+
sp.get_parent().session().send_midi_message (get_port(), ev, ch, data);
}
/* store effective pan position. do this even if we are muted */
- effective_x = buffers[0][nframes-1];
+ if (nframes > 0)
+ effective_x = buffers[0][nframes-1];
if (_muted) {
return;
if (full) {
if (save () == 0) {
- root->add_property (X_("automation"), PBD::basename (automation_path));
+ root->add_property (X_("automation"), Glib::path_get_basename (automation_path));
}
}