summaryrefslogtreecommitdiff
path: root/vst/drumgizmo_vst.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-07-27 19:50:04 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-01-20 13:31:10 +0100
commit91f5d293bce4a15a1883d0693f478917bb256b40 (patch)
tree7b01edd3464a0fecd4a4e3e0d13b9205f8084300 /vst/drumgizmo_vst.cc
parent41a6b0ebb6f71032c5a8e69e6aa8c813657224d7 (diff)
Add free-wheel mode to VST (untested).
Diffstat (limited to 'vst/drumgizmo_vst.cc')
-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 6e26ea4..70d0847 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) {