From e96c36c1a7abb062e36efc0ac95c35fedcef922e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 8 Apr 2007 06:04:32 +0000 Subject: De-template-ification of port types (req. for LV2 MIDI, but nice code size reduction). LV2 MIDI patching support (LV2 style MIDI throughout, inc. internal plugins). git-svn-id: http://svn.drobilla.net/lad/ingen@415 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/events/RequestPortValueEvent.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/libs/engine/events/RequestPortValueEvent.cpp') diff --git a/src/libs/engine/events/RequestPortValueEvent.cpp b/src/libs/engine/events/RequestPortValueEvent.cpp index 3155e72f..533cac38 100644 --- a/src/libs/engine/events/RequestPortValueEvent.cpp +++ b/src/libs/engine/events/RequestPortValueEvent.cpp @@ -17,12 +17,13 @@ #include "RequestPortValueEvent.h" #include +#include "interface/ClientInterface.h" #include "Responder.h" #include "Engine.h" -#include "interface/ClientInterface.h" -#include "TypedPort.h" +#include "Port.h" #include "ObjectStore.h" #include "ClientBroadcaster.h" +#include "AudioBuffer.h" using std::string; @@ -55,7 +56,7 @@ RequestPortValueEvent::execute(SampleCount nframes, FrameTime start, FrameTime e assert(_time >= start && _time <= end); if (_port != NULL && _port->type() == DataType::FLOAT) - _value = ((TypedPort*)_port)->buffer(0)->value_at(0/*_time - start*/); + _value = ((AudioBuffer*)_port->buffer(0))->value_at(0/*_time - start*/); else _port = NULL; // triggers error response } -- cgit v1.2.1