Skip to content

Commit

Permalink
Revert "Fix crunchy audio when whammy is enabled (YARC-Official#896)"
Browse files Browse the repository at this point in the history
This reverts commit b84b898.
  • Loading branch information
RileyTheFox committed Oct 14, 2024
1 parent 16fdc83 commit ba32e66
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions Assets/Script/Audio/Bass/BassAudioManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ private void LoadDrumSfx()
DrumSfxSamples[(int) sfxSample] = sfx;
}
break;
}
}
}
}

Expand Down Expand Up @@ -492,15 +492,8 @@ internal static void SetChipmunking(float speed, int streamHandle, int reverbHan

internal static bool SetupPitchBend(in PitchShiftParametersStruct pitchParams, StreamHandle handles)
{
var pitchParamsFixed = new PitchShiftParameters
{
fPitchShift = pitchParams.fPitchShift,
fSemitones = pitchParams.fSemitones,
lFFTsize = pitchParams.FFTSize,
lOsamp = pitchParams.OversampleFactor
};
handles.PitchFX = BassHelpers.AddPitchShiftToChannel(handles.Stream, pitchParamsFixed);
if (handles.PitchFX == 0)
handles.CompressorFX = BassHelpers.FXAddParameters(handles.Stream, EffectType.PitchShift, pitchParams);
if (handles.CompressorFX == 0)
{
YargLogger.LogError("Failed to set up pitch bend for main stream!");
return false;
Expand Down

0 comments on commit ba32e66

Please sign in to comment.