Skip to content

Commit

Permalink
Fix: wrong memset size. Fix: initialization I forgot.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bloodbat committed Sep 30, 2024
1 parent 145dbcb commit 564e2b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/contextus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ struct Contextus : SanguineModule {

memset(&jitterSource[i], 0, sizeof(renaissance::VcoJitterSource));
jitterSource[i].Init();
memset(&envelope[i], 0, sizeof(renaissance::SignatureWaveshaper));
memset(&waveShaper[i], 0, sizeof(renaissance::SignatureWaveshaper));
waveShaper[i].Init(0x0000);
memset(&settings[i], 0, sizeof(renaissance::SettingsData));

Expand All @@ -375,6 +375,7 @@ struct Contextus : SanguineModule {

previousPitch[i] = 0;
}
memset(&lastSettings, 0, sizeof(renaissance::SettingsData));

clockDivider.setDivision(kClockUpdateFrequency);
}
Expand Down

0 comments on commit 564e2b8

Please sign in to comment.