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:
parent
a746cbc6ed
commit
2e1ba6ef49
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user