Skip to content

Commit

Permalink
Fix uninitalized values in Waveshaper (#993)
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Mar 9, 2024
1 parent af33f19 commit bb3cf75
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Waveshaper.h
Expand Up @@ -147,6 +147,9 @@ struct Waveshaper : public modules::XTModule,

modulationAssistant.initialize(this);

// initialize values, they can be used by the UI before processing if plugin is bypassed
modulationAssistant.updateValues(this);

configBypass(INPUT_L, OUTPUT_L);
configBypass(INPUT_R, OUTPUT_R);
}
Expand Down Expand Up @@ -200,7 +203,7 @@ struct Waveshaper : public modules::XTModule,
int lastPolyL{-2}, lastPolyR{-2};
int monoChannelOffset{0};

std::atomic<int> displayPolyChannel;
std::atomic<int> displayPolyChannel{0};
std::atomic<bool> doDCBlock{true};
bool wasDoDCBlock{true};
/*
Expand Down

0 comments on commit bb3cf75

Please sign in to comment.