summaryrefslogtreecommitdiffstats
path: root/src/server/PatchImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/PatchImpl.cpp')
-rw-r--r--src/server/PatchImpl.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/PatchImpl.cpp b/src/server/PatchImpl.cpp
index 72545b1b..52060ab1 100644
--- a/src/server/PatchImpl.cpp
+++ b/src/server/PatchImpl.cpp
@@ -343,8 +343,12 @@ PatchImpl::create_port(BufferFactory& bufs, const string& name, PortType type, s
assert( !(type == PortType::UNKNOWN) );
+ Raul::Atom value;
+ if (type == PortType::CONTROL)
+ value = 0.0f;
+
return new DuplexPort(bufs, this, name, num_ports(), polyphonic, _polyphony,
- type, Raul::Atom(), buffer_size, is_output);
+ type, value, buffer_size, is_output);
}
/** Remove port from ports list used in pre-processing thread.