diff options
Diffstat (limited to 'src/server/PortImpl.cpp')
-rw-r--r-- | src/server/PortImpl.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/server/PortImpl.cpp b/src/server/PortImpl.cpp index ce75321d..d4d947d1 100644 --- a/src/server/PortImpl.cpp +++ b/src/server/PortImpl.cpp @@ -53,7 +53,7 @@ PortImpl::PortImpl(BufferFactory& bufs, , _index(index) , _poly(poly) , _buffer_size(buffer_size) - , _buffer_type(type) + , _type(type) , _value(value) , _min(0.0f) , _max(1.0f) @@ -64,7 +64,6 @@ PortImpl::PortImpl(BufferFactory& bufs, , _broadcast(false) , _set_by_user(false) { - _types.insert(type); assert(node != NULL); assert(_poly > 0); @@ -200,7 +199,7 @@ void PortImpl::broadcast_value(Context& context, bool force) { Raul::Atom val; - switch (buffer_type().symbol()) { + switch (_type.symbol()) { case PortType::UNKNOWN: break; case PortType::AUDIO: @@ -255,8 +254,7 @@ PortImpl::set_context(Context::ID c) PortType PortImpl::buffer_type() const { - // TODO: multiple types - return *_types.begin(); + return _type; } } // namespace Server |