Skip to content

Commit

Permalink
Change: init on declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bloodbat committed Sep 30, 2024
1 parent 976a822 commit 9477976
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/anuli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ struct Anuli : SanguineModule {
rings::Part part[PORT_MAX_CHANNELS];
rings::StringSynthPart stringSynth[PORT_MAX_CHANNELS];
rings::Strummer strummer[PORT_MAX_CHANNELS];
bool bStrum[PORT_MAX_CHANNELS];
bool bLastStrum[PORT_MAX_CHANNELS];
bool bStrum[PORT_MAX_CHANNELS] = {};
bool bLastStrum[PORT_MAX_CHANNELS] = {};

int channelCount = 0;
int polyphonyMode = 1;
Expand Down Expand Up @@ -152,9 +152,6 @@ struct Anuli : SanguineModule {
part[i].Init(reverbBuffer[i]);
memset(&stringSynth[i], 0, sizeof(rings::StringSynthPart));
stringSynth[i].Init(reverbBuffer[i]);

bStrum[i] = false;
bLastStrum[i] = false;
}

clockDivider.setDivision(kDividerFrequency);
Expand Down

0 comments on commit 9477976

Please sign in to comment.