From 3d89115a67a9c947a28539ffdd2399808a53279b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 16 Nov 2009 00:30:35 +0000 Subject: Rework objects extension to have "value ports" and "message ports". Make audio and control buffers in ingen actually object buffers (towards interop). Overhaul the hell out of ingen buffer and mixing stuff. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2266 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/NodeImpl.hpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/engine/NodeImpl.hpp') diff --git a/src/engine/NodeImpl.hpp b/src/engine/NodeImpl.hpp index 67ab0898..55ff5417 100644 --- a/src/engine/NodeImpl.hpp +++ b/src/engine/NodeImpl.hpp @@ -29,10 +29,12 @@ namespace Ingen { namespace Shared { class Plugin; class Node; class Port; } class Buffer; -class PluginImpl; +class BufferFactory; +class Engine; +class MessageContext; class PatchImpl; +class PluginImpl; class PortImpl; -class MessageContext; class ProcessContext; @@ -69,7 +71,7 @@ public: * Preprocessor thread, poly is actually applied by apply_poly. * \return true on success. */ - virtual bool prepare_poly(uint32_t poly) = 0; + virtual bool prepare_poly(BufferFactory& bufs, uint32_t poly) = 0; /** Apply a new (external) polyphony value. * @@ -131,7 +133,7 @@ public: */ virtual void process(ProcessContext& context) = 0; - virtual void set_port_buffer(uint32_t voice, uint32_t port_num, Buffer* buf) = 0; + virtual void set_port_buffer(uint32_t voice, uint32_t port_num, SharedPtr buf) = 0; virtual uint32_t num_ports() const = 0; @@ -167,7 +169,7 @@ public: */ virtual const Shared::Plugin* plugin() const = 0; - virtual void set_buffer_size(size_t size) = 0; + virtual void set_buffer_size(BufferFactory& bufs, size_t size) = 0; }; -- cgit v1.2.1