1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 12:33:01 +08:00

Create StopSampleAndRemoveFilters method and change RemoveFilters to private

This commit is contained in:
Matheus Filipe dos Santos Reinert 2023-01-22 01:43:40 -03:00
parent a746cbc6ed
commit 2e1ba6ef49

View File

@ -120,7 +120,7 @@ namespace osu.Game.Screens.Play
this.TransformBindableTo(trackFreq, 0, duration).OnComplete(_ =>
{
// Don't reset frequency as the pause screen may appear post transform, causing a second frequency sweep.
RemoveFilters(false);
removeFilters(false);
OnComplete?.Invoke();
});
@ -159,7 +159,13 @@ namespace osu.Game.Screens.Play
failSampleChannel?.Stop();
}
public void RemoveFilters(bool resetTrackFrequency = true)
public void StopSampleAndRemoveFilters()
{
StopSample();
removeFilters();
}
private void removeFilters(bool resetTrackFrequency = true)
{
filtersRemoved = true;