Change IApplicableToSample to receive adjustable component instead

Done for consistency with `IApplicableToTrack`.
This commit is contained in:
Salman Ahmed
2022-05-10 18:01:36 +03:00
parent 4f5001704e
commit 82b784ce5a
4 changed files with 5 additions and 8 deletions

View File

@ -4,7 +4,6 @@
using System;
using osu.Framework.Audio;
using osu.Framework.Bindables;
using osu.Framework.Graphics.Audio;
namespace osu.Game.Rulesets.Mods
{
@ -19,7 +18,7 @@ namespace osu.Game.Rulesets.Mods
track.AddAdjustment(AdjustableProperty.Tempo, SpeedChange);
}
public virtual void ApplyToSample(DrawableSample sample)
public virtual void ApplyToSample(IAdjustableAudioComponent sample)
{
sample.AddAdjustment(AdjustableProperty.Frequency, SpeedChange);
}