From 91f5d293bce4a15a1883d0693f478917bb256b40 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 27 Jul 2015 19:50:04 +0200 Subject: Add free-wheel mode to VST (untested). --- vst/drumgizmo_vst.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vst') 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) { -- cgit v1.2.3