Skip to content

Commit

Permalink
Add ScopedDenormalDisable in DSP
Browse files Browse the repository at this point in the history
  • Loading branch information
pdesaulniers committed Aug 9, 2023
1 parent e7f8699 commit d34289f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/WolfShaperPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

#include "DistrhoPlugin.hpp"
#include "extra/ScopedDenormalDisable.hpp"

#include <cmath>
#include <cstdio>
Expand Down Expand Up @@ -366,6 +367,8 @@ class WolfShaper : public Plugin

void run(const float **inputs, float **outputs, uint32_t frames) override
{
const ScopedDenormalDisable sdd;

const auto lockSucceeded = mutex.try_lock();

if (lockSucceeded)
Expand Down

0 comments on commit d34289f

Please sign in to comment.