Skip to content

Commit

Permalink
histogram always active for MOD builds
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed May 28, 2024
1 parent 6c00e06 commit da3033e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugin/MasterMePlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ class MasterMePlugin : public FaustGeneratedPlugin
uint numFramesSoFar = 0;
float highestLufsInValue = -70.f;
float highestLufsOutValue = -70.f;
#ifndef __MOD_DEVICES__
bool histogramActive = false;
#endif
#if MASTER_ME_SHARED_MEMORY
MasterMeFifoControl lufsInFifo;
MasterMeFifoControl lufsOutFifo;
Expand Down Expand Up @@ -190,6 +192,7 @@ class MasterMePlugin : public FaustGeneratedPlugin
{
mode = value;
}
#ifndef __MOD_DEVICES__
else if (std::strcmp(key, "histogram") == 0)
{
#if MASTER_ME_SHARED_MEMORY
Expand All @@ -209,6 +212,7 @@ class MasterMePlugin : public FaustGeneratedPlugin
#endif
histogramActive = true;
}
#endif
/*
else if (std::strcmp(key, "export") == 0)
{
Expand Down Expand Up @@ -252,7 +256,9 @@ class MasterMePlugin : public FaustGeneratedPlugin
{
numFramesSoFar -= bufferSizeForHistogram;

#ifndef __MOD_DEVICES__
if (histogramActive)
#endif
{
#if MASTER_ME_SHARED_MEMORY
MasterMeHistogramFifos* const data = histogramSharedData.getDataPointer();
Expand Down

0 comments on commit da3033e

Please sign in to comment.