Skip to content

Commit

Permalink
Fix ReTrigger (and Gate?) laser effects causing ear rape
Browse files Browse the repository at this point in the history
  • Loading branch information
ASleepyCat committed May 11, 2021
1 parent 22824b0 commit 6d4f9f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Main/src/Audio/AudioPlayback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -498,14 +498,14 @@ void AudioPlayback::m_SetLaserEffectParameter(float input)
}
case EffectType::Gate:
{
m_laserDSP->mix = m_laserEffect.mix.Sample(input);
m_laserDSP->mix = 1; // TODO: This should get the mix value from custom fx parameters
GateDSP *gd = (GateDSP *)m_laserDSP;
// gd->SetLength(actualLength);
break;
}
case EffectType::Retrigger:
{
m_laserDSP->mix = m_laserEffect.mix.Sample(input);
m_laserDSP->mix = 1; // TODO: This should get the mix value from custom fx parameters
RetriggerDSP *rt = (RetriggerDSP *)m_laserDSP;
rt->SetLength(actualLength);
break;
Expand Down

0 comments on commit 6d4f9f8

Please sign in to comment.