1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 07:23:14 +08:00

Rename method back and add xmldoc

This commit is contained in:
Dean Herbert 2020-10-05 16:24:02 +09:00
parent a69b1636be
commit c622adde7a
3 changed files with 8 additions and 7 deletions

View File

@ -109,9 +109,9 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
}
}
public override void StopLoopingSamples()
public override void StopAllSamples()
{
base.StopLoopingSamples();
base.StopAllSamples();
slidingSample?.Stop();
}

View File

@ -124,9 +124,9 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
}
}
public override void StopLoopingSamples()
public override void StopAllSamples()
{
base.StopLoopingSamples();
base.StopAllSamples();
spinningSample?.Stop();
}

View File

@ -385,9 +385,10 @@ namespace osu.Game.Rulesets.Objects.Drawables
}
/// <summary>
/// Stops playback of all samples. Automatically called when <see cref="DrawableHitObject{TObject}"/>'s lifetime has been exceeded.
/// Stops playback of all relevant samples. Generally only looping samples should be stopped by this, and the rest let to play out.
/// Automatically called when <see cref="DrawableHitObject{TObject}"/>'s lifetime has been exceeded.
/// </summary>
public virtual void StopLoopingSamples()
public virtual void StopAllSamples()
{
if (Samples?.Looping == true)
Samples.Stop();
@ -463,7 +464,7 @@ namespace osu.Game.Rulesets.Objects.Drawables
// failsafe to ensure looping samples don't get stuck in a playing state.
// this could occur in a non-frame-stable context where DrawableHitObjects get killed before a SkinnableSound has the chance to be stopped.
StopLoopingSamples();
StopAllSamples();
UpdateResult(false);
}