Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename sleepImpl to processBypassedImpl
  • Loading branch information
messmerd committed Sep 9, 2024
commit a262d17c464c4e2f46e7e84940e0855931ad3d2c
2 changes: 1 addition & 1 deletion include/Effect.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class LMMS_EXPORT Effect : public Plugin
* Optional method that runs when plugin is sleeping (not enabled,
* not running, not in the Okay state, or in the Don't Run state)
*/
virtual void sleepImpl() {}
virtual void processBypassedImpl() {}


gui::PluginView* instantiateView( QWidget * ) override;
Expand Down
2 changes: 1 addition & 1 deletion plugins/Compressor/Compressor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ double CompressorEffect::processImpl(SampleFrame* buf, const fpp_t frames)
return outSum;
}

void CompressorEffect::sleepImpl()
void CompressorEffect::processBypassedImpl()
{
// Clear lookahead buffers and other values when needed
if (!m_cleanedBuffers)
Expand Down
2 changes: 1 addition & 1 deletion plugins/Compressor/Compressor.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class CompressorEffect : public Effect
~CompressorEffect() override = default;

double processImpl(SampleFrame* buf, const fpp_t frames) override;
void sleepImpl() override;
void processBypassedImpl() override;

EffectControls* controls() override
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/DynamicsProcessor/DynamicsProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ double DynProcEffect::processImpl(SampleFrame* buf, const fpp_t frames)
return outSum;
}

void DynProcEffect::sleepImpl()
void DynProcEffect::processBypassedImpl()
{
// Apparently we can't keep running after the decay value runs out so we'll just set the peaks to zero
m_currentPeak[0] = m_currentPeak[1] = DYN_NOISE_FLOOR;
Expand Down
2 changes: 1 addition & 1 deletion plugins/DynamicsProcessor/DynamicsProcessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class DynProcEffect : public Effect
~DynProcEffect() override;

double processImpl(SampleFrame* buf, const fpp_t frames) override;
void sleepImpl() override;
void processBypassedImpl() override;

EffectControls * controls() override
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/Effect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ bool Effect::processAudioBuffer(SampleFrame* buf, const fpp_t frames)
{
if (!isOkay() || dontRun() || !isEnabled() || !isRunning())
{
sleepImpl();
processBypassedImpl();
return false;
}

Expand Down