From 9c3f49e5c78e21c4bfab3e5b7296b10d15f842bb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 14 Oct 2016 15:07:57 -0400 Subject: Fix communication with connected sequence ports --- src/server/PortImpl.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/server/PortImpl.hpp') diff --git a/src/server/PortImpl.hpp b/src/server/PortImpl.hpp index 41666523..e497176c 100644 --- a/src/server/PortImpl.hpp +++ b/src/server/PortImpl.hpp @@ -196,6 +196,7 @@ public: bool has_value() const; PortType type() const { return _type; } + LV2_URID value_type() const { return _value.is_valid() ? _value.type() : 0; } LV2_URID buffer_type() const { return _buffer_type; } bool supports(const URIs::Quark& value_type) const; @@ -225,12 +226,13 @@ public: /** Monitor port value and broadcast to clients periodically. */ void monitor(RunContext& context, bool send_now=false); - void raise_set_by_user_flag() { _set_by_user = true; } - BufferFactory& bufs() const { return _bufs; } BufferRef value_buffer(uint32_t voice); + BufferRef user_buffer(RunContext&) const { return _user_buffer; } + void set_user_buffer(RunContext&, BufferRef b) { _user_buffer = b; } + /** Return offset of the first value change after `offset`. */ virtual SampleCount next_value_offset(SampleCount offset, SampleCount end) const; @@ -280,9 +282,9 @@ protected: Atom _max; Raul::Array* _voices; Raul::Array* _prepared_voices; + BufferRef _user_buffer; bool _monitored; bool _force_monitor_update; - bool _set_by_user; bool _is_morph; bool _is_auto_morph; bool _is_logarithmic; -- cgit v1.2.1