Avoid double playback of sample

This commit is contained in:
Jamie Taylor 2021-07-08 20:36:25 +09:00
parent 93eb385dd4
commit 8746ef0ba9
No known key found for this signature in database
GPG Key ID: 2ACFA8B6370B8C8C

View File

@ -391,6 +391,7 @@ namespace osu.Game.Overlays.Volume
case SelectionState.Selected: case SelectionState.Selected:
this.ScaleTo(1.04f, transition_length, Easing.OutExpo); this.ScaleTo(1.04f, transition_length, Easing.OutExpo);
selectedGlowContainer.FadeIn(transition_length, Easing.OutExpo); selectedGlowContainer.FadeIn(transition_length, Easing.OutExpo);
hoverSample?.Play();
break; break;
case SelectionState.NotSelected: case SelectionState.NotSelected:
@ -398,8 +399,6 @@ namespace osu.Game.Overlays.Volume
selectedGlowContainer.FadeOut(transition_length, Easing.OutExpo); selectedGlowContainer.FadeOut(transition_length, Easing.OutExpo);
break; break;
} }
hoverSample?.Play();
} }
} }
} }