Skip to content

Commit

Permalink
Merge pull request #681 from jpcima/vst-fixes
Browse files Browse the repository at this point in the history
Ensure to initialize the PlayState structure
  • Loading branch information
jpcima authored Mar 8, 2021
2 parents ca21566 + 3edf948 commit 605ad43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/vst/SfizzVstProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ tresult PLUGIN_API SfizzVstProcessor::process(Vst::ProcessData& data)
_playStateChangeCounter += numFrames;
if (_playStateChangeCounter > _playStateChangePeriod) {
_playStateChangeCounter %= _playStateChangePeriod;
SfizzPlayState playState;
SfizzPlayState playState {};
playState.curves = synth.getNumCurves();
playState.masters = synth.getNumMasters();
playState.groups = synth.getNumGroups();
Expand Down
2 changes: 1 addition & 1 deletion plugins/vst/SfizzVstUpdates.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,6 @@ class PlayStateUpdate : public Steinberg::FObject {
OBJ_METHODS(PlayStateUpdate, FObject)

private:
SfizzPlayState state_;
SfizzPlayState state_ {};
mutable std::mutex mutex_;
};

0 comments on commit 605ad43

Please sign in to comment.