From 95e730f5b1dd883b4a5f7584ef5d9a6709959b56 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Tue, 11 Aug 2020 16:20:55 +0200 Subject: [PATCH] Add the playback state on VST --- vst/SfizzVstProcessor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vst/SfizzVstProcessor.cpp b/vst/SfizzVstProcessor.cpp index e26fd23d..e64e184f 100644 --- a/vst/SfizzVstProcessor.cpp +++ b/vst/SfizzVstProcessor.cpp @@ -225,6 +225,8 @@ void SfizzVstProcessor::updateTimeInfo(const Vst::ProcessContext& context) beats -= int(bars) * _timeSigNumerator; synth.timePosition(0, int(bars), float(beats)); } + + synth.playbackState(0, (context.state & context.kPlaying) != 0); } void SfizzVstProcessor::processParameterChanges(Vst::IParameterChanges& pc)