diff options
author | David Robillard <d@drobilla.net> | 2008-10-05 19:06:59 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-10-05 19:06:59 +0000 |
commit | bea911e68ecd95de4c403c97d228ff284840f35e (patch) | |
tree | 27a49729e9af93981505838e1206509746a26c7d | |
parent | 108240af29691057f6074ae58caab0978161354e (diff) | |
download | ingen-bea911e68ecd95de4c403c97d228ff284840f35e.tar.gz ingen-bea911e68ecd95de4c403c97d228ff284840f35e.tar.bz2 ingen-bea911e68ecd95de4c403c97d228ff284840f35e.zip |
Initialize _prepared_buffers.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1616 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/engine/PortImpl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine/PortImpl.cpp b/src/engine/PortImpl.cpp index 62e89def..49887453 100644 --- a/src/engine/PortImpl.cpp +++ b/src/engine/PortImpl.cpp @@ -50,6 +50,7 @@ PortImpl::PortImpl(NodeImpl* const node, , _last_broadcasted_value(_value.type() == Atom::FLOAT ? _value.get_float() : 0.0f) // default? , _context(Context::AUDIO) , _buffers(new Raul::Array<Buffer*>(poly)) + , _prepared_buffers(NULL) { assert(node != NULL); assert(_poly > 0); @@ -134,6 +135,8 @@ PortImpl::allocate_buffers() for (uint32_t i=0; i < _poly; ++i) _buffers->at(i) = Buffer::create(_type, _buffer_size); + + _prepared_buffers = _buffers; } |