diff options
author | David Robillard <d@drobilla.net> | 2007-02-25 06:08:54 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-02-25 06:08:54 +0000 |
commit | d288ce4b8180e4c79f61bed85f0fa5d4cd36acc3 (patch) | |
tree | cc3ce435309750f3539efade34aa2655271e79ed /src/engine/machina | |
parent | 9d657891ea68ab979bb8c1877bfea656db0bdb1e (diff) | |
download | machina-d288ce4b8180e4c79f61bed85f0fa5d4cd36acc3.tar.gz machina-d288ce4b8180e4c79f61bed85f0fa5d4cd36acc3.tar.bz2 machina-d288ce4b8180e4c79f61bed85f0fa5d4cd36acc3.zip |
Command line app loads again.
Loading fixes, works now (except init is messed up).
git-svn-id: http://svn.drobilla.net/lad/machina@339 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/machina')
-rw-r--r-- | src/engine/machina/Engine.hpp | 9 | ||||
-rw-r--r-- | src/engine/machina/JackDriver.hpp | 3 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/engine/machina/Engine.hpp b/src/engine/machina/Engine.hpp index cd4cf27..37aa2db 100644 --- a/src/engine/machina/Engine.hpp +++ b/src/engine/machina/Engine.hpp @@ -20,6 +20,7 @@ #include <glibmm/ustring.h> #include <raul/SharedPtr.h> +#include "machina/JackDriver.hpp" namespace Machina { @@ -29,13 +30,12 @@ class JackDriver; class Engine { public: - Engine(SharedPtr<JackDriver> driver, SharedPtr<Machine> machine) + Engine(SharedPtr<JackDriver> driver) : _driver(driver) - , _machine(machine) - {} + { } SharedPtr<JackDriver> driver() { return _driver; } - SharedPtr<Machine> machine() { return _machine; } + SharedPtr<Machine> machine() { return _driver->machine(); } SharedPtr<Machine> load_machine(const Glib::ustring& uri); @@ -44,7 +44,6 @@ public: private: SharedPtr<JackDriver> _driver; - SharedPtr<Machine> _machine; }; diff --git a/src/engine/machina/JackDriver.hpp b/src/engine/machina/JackDriver.hpp index f78c1f1..91f4106 100644 --- a/src/engine/machina/JackDriver.hpp +++ b/src/engine/machina/JackDriver.hpp @@ -40,11 +40,12 @@ class Node; class JackDriver : public Raul::JackDriver, public Machina::MidiDriver, public boost::enable_shared_from_this<JackDriver> { public: - JackDriver(); + JackDriver(SharedPtr<Machine> machine = SharedPtr<Machine>()); void attach(const std::string& client_name); void detach(); + SharedPtr<Machine> machine() { return _machine; } void set_machine(SharedPtr<Machine> machine) { _machine = machine; } void write_event(Raul::BeatTime time, |