summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/InputPort.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/InputPort.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/InputPort.cpp')
-rw-r--r--src/libs/engine/InputPort.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libs/engine/InputPort.cpp b/src/libs/engine/InputPort.cpp
index 752efde4..960972e5 100644
--- a/src/libs/engine/InputPort.cpp
+++ b/src/libs/engine/InputPort.cpp
@@ -210,7 +210,7 @@ template void InputPort<MidiMessage>::tie(OutputPort<MidiMessage>* const port);
*/
template<>
void
-InputPort<sample>::prepare_buffers(size_t nframes)
+InputPort<sample>::process(samplecount nframes)
{
//assert(!m_is_tied || m_tied_port != NULL);
@@ -220,7 +220,7 @@ InputPort<sample>::prepare_buffers(size_t nframes)
if (m_connections.size() == 0) return;
for (TypedConnectionListIterator c = m_connections.begin(); c != m_connections.end(); ++c)
- (*c)->prepare_buffers();
+ (*c)->process(nframes);
// If only one connection, buffer is (maybe) used directly (no copying)
if (m_connections.size() == 1) {
@@ -270,7 +270,7 @@ InputPort<sample>::prepare_buffers(size_t nframes)
*/
template <>
void
-InputPort<MidiMessage>::prepare_buffers(size_t nframes)
+InputPort<MidiMessage>::process(samplecount nframes)
{
//assert(!m_is_tied || m_tied_port != NULL);
@@ -283,7 +283,7 @@ InputPort<MidiMessage>::prepare_buffers(size_t nframes)
assert(_poly == 1);
for (TypedConnectionListIterator c = m_connections.begin(); c != m_connections.end(); ++c)
- (*c)->prepare_buffers();
+ (*c)->process(nframes);
// If only one connection, buffer is used directly (no copying)