diff options
author | David Robillard <d@drobilla.net> | 2011-04-18 12:47:15 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-18 12:47:15 +0000 |
commit | 8ba6bb943889bfdd58cf4a971a152041c1199cfe (patch) | |
tree | 91fbe8577e6d01070aa81f532ddd8102db1476f5 /src/engine/Engine.cpp | |
parent | 3cd3bfe5079f84fafb7dc217f5393d6ba947109c (diff) | |
download | ingen-8ba6bb943889bfdd58cf4a971a152041c1199cfe.tar.gz ingen-8ba6bb943889bfdd58cf4a971a152041c1199cfe.tar.bz2 ingen-8ba6bb943889bfdd58cf4a971a152041c1199cfe.zip |
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
Diffstat (limited to 'src/engine/Engine.cpp')
-rw-r--r-- | src/engine/Engine.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/engine/Engine.cpp b/src/engine/Engine.cpp index 8585b5a3..72f04f69 100644 --- a/src/engine/Engine.cpp +++ b/src/engine/Engine.cpp @@ -51,8 +51,7 @@ using namespace std; using namespace Raul; namespace Ingen { - -using namespace Shared; +namespace Engine { bool ThreadManager::single_threaded = true; @@ -69,7 +68,7 @@ Engine::Engine(Ingen::Shared::World* a_world) if (a_world->store()) { assert(PtrCast<EngineStore>(a_world->store())); } else { - a_world->set_store(SharedPtr<Shared::Store>(new EngineStore())); + a_world->set_store(SharedPtr<Ingen::Shared::Store>(new EngineStore())); } } @@ -145,7 +144,7 @@ Engine::activate() for (EventSources::iterator i = _event_sources.begin(); i != _event_sources.end(); ++i) (*i)->activate_source(); - const LV2URIMap& uris = *world()->uris().get(); + const Ingen::Shared::LV2URIMap& uris = *world()->uris().get(); // Create root patch PatchImpl* root_patch = _driver->root_patch(); @@ -163,12 +162,12 @@ Engine::activate() ProcessContext context(*this); - Shared::Resource::Properties control_properties; + Resource::Properties control_properties; control_properties.insert(make_pair(uris.lv2_name, "Control")); control_properties.insert(make_pair(uris.rdf_type, uris.ev_EventPort)); // Add control input - Shared::Resource::Properties in_properties(control_properties); + Resource::Properties in_properties(control_properties); in_properties.insert(make_pair(uris.rdf_type, uris.lv2_InputPort)); in_properties.insert(make_pair(uris.lv2_index, 0)); in_properties.insert(make_pair(uris.ingenui_canvas_x, @@ -181,7 +180,7 @@ Engine::activate() "/control_in", uris.ev_EventPort, false, in_properties)); // Add control out - Shared::Resource::Properties out_properties(control_properties); + Resource::Properties out_properties(control_properties); out_properties.insert(make_pair(uris.rdf_type, uris.lv2_OutputPort)); out_properties.insert(make_pair(uris.lv2_index, 1)); out_properties.insert(make_pair(uris.ingenui_canvas_x, @@ -223,4 +222,5 @@ Engine::process_events(ProcessContext& context) (*i)->process(*_post_processor, context); } +} // namespace Engine } // namespace Ingen |