diff options
Diffstat (limited to 'src/engine/ingen_osc.cpp')
-rw-r--r-- | src/engine/ingen_osc.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/engine/ingen_osc.cpp b/src/engine/ingen_osc.cpp index 0a2d6768..09428508 100644 --- a/src/engine/ingen_osc.cpp +++ b/src/engine/ingen_osc.cpp @@ -26,12 +26,13 @@ using namespace Ingen; struct IngenOSCModule : public Ingen::Shared::Module { void load(Ingen::Shared::World* world) { - SharedPtr<OSCEngineReceiver> interface( - new Ingen::OSCEngineReceiver( - *(Engine*)world->local_engine().get(), - event_queue_size, - world->conf()->option("engine-port").get_int32())); - ((Engine*)world->local_engine().get())->add_event_source(interface); + Engine::Engine* engine = (Engine::Engine*)world->local_engine().get(); + SharedPtr<Engine::OSCEngineReceiver> interface( + new Engine::OSCEngineReceiver( + *engine, + Engine::event_queue_size, + world->conf()->option("engine-port").get_int32())); + engine->add_event_source(interface); } }; |