summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-07-27 19:50:04 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2015-07-27 19:50:04 +0200
commit509568c03ca4b64266675735d677267ec265c49e (patch)
tree4d8633bca9c37619161f622c68e487420ce9abe6
parentec4eb3f535c358e67eb9ae0989b2163b20728d0b (diff)
Add free-wheel mode to VST (untested).
-rw-r--r--vst/drumgizmo_vst.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/vst/drumgizmo_vst.cc b/vst/drumgizmo_vst.cc
index 1e40852..109f8b9 100644
--- a/vst/drumgizmo_vst.cc
+++ b/vst/drumgizmo_vst.cc
@@ -444,6 +444,12 @@ void DrumGizmoVst::initProcess()
void DrumGizmoVst::processReplacing(float** inputs, float** outputs,
VstInt32 sampleFrames)
{
+ long lvl = getCurrentProcessLevel();
+ // 0 = realtime/normal
+ // 1 = non-realtime/rendering
+ // 2 = offline processing
+ drumgizmo->setFreeWheel(lvl != 0);
+
output->setOutputs(outputs);
if(buffer_size != (size_t)sampleFrames) {