summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-10-05 19:06:59 +0000
committerDavid Robillard <d@drobilla.net>2008-10-05 19:06:59 +0000
commitbea911e68ecd95de4c403c97d228ff284840f35e (patch)
tree27a49729e9af93981505838e1206509746a26c7d /src/engine
parent108240af29691057f6074ae58caab0978161354e (diff)
downloadingen-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
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/PortImpl.cpp3
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;
}