summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-02-05 19:46:31 +0000
committerDavid Robillard <d@drobilla.net>2015-02-05 19:46:31 +0000
commit766a104c91dfb6cdf58b0d8c80ab97b513b9c7b1 (patch)
treeb6976fb8074daa5929e13652db5d63ec089386e6 /src
parent3eb918b6b08821cecd92381c3f8c7967ca5bd995 (diff)
downloadingen-766a104c91dfb6cdf58b0d8c80ab97b513b9c7b1.tar.gz
ingen-766a104c91dfb6cdf58b0d8c80ab97b513b9c7b1.tar.bz2
ingen-766a104c91dfb6cdf58b0d8c80ab97b513b9c7b1.zip
Fix sequence=>sequence connections.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5530 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/server/LV2Block.cpp3
-rw-r--r--src/server/PortImpl.cpp1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/server/LV2Block.cpp b/src/server/LV2Block.cpp
index deafdcfe..4369107e 100644
--- a/src/server/LV2Block.cpp
+++ b/src/server/LV2Block.cpp
@@ -351,7 +351,8 @@ LV2Block::instantiate(BufferFactory& bufs)
break;
}
- if (!val.type()) {
+ if (!val.type() && (port_type != PortType::ATOM)) {
+ // Ensure numeric ports have a value, use 0 by default
val = forge.make(isnan(def_values[j]) ? 0.0f : def_values[j]);
}
diff --git a/src/server/PortImpl.cpp b/src/server/PortImpl.cpp
index ade8c74a..a86061c0 100644
--- a/src/server/PortImpl.cpp
+++ b/src/server/PortImpl.cpp
@@ -266,6 +266,7 @@ PortImpl::update_set_state(Context& context, uint32_t voice)
case SetState::State::SET:
if (state.time < context.start() &&
buffer(voice)->is_sequence() &&
+ buffer(voice)->value_type() == _bufs.uris().atom_Float &&
!_parent->path().is_root()) {
buffer(voice)->clear();
state.time = context.start();