diff options
author | David Robillard <d@drobilla.net> | 2012-03-16 01:35:58 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-03-16 01:35:58 +0000 |
commit | 0b93e39af34d3af361f35d510224fda4fda56071 (patch) | |
tree | 0bd16a7aa0f208f05f8c7e96f42fceadb359732e /src/server/Notification.cpp | |
parent | 36059d30949d02a9dc787bab98a10e54a1b68e49 (diff) | |
download | ingen-0b93e39af34d3af361f35d510224fda4fda56071.tar.gz ingen-0b93e39af34d3af361f35d510224fda4fda56071.tar.bz2 ingen-0b93e39af34d3af361f35d510224fda4fda56071.zip |
Remove ClientInterface::activity and use set_property instead.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4065 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/Notification.cpp')
-rw-r--r-- | src/server/Notification.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/server/Notification.cpp b/src/server/Notification.cpp index 7a44062f..44d21a2f 100644 --- a/src/server/Notification.cpp +++ b/src/server/Notification.cpp @@ -29,23 +29,25 @@ void Notification::post_process(Notification& note, Engine& engine) { - Raul::Forge& forge = engine.world()->forge(); + const Ingen::Shared::URIs& uris = *engine.world()->uris().get(); + Raul::Forge& forge = engine.world()->forge(); switch (note.type) { case PORT_VALUE: engine.broadcaster()->set_property(note.port->path(), - engine.world()->uris()->ingen_value, + uris.ingen_value, note.value); break; case PORT_ACTIVITY: - engine.broadcaster()->activity(note.port->path(), note.value); + engine.broadcaster()->set_property(note.port->path(), + uris.ingen_activity, + note.value); break; case PORT_BINDING: { - const Ingen::Shared::URIs& uris = *engine.world()->uris().get(); Raul::Atom::DictValue dict; switch (note.binding_type) { case ControlBindings::MIDI_CC: dict[uris.rdf_type] = uris.midi_Controller; - dict[uris.midi_controllerNumber] = forge.make(note.value.get_int32()); + dict[uris.midi_controllerNumber] = note.value; break; case ControlBindings::MIDI_BENDER: dict[uris.rdf_type] = uris.midi_Bender; |