summaryrefslogtreecommitdiffstats
path: root/src/engine/events
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-02-28 23:27:37 +0000
committerDavid Robillard <d@drobilla.net>2010-02-28 23:27:37 +0000
commit354f6a7d1cea3cafe743e7dd4d0115b0cc4295ba (patch)
tree4891caf6daaf9f2e13315f519517b87f6d0d0899 /src/engine/events
parentd9eadd5db2eeddea52dfd7884a11da11388f7707 (diff)
downloadingen-354f6a7d1cea3cafe743e7dd4d0115b0cc4295ba.tar.gz
ingen-354f6a7d1cea3cafe743e7dd4d0115b0cc4295ba.tar.bz2
ingen-354f6a7d1cea3cafe743e7dd4d0115b0cc4295ba.zip
Just always allocate destination port buffers on connect, since being clever about it likes to crash so much.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2511 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/events')
-rw-r--r--src/engine/events/Connect.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/engine/events/Connect.cpp b/src/engine/events/Connect.cpp
index abc093a5..124ada06 100644
--- a/src/engine/events/Connect.cpp
+++ b/src/engine/events/Connect.cpp
@@ -135,13 +135,13 @@ Connect::pre_process()
_patch->add_connection(_connection);
_dst_input_port->increment_num_connections();
- if ((_dst_input_port->num_connections() == 1
+ /*if ((_dst_input_port->num_connections() == 1
&& (_connection->must_mix() || _connection->must_queue()))
- || _dst_input_port->num_connections() == 2) {
+ || _dst_input_port->num_connections() == 2) {*/
_buffers = new Raul::Array<BufferFactory::Ref>(_dst_input_port->poly());
_dst_input_port->get_buffers(*_engine.buffer_factory(),
_buffers, _dst_input_port->poly());
- }
+ //}
if (_patch->enabled())
_compiled_patch = _patch->compile();
@@ -158,10 +158,11 @@ Connect::execute(ProcessContext& context)
if (_error == NO_ERROR) {
// This must be inserted here, since they're actually used by the audio thread
_dst_input_port->add_connection(_port_listnode);
- if (_buffers)
+ assert(_buffers);
+ //if (_buffers)
_engine.maid()->push(_dst_input_port->set_buffers(_buffers));
- else
- _dst_input_port->setup_buffers(*_engine.buffer_factory(), _dst_input_port->poly());
+ //else
+ // _dst_input_port->setup_buffers(*_engine.buffer_factory(), _dst_input_port->poly());
_dst_input_port->connect_buffers();
_engine.maid()->push(_patch->compiled_patch());
_patch->compiled_patch(_compiled_patch);