diff options
author | David Robillard <d@drobilla.net> | 2011-10-21 19:29:03 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-10-21 19:29:03 +0000 |
commit | ee1ba36e564c4f0545e50ec91fa4b14d6dfca91b (patch) | |
tree | 60935911f4f05642fc86c1e94052209a091b0156 /src/server/events/SetPortValue.cpp | |
parent | c65659729265b8795ea76390a3507023ff3164dd (diff) | |
download | ingen-ee1ba36e564c4f0545e50ec91fa4b14d6dfca91b.tar.gz ingen-ee1ba36e564c4f0545e50ec91fa4b14d6dfca91b.tar.bz2 ingen-ee1ba36e564c4f0545e50ec91fa4b14d6dfca91b.zip |
Separate URIs from LV2URIMap.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3564 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/events/SetPortValue.cpp')
-rw-r--r-- | src/server/events/SetPortValue.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/server/events/SetPortValue.cpp b/src/server/events/SetPortValue.cpp index 7c3adb7e..a783e4e9 100644 --- a/src/server/events/SetPortValue.cpp +++ b/src/server/events/SetPortValue.cpp @@ -147,7 +147,8 @@ SetPortValue::apply(Context& context) return; } - Ingen::Shared::LV2URIMap& uris = *_engine.world()->uris().get(); + Ingen::Shared::URIs& uris = *_engine.world()->uris().get(); + Ingen::Shared::LV2URIMap& uri_map = *_engine.world()->lv2_uri_map().get(); EventBuffer* const ebuf = dynamic_cast<EventBuffer*>(buf); if (ebuf && _value.type() == Atom::BLOB) { @@ -155,7 +156,7 @@ SetPortValue::apply(Context& context) // Size 0 event, pass it along to the plugin as a typed but empty event if (_value.data_size() == 0) { - const uint32_t type_id = uris.uri_to_id(NULL, _value.get_blob_type()); + const uint32_t type_id = uri_map.uri_to_id(NULL, _value.get_blob_type()); ebuf->append(frames, 0, type_id, 0, NULL); _port->raise_set_by_user_flag(); return; @@ -164,7 +165,7 @@ SetPortValue::apply(Context& context) "http://lv2plug.in/ns/ext/midi#MidiEvent")) { ebuf->prepare_write(context); ebuf->append(frames, 0, - uris.global_to_event(uris.midi_MidiEvent.id).second, + uri_map.global_to_event(uris.midi_MidiEvent.id).second, _value.data_size(), (const uint8_t*)_value.get_blob()); _port->raise_set_by_user_flag(); |