Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennoCaldato committed Jul 10, 2021
1 parent 5018c8d commit 018cbd5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/audio_effects/Distortion.cpp
Expand Up @@ -168,8 +168,6 @@ std::string Distortion::Json() const {

void Distortion::Filter::updateCoefficients(const double discrete_frequency, const double gain)
{
jassert(discrete_frequency > 0);

double tan_half_wc = tan(discrete_frequency / 2.0);
double sqrt_gain = sqrt(gain);

Expand Down
2 changes: 1 addition & 1 deletion src/audio_effects/Distortion.h
Expand Up @@ -106,7 +106,7 @@ namespace openshot
class Filter : public juce::IIRFilter
{
public:
void updateCoefficients(const double discrete_frequency, const double gain) noexcept;
void updateCoefficients(const double discrete_frequency, const double gain);
};

juce::OwnedArray<Filter> filters;
Expand Down

0 comments on commit 018cbd5

Please sign in to comment.