Skip to content

Commit

Permalink
Fix multi-dimensional array initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveBenham committed Feb 7, 2025
1 parent 3a682d0 commit 2820140
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Oscillator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ struct Oscillator : VenomModule {
OversampleFilter_4 expUpSample[4]{}, linUpSample[4]{}, revUpSample[4]{}, syncUpSample[4]{},
shapeUpSample[4][5]{}, phaseUpSample[4][5]{}, offsetUpSample[4][5]{}, levelUpSample[4][5]{},
outDownSample[4][5]{};
float_4 phasor[4]{}, phasorDir[4]{1.f, 1.f, 1.f, 1.f};
float_4 phasor[4]{}, phasorDir[4]{{1.f, 1.f, 1.f, 1.f}, {1.f, 1.f, 1.f, 1.f}, {1.f, 1.f, 1.f, 1.f}, {1.f, 1.f, 1.f, 1.f}};
DCBlockFilter_4 dcBlockFilter[4][6]{}; // Sin, Tri, Sqr, Saw, Mix, Lin FM Input
bool linDCCouple = false;
dsp::SchmittTrigger syncTrig[16], revTrig[16];
Expand Down
2 changes: 1 addition & 1 deletion src/VCOUnit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct VCOUnit : VenomModule {
OversampleFilter_4 expUpSample[4]{}, linUpSample[4]{}, revUpSample[4]{}, syncUpSample[4]{},
shapeUpSample[4]{}, phaseUpSample[4]{}, offsetUpSample[4]{}, levelUpSample[4]{},
outDownSample[4]{};
float_4 phasor[4]{}, phasorDir[4]{1.f, 1.f, 1.f, 1.f};
float_4 phasor[4]{}, phasorDir[4]{{1.f, 1.f, 1.f, 1.f}, {1.f, 1.f, 1.f, 1.f}, {1.f, 1.f, 1.f, 1.f}, {1.f, 1.f, 1.f, 1.f}};
DCBlockFilter_4 linDcBlockFilter[4]{}, outDcBlockFilter[4]{};
bool linDCCouple = false;
dsp::SchmittTrigger syncTrig[16], revTrig[16];
Expand Down

0 comments on commit 2820140

Please sign in to comment.