diff options
author | David Robillard <d@drobilla.net> | 2007-01-02 02:51:41 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-01-02 02:51:41 +0000 |
commit | 84906b5777d6748c09dd5ca56169aa3366d13c71 (patch) | |
tree | 69207ea182be5c44c0a5e89d3d475ab0b39e97c5 /src/libs/engine/Patch.cpp | |
parent | b249234a26f3a424fcf977b1a3b8fed4d5ac7d39 (diff) | |
download | ingen-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/Patch.cpp')
-rw-r--r-- | src/libs/engine/Patch.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libs/engine/Patch.cpp b/src/libs/engine/Patch.cpp index 747d60c7..967623e5 100644 --- a/src/libs/engine/Patch.cpp +++ b/src/libs/engine/Patch.cpp @@ -137,6 +137,17 @@ Patch::process(SampleCount nframes, FrameTime start, FrameTime end) (*i)->process(nframes, start, end); } + +void +Patch::set_buffer_size(size_t size) +{ + NodeBase::set_buffer_size(size); + assert(_buffer_size == size); + + for (List<Node*>::iterator j = _nodes.begin(); j != _nodes.end(); ++j) + (*j)->set_buffer_size(size); +} + void Patch::add_to_store(ObjectStore* store) |