summaryrefslogtreecommitdiffstats
path: root/src/engine/PortImpl.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-10-06 02:22:14 +0000
committerDavid Robillard <d@drobilla.net>2008-10-06 02:22:14 +0000
commit7d54c7a3831bde7a99a3b7824d2304da7c5715b0 (patch)
treed9f59627d1047ab8c9fef93e06c1f4cc8e6ef6e1 /src/engine/PortImpl.hpp
parentcc2eb2e38c4c8cb343b81974b774cef0af3dce4e (diff)
downloadingen-7d54c7a3831bde7a99a3b7824d2304da7c5715b0.tar.gz
ingen-7d54c7a3831bde7a99a3b7824d2304da7c5715b0.tar.bz2
ingen-7d54c7a3831bde7a99a3b7824d2304da7c5715b0.zip
LV2 and polyphony fixes from kfoltman.
Fix crash on changing polyphony when control->audio connections are present. Increasing polyphony audibly adds new voices now and controls can be individually twiddled, but changing polyphony nukes individual voice values (issue #223). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1623 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/PortImpl.hpp')
-rw-r--r--src/engine/PortImpl.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine/PortImpl.hpp b/src/engine/PortImpl.hpp
index a2eaf2c9..338c7482 100644
--- a/src/engine/PortImpl.hpp
+++ b/src/engine/PortImpl.hpp
@@ -81,6 +81,9 @@ public:
return buf;
}
}
+ inline Buffer* prepared_buffer(uint32_t voice) const {
+ return _prepared_buffers->at(voice);
+ }
/** Called once per process cycle */
virtual void pre_process(ProcessContext& context) = 0;