mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 08:03:52 +09:00
Rename method back and add xmldoc
This commit is contained in:
@ -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();
|
slidingSample?.Stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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();
|
spinningSample?.Stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -385,9 +385,10 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <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>
|
/// </summary>
|
||||||
public virtual void StopLoopingSamples()
|
public virtual void StopAllSamples()
|
||||||
{
|
{
|
||||||
if (Samples?.Looping == true)
|
if (Samples?.Looping == true)
|
||||||
Samples.Stop();
|
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.
|
// 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.
|
// 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);
|
UpdateResult(false);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user