Skip to content

Commit

Permalink
Replace processingSampleRate with outputSampleRate in Lb302 (#7239)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakertooth authored May 5, 2024
1 parent 9b6e33a commit 20102c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Lb302/Lb302.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ float Lb302Filter3Pole::process(const float& samp)
static float computeDecayFactor(float decayTimeInSeconds, float targetedAttenuation)
{
// This is the number of samples that correspond to the decay time in seconds
auto samplesNeededForDecay = decayTimeInSeconds * Engine::audioEngine()->processingSampleRate();
auto samplesNeededForDecay = decayTimeInSeconds * Engine::audioEngine()->outputSampleRate();

// This computes the factor that's needed to make a signal with a value of 1 decay to the
// targeted attenuation over the time in number of samples.
Expand Down

0 comments on commit 20102c4

Please sign in to comment.