From bea911e68ecd95de4c403c97d228ff284840f35e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 5 Oct 2008 19:06:59 +0000 Subject: Initialize _prepared_buffers. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1616 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/PortImpl.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/engine') 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(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; } -- cgit v1.2.1