summaryrefslogtreecommitdiffstats
path: root/src/server/DuplexPort.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/DuplexPort.hpp')
-rw-r--r--src/server/DuplexPort.hpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/server/DuplexPort.hpp b/src/server/DuplexPort.hpp
index 1dd1292c..36e37b0b 100644
--- a/src/server/DuplexPort.hpp
+++ b/src/server/DuplexPort.hpp
@@ -43,15 +43,14 @@ class DuplexPort : public InputPort
{
public:
DuplexPort(BufferFactory& bufs,
- BlockImpl* parent,
+ GraphImpl* parent,
const Raul::Symbol& symbol,
uint32_t index,
bool polyphonic,
- uint32_t poly,
PortType type,
- LV2_URID buffer_type,
+ LV2_URID buf_type,
+ size_t buf_size,
const Atom& value,
- size_t buffer_size,
bool is_output);
virtual ~DuplexPort();
@@ -77,6 +76,16 @@ public:
uint32_t poly,
bool real_time) const;
+
+ virtual void set_is_driver_port(BufferFactory& bufs);
+
+ /** Set the external driver-provided buffer.
+ *
+ * This may only be called in the process thread, after an earlier call to
+ * prepare_driver_buffer().
+ */
+ void set_driver_buffer(void* buf, uint32_t capacity);
+
void pre_process(Context& context);
void post_process(Context& context);