summaryrefslogtreecommitdiffstats
path: root/src/engine/ObjectSender.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/ObjectSender.cpp')
-rw-r--r--src/engine/ObjectSender.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/ObjectSender.cpp b/src/engine/ObjectSender.cpp
index 072d6c52..02886be5 100644
--- a/src/engine/ObjectSender.cpp
+++ b/src/engine/ObjectSender.cpp
@@ -142,7 +142,7 @@ ObjectSender::send_port(ClientInterface* client, const PortImpl* port, bool bund
// Send control value
if (port->type() == DataType::CONTROL) {
- const Sample& value = dynamic_cast<const AudioBuffer*>(port->buffer(0))->value_at(0);
+ const Sample& value = PtrCast<const AudioBuffer>(port->buffer(0))->value_at(0);
client->set_port_value(port->path(), value);
}