summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/NodeBase.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-01-02 02:51:41 +0000
committerDavid Robillard <d@drobilla.net>2007-01-02 02:51:41 +0000
commit84906b5777d6748c09dd5ca56169aa3366d13c71 (patch)
tree69207ea182be5c44c0a5e89d3d475ab0b39e97c5 /src/libs/engine/NodeBase.cpp
parentb249234a26f3a424fcf977b1a3b8fed4d5ac7d39 (diff)
downloadingen-84906b5777d6748c09dd5ca56169aa3366d13c71.tar.gz
ingen-84906b5777d6748c09dd5ca56169aa3366d13c71.tar.bz2
ingen-84906b5777d6748c09dd5ca56169aa3366d13c71.zip
Initial work on dynamic (Jack) buffer resizing (still unworking).
git-svn-id: http://svn.drobilla.net/lad/ingen@229 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/NodeBase.cpp')
-rw-r--r--src/libs/engine/NodeBase.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libs/engine/NodeBase.cpp b/src/libs/engine/NodeBase.cpp
index abba3c33..1462e3bf 100644
--- a/src/libs/engine/NodeBase.cpp
+++ b/src/libs/engine/NodeBase.cpp
@@ -125,6 +125,17 @@ NodeBase::remove_from_store()
}
+void
+NodeBase::set_buffer_size(size_t size)
+{
+ _buffer_size = size;
+
+ if (_ports)
+ for (size_t i=0; i < _ports->size(); ++i)
+ _ports->at(i)->set_buffer_size(size);
+}
+
+
/** Runs the Node for the specified number of frames (block size)
*/
void