summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/TypedConnection.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-06-20 21:56:12 +0000
committerDavid Robillard <d@drobilla.net>2006-06-20 21:56:12 +0000
commit032d526710d174b30e0c9f33ff9f7e60e99fb172 (patch)
tree21eefe5891ccf7f3bb7bd618c125afd928fc81c5 /src/libs/engine/TypedConnection.cpp
parent34d46336eeccb2430df4d1ef00097890c400ab05 (diff)
downloadingen-032d526710d174b30e0c9f33ff9f7e60e99fb172.tar.gz
ingen-032d526710d174b30e0c9f33ff9f7e60e99fb172.tar.bz2
ingen-032d526710d174b30e0c9f33ff9f7e60e99fb172.zip
Renamed OmObject GraphObject;
Merged Port::prepare_buffers and Node::run into GraphObject::process. git-svn-id: http://svn.drobilla.net/lad/grauph@69 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/TypedConnection.cpp')
-rw-r--r--src/libs/engine/TypedConnection.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libs/engine/TypedConnection.cpp b/src/libs/engine/TypedConnection.cpp
index ccfd36a1..94806f85 100644
--- a/src/libs/engine/TypedConnection.cpp
+++ b/src/libs/engine/TypedConnection.cpp
@@ -59,8 +59,11 @@ template TypedConnection<MidiMessage>::~TypedConnection();
template <typename sample>
void
-TypedConnection<sample>::prepare_buffers()
+TypedConnection<sample>::process(samplecount nframes)
{
+ // FIXME: nframes parameter not used
+ assert(nframes == m_buffer_size);
+
/* Thought: A poly output port can be connected to multiple mono input
* ports, which means this mix down would have to happen many times.
* Adding a method to OutputPort that mixes down all it's outputs into
@@ -81,13 +84,13 @@ TypedConnection<sample>::prepare_buffers()
m_local_buffer->scale(1.0f/(float)src_port()->poly(), 0, m_buffer_size-1);
}
}
-template void TypedConnection<sample>::prepare_buffers();
+template void TypedConnection<sample>::process(samplecount nframes);
// FIXME: MIDI mixing not implemented
template <>
void
-TypedConnection<MidiMessage>::prepare_buffers()
+TypedConnection<MidiMessage>::process(samplecount nframes)
{
}