summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r--libs/ardour/ardour/buffer_set.h3
-rw-r--r--libs/ardour/ardour/delivery.h13
-rw-r--r--libs/ardour/ardour/pitch.h4
-rw-r--r--libs/ardour/ardour/stretch.h4
4 files changed, 20 insertions, 4 deletions
diff --git a/libs/ardour/ardour/buffer_set.h b/libs/ardour/ardour/buffer_set.h
index 1350a3c5ab..1c77918789 100644
--- a/libs/ardour/ardour/buffer_set.h
+++ b/libs/ardour/ardour/buffer_set.h
@@ -74,6 +74,7 @@ public:
void is_silent(bool yn) { _is_silent = yn; }
bool is_silent() const { return _is_silent; }
void silence (nframes_t nframes, nframes_t offset);
+ bool is_mirror() const { return _is_mirror; }
void set_count(const ChanCount& count) { assert(count <= _available); _count = count; }
@@ -169,7 +170,7 @@ private:
/// Available counts (number of buffers actually allocated)
ChanCount _available;
- /// Whether we (don't) 'own' the contained buffers (otherwise we mirror a PortSet)
+ /// False if we 'own' the contained buffers, if true we mirror a PortSet)
bool _is_mirror;
/// Whether the buffer set should be considered silent
diff --git a/libs/ardour/ardour/delivery.h b/libs/ardour/ardour/delivery.h
index e46823d075..5cb11a9348 100644
--- a/libs/ardour/ardour/delivery.h
+++ b/libs/ardour/ardour/delivery.h
@@ -34,13 +34,20 @@ class Panner;
class Delivery : public IOProcessor {
public:
enum Role {
- Insert = 0x1,
+ /* main outputs - delivers out-of-place to port buffers, and cannot be removed */
+ Main = 0x1,
+ /* send - delivers to port buffers, leaves input buffers untouched */
Send = 0x2,
- Listen = 0x4,
- Main = 0x8,
+ /* insert - delivers to port buffers and receives in-place from port buffers */
+ Insert = 0x4,
+ /* listen - internal send used only to deliver to control/monitor bus */
+ Listen = 0x8,
+ /* aux - internal send used to deliver to any bus, by user request */
Aux = 0x10
};
+ static bool role_requires_output_ports (Role r) { return r == Main || r == Send || r == Insert; }
+
/* Delivery to an existing output */
Delivery (Session& s, boost::shared_ptr<IO> io, boost::shared_ptr<MuteMaster> mm, const std::string& name, Role);
diff --git a/libs/ardour/ardour/pitch.h b/libs/ardour/ardour/pitch.h
index 3173f9ff23..589c370409 100644
--- a/libs/ardour/ardour/pitch.h
+++ b/libs/ardour/ardour/pitch.h
@@ -20,6 +20,10 @@
#ifndef __ardour_pitch_h__
#define __ardour_pitch_h__
+#ifdef WAF_BUILD
+#include "libardour-config.h"
+#endif
+
#include "ardour/filter.h"
namespace ARDOUR {
diff --git a/libs/ardour/ardour/stretch.h b/libs/ardour/ardour/stretch.h
index 0b0de1be57..b878d4794e 100644
--- a/libs/ardour/ardour/stretch.h
+++ b/libs/ardour/ardour/stretch.h
@@ -20,6 +20,10 @@
#ifndef __ardour_stretch_h__
#define __ardour_stretch_h__
+#ifdef WAF_BUILD
+#include "libardour-config.h"
+#endif
+
#include "ardour/filter.h"
#ifdef USE_RUBBERBAND