Skip to content

Commit

Permalink
Upgrade clap-wrapper and bblock; fix a few msvc warnings: (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul authored Jan 2, 2025
1 parent 994677f commit 8dca48d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion libs/clap-libs/clap-wrapper
2 changes: 1 addition & 1 deletion src/dsp/node_support.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ template <typename T> struct ModulationSupport
[this](int i) { return &paramBundle.moddepth[i].value; }))
{
std::fill(sourcePointers.begin(), sourcePointers.end(), nullptr);
std::fill(priorModulation.begin(), priorModulation.end(), 0);
std::fill(priorModulation.begin(), priorModulation.end(), 0.f);
}

void bindModulation()
Expand Down
2 changes: 1 addition & 1 deletion src/dsp/op_source.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ struct alignas(16) OpSource : public EnvelopeSupport<Patch::SourceNode>,

envProcess();
lfoProcess();
auto lfoFac = lfoIsEnveloped > 0.5 ? env.outputCache[blockSize - 1] : 1.f;
auto lfoFac = lfoIsEnveloped ? env.outputCache[blockSize - 1] : 1.f;

auto rf = monoValues.twoToTheX.twoToThe(
ratio + envRatioAtten * envToRatio * env.outputCache[blockSize - 1] +
Expand Down
2 changes: 1 addition & 1 deletion src/synth/synth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void Synth::setSampleRate(double sampleRate)
lagHandler.setRate(60, blockSize, monoValues.sr.sampleRate);
vuPeak.setSampleRate(monoValues.sr.sampleRate);

resampler = std::make_unique<resampler_t>(monoValues.sr.sampleRate, realSampleRate);
resampler = std::make_unique<resampler_t>((float)monoValues.sr.sampleRate, (float)realSampleRate);
}

void Synth::process(const clap_output_events_t *outq)
Expand Down
2 changes: 1 addition & 1 deletion src/synth/voice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Voice::Voice(const Patch &p, MonoValues &mv)
}))
{
std::fill(isKeytrack.begin(), isKeytrack.end(), true);
std::fill(cmRatio.begin(), cmRatio.end(), 1.0);
std::fill(cmRatio.begin(), cmRatio.end(), 1.f);
}

void Voice::attack()
Expand Down

0 comments on commit 8dca48d

Please sign in to comment.