1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 01:23:44 +08:00

Remove sound from notification closing/hiding

This commit is contained in:
Jamie Taylor 2023-07-05 17:26:20 +09:00
parent fdb572fdea
commit 4ff4c3a12e
No known key found for this signature in database
GPG Key ID: 2ACFA8B6370B8C8C

View File

@ -229,14 +229,7 @@ namespace osu.Game.Overlays
mainContent.FadeEdgeEffectTo(0, WaveContainer.DISAPPEAR_DURATION, Easing.In); mainContent.FadeEdgeEffectTo(0, WaveContainer.DISAPPEAR_DURATION, Easing.In);
} }
private void notificationClosed() => Schedule(() => private void notificationClosed() => Schedule(updateCounts);
{
updateCounts();
// this debounce is currently shared between popin/popout sounds, which means one could potentially not play when the user is expecting it.
// popout is constant across all notification types, and should therefore be handled using playback concurrency instead, but seems broken at the moment.
playDebouncedSample("UI/overlay-pop-out");
});
private void playDebouncedSample(string sampleName) private void playDebouncedSample(string sampleName)
{ {