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

@ -5,7 +5,6 @@ using System;
using System.Linq;
using osu.Framework.Audio;
using osu.Framework.Bindables;
using osu.Framework.Graphics.Audio;
using osu.Game.Beatmaps;
using osu.Game.Configuration;
using osu.Game.Rulesets.Objects;
@ -62,7 +61,7 @@ namespace osu.Game.Rulesets.Mods
AdjustPitch.TriggerChange();
}
public void ApplyToSample(DrawableSample sample)
public void ApplyToSample(IAdjustableAudioComponent sample)
{
sample.AddAdjustment(AdjustableProperty.Frequency, SpeedChange);
}