summaryrefslogtreecommitdiffstats
path: root/src/server/Buffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/Buffer.cpp')
-rw-r--r--src/server/Buffer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/Buffer.cpp b/src/server/Buffer.cpp
index 38a27fa8..270d95aa 100644
--- a/src/server/Buffer.cpp
+++ b/src/server/Buffer.cpp
@@ -123,10 +123,10 @@ Buffer::resize(uint32_t capacity)
void*
Buffer::port_data(PortType port_type)
{
- switch (port_type.symbol()) {
- case PortType::CONTROL:
- case PortType::CV:
- case PortType::AUDIO:
+ switch (port_type.id()) {
+ case PortType::ID::CONTROL:
+ case PortType::ID::CV:
+ case PortType::ID::AUDIO:
if (_atom->type == _factory.uris().atom_Float) {
return (float*)LV2_ATOM_BODY(_atom);
} else if (_atom->type == _factory.uris().atom_Sound) {