diff options
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/Buffer.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/server/Buffer.cpp b/src/server/Buffer.cpp index d4aa37c4..dfa3c506 100644 --- a/src/server/Buffer.cpp +++ b/src/server/Buffer.cpp @@ -199,15 +199,19 @@ Buffer::port_data(PortType port_type, SampleCount offset) { switch (port_type.id()) { case PortType::ID::CONTROL: + case PortType::ID::CV: + case PortType::ID::AUDIO: if (_type == _factory.uris().atom_Float) { return &get<LV2_Atom_Float>()->body; + } else if (_type == _factory.uris().atom_Sound) { + return (Sample*)_buf; } break; - case PortType::ID::CV: - case PortType::ID::AUDIO: - return (Sample*)_buf; - default: - return _buf; + case PortType::ID::ATOM: + if (_type != _factory.uris().atom_Sound) { + return _buf; + } + default: break; } return NULL; } |