diff options
author | David Robillard <d@drobilla.net> | 2012-05-09 03:58:59 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-05-09 03:58:59 +0000 |
commit | ba2e3fac36f4db4ec4c27775f1a2246c111ce403 (patch) | |
tree | fc21cb90726b555f2c7fe3be796cd51cdd3fd88a /src/server/Engine.hpp | |
parent | c0e6f7ecbf77ef59e7e4948dd96109417a4994d5 (diff) | |
download | ingen-ba2e3fac36f4db4ec4c27775f1a2246c111ce403.tar.gz ingen-ba2e3fac36f4db4ec4c27775f1a2246c111ce403.tar.bz2 ingen-ba2e3fac36f4db4ec4c27775f1a2246c111ce403.zip |
Factor audio thread execution stuff out of JackDriver into Engine::run().
Towards an Ingen library interface usable on user-provided buffers.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4326 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/Engine.hpp')
-rw-r--r-- | src/server/Engine.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/server/Engine.hpp b/src/server/Engine.hpp index 042264e4..5111f52c 100644 --- a/src/server/Engine.hpp +++ b/src/server/Engine.hpp @@ -23,6 +23,8 @@ #include "ingen/Interface.hpp" #include "raul/SharedPtr.hpp" +#include "ProcessContext.hpp" + namespace Raul { class Maid; } namespace Ingen { @@ -43,6 +45,7 @@ class NodeFactory; class PostProcessor; class PreProcessor; class ProcessContext; +class PatchImpl; /** The engine which executes the process graph. @@ -63,6 +66,7 @@ public: // EngineBase methods virtual bool activate(); virtual void deactivate(); + virtual void run(uint32_t sample_count); virtual void quit(); virtual bool main_iteration(); virtual void register_client(const Raul::URI& uri, Interface* client); @@ -85,6 +89,8 @@ public: MessageContext* message_context() const { return _message_context; } NodeFactory* node_factory() const { return _node_factory; } PostProcessor* post_processor() const { return _post_processor; } + PatchImpl* root_patch() const { return _root_patch; } + ProcessContext& process_context() { return _process_context; } SharedPtr<EngineStore> engine_store() const; @@ -104,6 +110,9 @@ private: PostProcessor* _post_processor; EventWriter* _event_writer; + PatchImpl* _root_patch; + ProcessContext _process_context; + bool _quit_flag; }; |