summaryrefslogtreecommitdiffstats
path: root/src/libs/engine
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-07-28 22:50:37 +0000
committerDavid Robillard <d@drobilla.net>2007-07-28 22:50:37 +0000
commit26e10071914fe3ba3e2f168df85b2935884b44b7 (patch)
tree422dfe359fbfb27763aa5dd3a8f78d916dda6221 /src/libs/engine
parent7dd171d955067c947168db2ca88f40d60aa5abbb (diff)
downloadingen-26e10071914fe3ba3e2f168df85b2935884b44b7.tar.gz
ingen-26e10071914fe3ba3e2f168df85b2935884b44b7.tar.bz2
ingen-26e10071914fe3ba3e2f168df85b2935884b44b7.zip
Remove (now) generated LV2 stuff Makefiles from repo.
Fix various port range/value/sync problems with the new sliders (fix tickets 64, 65). git-svn-id: http://svn.drobilla.net/lad/ingen@649 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine')
-rw-r--r--src/libs/engine/ObjectSender.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libs/engine/ObjectSender.cpp b/src/libs/engine/ObjectSender.cpp
index c40ba972..d585ab71 100644
--- a/src/libs/engine/ObjectSender.cpp
+++ b/src/libs/engine/ObjectSender.cpp
@@ -141,6 +141,11 @@ ObjectSender::send_port(ClientInterface* client, const Port* port)
client->new_port(port->path(), type, port->is_output());
+ // Send metadata
+ const GraphObject::MetadataMap& data = port->metadata();
+ for (GraphObject::MetadataMap::const_iterator j = data.begin(); j != data.end(); ++j)
+ client->metadata_update(port->path(), (*j).first, (*j).second);
+
// Send control value
if (port->type() == DataType::FLOAT && port->buffer_size() == 1) {
const Sample value = dynamic_cast<const AudioBuffer*>(port->buffer(0))->value_at(0);
@@ -148,11 +153,6 @@ ObjectSender::send_port(ClientInterface* client, const Port* port)
client->control_change(port->path(), value);
}
- // Send metadata
- const GraphObject::MetadataMap& data = port->metadata();
- for (GraphObject::MetadataMap::const_iterator j = data.begin(); j != data.end(); ++j)
- client->metadata_update(port->path(), (*j).first, (*j).second);
-
client->bundle_end();
}