Skip to content

Commit

Permalink
fix mac compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Rauch committed Aug 2, 2024
1 parent 9630be5 commit 7e5c82f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Synth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@ struct Synth : Module {
float mixLevels[nMixChannels] = {0.};
float mixFilterBalances[nMixChannels] = {0.};

float_4 modMatrixInputs[nSources][4] = {0};
float_4 modMatrixOutputs[nDestinations][4] = {0};
float_4 modMatrixInputs[nSources][4] = {{0}};
float_4 modMatrixOutputs[nDestinations][4] = {{0}};

float modMatrix[nDestinations][nSources] = {0}; // the mod matrix
float modMatrix[nDestinations][nSources] = {{0}}; // the mod matrix

bool mustCalculateDestination[nDestinations] = {false}; // false if all but the first entry of the mod matrix column are 0

Expand Down Expand Up @@ -259,10 +259,10 @@ struct Synth : Module {
musx::AliasReductionFilter<float_4> aliasFilter1[4];
musx::FilterBlock filter1[4];
musx::AntialiasedCheapSaturator<float_4> saturator1[4];
float_4 delayBuffer1[4][maxOversamplingRate] = {0.f};
float_4 delayBuffer1[4][maxOversamplingRate] = {{0.f}};

int filter2CutoffMode = 0; // 0: individual, 1: offset, 2: space
float_4 delayBuffer2[4][maxOversamplingRate] = {0.f};
float_4 delayBuffer2[4][maxOversamplingRate] = {{0.f}};
musx::TOnePole<float_4> dcBlocker2[4];
musx::AliasReductionFilter<float_4> aliasFilter2[4];
musx::FilterBlock filter2[4];
Expand Down

0 comments on commit 7e5c82f

Please sign in to comment.