Merge pull request #681 from jpcima/vst-fixes
Ensure to initialize the PlayState structure
This commit is contained in:
commit
605ad43306
2 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -158,6 +158,6 @@ public:
|
|||
OBJ_METHODS(PlayStateUpdate, FObject)
|
||||
|
||||
private:
|
||||
SfizzPlayState state_;
|
||||
SfizzPlayState state_ {};
|
||||
mutable std::mutex mutex_;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue