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/gui/Port.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/gui/Port.cpp')
-rw-r--r-- | src/gui/Port.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp index 4e1a5460..0ef9f634 100644 --- a/src/gui/Port.cpp +++ b/src/gui/Port.cpp @@ -192,7 +192,7 @@ Port::set_control(float value, bool signal) App& app = App::instance(); Ingen::Shared::World* const world = app.world(); app.engine()->set_property(model()->path(), - world->uris->ingen_value, Atom(value)); + world->uris()->ingen_value, Atom(value)); PatchWindow* pw = app.window_factory()->patch_window( PtrCast<PatchModel>(model()->parent())); if (!pw) @@ -241,8 +241,7 @@ Port::dash() if (!pm) return NULL; - const Raul::Atom& context = pm->get_property(uris.ctx_context); - if (!context.is_valid() || context.type() != Atom::URI || context == uris.ctx_AudioContext) + if (pm->has_context(uris.ctx_AudioContext)) return NULL; if (!_dash) { |