mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 18:07:27 +09:00
Ensure music playback is stopped when retrying by any means
This commit is contained in:
parent
338b4c56ce
commit
0f6eb9d4cb
@ -441,6 +441,10 @@ namespace osu.Game.Screens.Play
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void Restart()
|
public void Restart()
|
||||||
{
|
{
|
||||||
|
// at the point of restarting the track should either already be paused or the volume should be zero.
|
||||||
|
// stopping here is to ensure music doesn't become audible after exiting back to PlayerLoader.
|
||||||
|
musicController.Stop();
|
||||||
|
|
||||||
sampleRestart?.Play();
|
sampleRestart?.Play();
|
||||||
RestartRequested?.Invoke();
|
RestartRequested?.Invoke();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user