summaryrefslogtreecommitdiffstats
path: root/src/server/events
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/events')
-rw-r--r--src/server/events/Disconnect.cpp5
-rw-r--r--src/server/events/SetPortValue.cpp1
2 files changed, 2 insertions, 4 deletions
diff --git a/src/server/events/Disconnect.cpp b/src/server/events/Disconnect.cpp
index 413ded5f..c84dd7a3 100644
--- a/src/server/events/Disconnect.cpp
+++ b/src/server/events/Disconnect.cpp
@@ -22,7 +22,6 @@
#include "raul/Path.hpp"
#include "raul/log.hpp"
-#include "AudioBuffer.hpp"
#include "Broadcaster.hpp"
#include "EdgeImpl.hpp"
#include "DuplexPort.hpp"
@@ -101,8 +100,8 @@ Disconnect::Impl::Impl(Engine& e,
const float value = is_control ? _dst_input_port->value().get_float() : 0;
for (uint32_t i = 0; i < _buffers->size(); ++i) {
if (is_control) {
- AudioBuffer* abuf = dynamic_cast<AudioBuffer*>(_buffers->at(i).get());
- abuf->set_block(value, 0, abuf->nframes() - 1);
+ Buffer* buf = _buffers->at(i).get();
+ buf->set_block(value, 0, buf->nframes() - 1);
} else {
_buffers->at(i)->clear();
}
diff --git a/src/server/events/SetPortValue.cpp b/src/server/events/SetPortValue.cpp
index f2fa48f3..1ecdf285 100644
--- a/src/server/events/SetPortValue.cpp
+++ b/src/server/events/SetPortValue.cpp
@@ -19,7 +19,6 @@
#include "ingen/World.hpp"
#include "raul/log.hpp"
-#include "AudioBuffer.hpp"
#include "Broadcaster.hpp"
#include "ControlBindings.hpp"
#include "Driver.hpp"