summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/DuplexPort.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-09-29 21:39:53 +0000
committerDavid Robillard <d@drobilla.net>2007-09-29 21:39:53 +0000
commitc0af61632938f161dd2e15dec3c5260a3d5427ca (patch)
tree950bcfc1bc1fb232f8244c42504b8da3d5b511f5 /src/libs/engine/DuplexPort.cpp
parent85923e8b4f9f1601f008a9120d376d944f2478a2 (diff)
downloadingen-c0af61632938f161dd2e15dec3c5260a3d5427ca.tar.gz
ingen-c0af61632938f161dd2e15dec3c5260a3d5427ca.tar.bz2
ingen-c0af61632938f161dd2e15dec3c5260a3d5427ca.zip
Work towards port monitoring and better (higher utilization) parallel execution.
git-svn-id: http://svn.drobilla.net/lad/ingen@784 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/DuplexPort.cpp')
-rw-r--r--src/libs/engine/DuplexPort.cpp24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/libs/engine/DuplexPort.cpp b/src/libs/engine/DuplexPort.cpp
index a0d370db..f0b138ed 100644
--- a/src/libs/engine/DuplexPort.cpp
+++ b/src/libs/engine/DuplexPort.cpp
@@ -30,10 +30,10 @@ namespace Ingen {
DuplexPort::DuplexPort(Node* parent, const string& name, uint32_t index, uint32_t poly, DataType type, size_t buffer_size, bool is_output)
-: Port(parent, name, index, poly, type, buffer_size)
-, InputPort(parent, name, index, poly, type, buffer_size)
-, OutputPort(parent, name, index, poly, type, buffer_size)
-, _is_output(is_output)
+ : Port(parent, name, index, poly, type, buffer_size)
+ , InputPort(parent, name, index, poly, type, buffer_size)
+ , OutputPort(parent, name, index, poly, type, buffer_size)
+ , _is_output(is_output)
{
assert(Port::_parent == parent);
}
@@ -43,11 +43,19 @@ void
DuplexPort::pre_process(SampleCount nframes, FrameTime start, FrameTime end)
{
// Think about it...
-
- if (_is_output)
+
+// if (_is_output) {
InputPort::pre_process(nframes, start, end);
- else
- OutputPort::pre_process(nframes, start, end);
+// } else {
+ //for (uint32_t i=0; i < _poly; ++i)
+ // _buffers->at(i)->rewind();
+// OutputPort::pre_process(nframes, start, end);
+// }
+}
+
+void
+DuplexPort::process(ProcessContext& events, SampleCount nframes, FrameTime start, FrameTime end)
+{
}