From 8ba6bb943889bfdd58cf4a971a152041c1199cfe Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 18 Apr 2011 12:47:15 +0000 Subject: Put engine code in new Ingen::Engine namespace. Put core interfaces in Ingen namespace (not Ingen::Shared). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3159 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/PatchImpl.hpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/engine/PatchImpl.hpp') diff --git a/src/engine/PatchImpl.hpp b/src/engine/PatchImpl.hpp index 95acc229..8429728f 100644 --- a/src/engine/PatchImpl.hpp +++ b/src/engine/PatchImpl.hpp @@ -29,7 +29,9 @@ namespace Ingen { -namespace Shared { class Connection; } +class Connection; + +namespace Engine { class CompiledPatch; class ConnectionImpl; @@ -45,7 +47,7 @@ class ProcessContext; * * \ingroup engine */ -class PatchImpl : public NodeImpl, public Ingen::Shared::Patch +class PatchImpl : public NodeImpl, public Patch { public: PatchImpl(Engine& engine, @@ -62,7 +64,7 @@ public: void process(ProcessContext& context); - void set_buffer_size(Context& context, BufferFactory& bufs, Shared::PortType type, size_t size); + void set_buffer_size(Context& context, BufferFactory& bufs, PortType type, size_t size); /** Prepare for a new (internal) polyphony value. * @@ -97,7 +99,7 @@ public: uint32_t num_ports() const; - PortImpl* create_port(BufferFactory& bufs, const std::string& name, Shared::PortType type, size_t buffer_size, bool is_output, bool polyphonic); + PortImpl* create_port(BufferFactory& bufs, const std::string& name, PortType type, size_t buffer_size, bool is_output, bool polyphonic); void add_input(Raul::List::Node* port) { _input_ports.push_back(port); } ///< Preprocesser thread void add_output(Raul::List::Node* port) { _output_ports.push_back(port); } ///< Preprocessor thread Raul::List::Node* remove_port(const std::string& name); @@ -157,6 +159,7 @@ PatchImpl::compile_recursive(NodeImpl* n, CompiledPatch* output) const output->push_back(CompiledNode(n, n->providers()->size(), n->dependants())); } +} // namespace Engine } // namespace Ingen #endif // INGEN_ENGINE_PATCHIMPL_HPP -- cgit v1.2.1