diff options
author | David Robillard <d@drobilla.net> | 2010-03-06 10:23:19 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-03-06 10:23:19 +0000 |
commit | 059f20c9666234f2be01498ee04f1e7ee795ba8f (patch) | |
tree | ef0d53073d53012aeaa7d084fccf477b166c0684 /src/client/ObjectModel.cpp | |
parent | 085a451dfec54126be1b9346899c81d82e6eb58e (diff) | |
download | ingen-059f20c9666234f2be01498ee04f1e7ee795ba8f.tar.gz ingen-059f20c9666234f2be01498ee04f1e7ee795ba8f.tar.bz2 ingen-059f20c9666234f2be01498ee04f1e7ee795ba8f.zip |
Save Ingen patches as working standard LV2 plugin bundles.
This allows you to create an Ingen patch in Ingen running as a Jack client,
save it, then load that patch as an LV2 plugin in any LV2 compliant host.
Eliminate (hopefully) all static data in the engine (for multiple instantiations in a single process).
More API/ABI stable interface for Ingen::Shared::World.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2533 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/ObjectModel.cpp')
-rw-r--r-- | src/client/ObjectModel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/ObjectModel.cpp b/src/client/ObjectModel.cpp index a2423ab8..c449bf12 100644 --- a/src/client/ObjectModel.cpp +++ b/src/client/ObjectModel.cpp @@ -27,9 +27,9 @@ namespace Ingen { namespace Client { -ObjectModel::ObjectModel(const Path& path) - : ResourceImpl(path) - , _meta(ResourceImpl::meta_uri(path)) +ObjectModel::ObjectModel(Shared::LV2URIMap& uris, const Raul::Path& path) + : ResourceImpl(uris, path) + , _meta(uris, ResourceImpl::meta_uri(path)) , _path(path) , _symbol((path == Path::root()) ? "root" : path.symbol()) { @@ -76,7 +76,7 @@ ObjectModel::get_property(const Raul::URI& key) const bool ObjectModel::polyphonic() const { - const Raul::Atom& polyphonic = get_property(Shared::LV2URIMap::instance().ingen_polyphonic); + const Raul::Atom& polyphonic = get_property(_uris.ingen_polyphonic); return (polyphonic.is_valid() && polyphonic.get_bool()); } |