Skip to content

Commit

Permalink
Fixed log mess after song finishes
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteAsian123 committed Jul 10, 2023
1 parent 674f10c commit d5b7f7f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Assets/Script/Audio/Bass/BassAudioManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -492,14 +492,15 @@ public double GetVolumeSetting(SongStem stem)

public void ApplyReverb(SongStem stem, bool reverb)
{
if (_mixer == null) return;

foreach (var channel in _mixer.GetChannels(stem))
channel.SetReverb(reverb);
}

public void SetWhammyPitch(SongStem stem, float percent)
{
if (_mixer == null || !AudioHelpers.PitchBendAllowedStems.Contains(stem))
return;
if (_mixer == null || !AudioHelpers.PitchBendAllowedStems.Contains(stem)) return;

foreach (var channel in _mixer.GetChannels(stem))
channel.SetWhammyPitch(percent);
Expand Down

0 comments on commit d5b7f7f

Please sign in to comment.