From 2b5adf2b6c8c5fa44fec0a09c351a8b4954d06d4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 18 Dec 2010 19:23:09 +0000 Subject: Remove LearnRequest from public engine API. git-svn-id: http://svn.drobilla.net/lad/trunk/machina@2763 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/Machine.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/engine/Machine.cpp') diff --git a/src/engine/Machine.cpp b/src/engine/Machine.cpp index cbfa54e..c7ea48d 100644 --- a/src/engine/Machine.cpp +++ b/src/engine/Machine.cpp @@ -16,14 +16,18 @@ */ #include + #include "raul/SharedPtr.hpp" #include "redlandmm/Model.hpp" #include "redlandmm/World.hpp" + #include "machina/Edge.hpp" #include "machina/Machine.hpp" #include "machina/MidiAction.hpp" #include "machina/Node.hpp" +#include "LearnRequest.hpp" + using namespace std; using namespace Raul; @@ -367,9 +371,9 @@ Machine::run(const Raul::TimeSlice& time) * NOT realtime (actions are allocated here). */ void -Machine::learn(SharedPtr learn) +Machine::learn(SharedPtr maid, SharedPtr node) { - _pending_learn = learn; + _pending_learn = LearnRequest::create(maid, node); } @@ -418,6 +422,4 @@ Machine::write_state(Redland::Model& model) } } - } // namespace Machina - -- cgit v1.2.1