Ensure to initialize the PlayState structure
This commit is contained in:
parent
ca21566724
commit
3edf948949
2 changed files with 2 additions and 2 deletions
|
|
@ -281,7 +281,7 @@ tresult PLUGIN_API SfizzVstProcessor::process(Vst::ProcessData& data)
|
||||||
_playStateChangeCounter += numFrames;
|
_playStateChangeCounter += numFrames;
|
||||||
if (_playStateChangeCounter > _playStateChangePeriod) {
|
if (_playStateChangeCounter > _playStateChangePeriod) {
|
||||||
_playStateChangeCounter %= _playStateChangePeriod;
|
_playStateChangeCounter %= _playStateChangePeriod;
|
||||||
SfizzPlayState playState;
|
SfizzPlayState playState {};
|
||||||
playState.curves = synth.getNumCurves();
|
playState.curves = synth.getNumCurves();
|
||||||
playState.masters = synth.getNumMasters();
|
playState.masters = synth.getNumMasters();
|
||||||
playState.groups = synth.getNumGroups();
|
playState.groups = synth.getNumGroups();
|
||||||
|
|
|
||||||
|
|
@ -158,6 +158,6 @@ public:
|
||||||
OBJ_METHODS(PlayStateUpdate, FObject)
|
OBJ_METHODS(PlayStateUpdate, FObject)
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SfizzPlayState state_;
|
SfizzPlayState state_ {};
|
||||||
mutable std::mutex mutex_;
|
mutable std::mutex mutex_;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue