1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-31 01:50:20 +08:00

Merge pull request #35233 from diquoks/quick-fix/sfx-mute-on-restart

Mute SFX when holding restart beatmap bind
This commit is contained in:
Dean Herbert
2025-10-08 21:39:07 +09:00
committed by GitHub
Unverified
@@ -58,11 +58,13 @@ namespace osu.Game.Overlays
};
audio.Tracks.AddAdjustment(AdjustableProperty.Volume, audioVolume);
audio.Samples.AddAdjustment(AdjustableProperty.Volume, audioVolume);
}
protected override void Dispose(bool isDisposing)
{
audio?.Tracks.RemoveAdjustment(AdjustableProperty.Volume, audioVolume);
audio?.Samples.RemoveAdjustment(AdjustableProperty.Volume, audioVolume);
base.Dispose(isDisposing);
}
}