Skip to content

Commit 45e8df7

Browse files
authored
Merge pull request #35702 from nekodex/matchmaking-random-reveal-sfx
Add SFX to the matchmaking roulette random reveal
2 parents bd4ed49 + 1c30cb8 commit 45e8df7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

osu.Game/Screens/OnlinePlay/Matchmaking/Match/BeatmapSelect/BeatmapSelectGrid.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public partial class BeatmapSelectGrid : CompositeDrawable
4343

4444
private readonly Sample?[] spinSamples = new Sample?[5];
4545
private static readonly int[] spin_sample_sequence = [0, 1, 2, 3, 4, 2, 3, 4];
46+
private Sample? randomRevealSample;
4647
private Sample? resultSample;
4748
private Sample? swooshSample;
4849
private double? lastSamplePlayback;
@@ -80,6 +81,7 @@ private void load(AudioManager audio)
8081
for (int i = 0; i < spinSamples.Length; i++)
8182
spinSamples[i] = audio.Samples.Get($@"Multiplayer/Matchmaking/Selection/roulette-{i}");
8283

84+
randomRevealSample = audio.Samples.Get(@"Multiplayer/Matchmaking/Selection/random-reveal");
8385
resultSample = audio.Samples.Get(@"Multiplayer/Matchmaking/Selection/roulette-result");
8486
swooshSample = audio.Samples.Get(@"SongSelect/options-pop-out");
8587
}
@@ -136,6 +138,7 @@ public void RevealRandomItem(MultiplayerPlaylistItem item)
136138
return;
137139

138140
panel.DisplayItem(item);
141+
randomRevealSample?.Play();
139142
}
140143

141144
public void RollAndDisplayFinalBeatmap(long[] candidateItemIds, long finalItemId)

osu.Game/osu.Game.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</PackageReference>
3737
<PackageReference Include="Realm" Version="20.1.0" />
3838
<PackageReference Include="ppy.osu.Framework" Version="2025.1111.0" />
39-
<PackageReference Include="ppy.osu.Game.Resources" Version="2025.1105.0" />
39+
<PackageReference Include="ppy.osu.Game.Resources" Version="2025.1116.0" />
4040
<PackageReference Include="Sentry" Version="5.1.1" />
4141
<!-- Held back due to 0.34.0 failing AOT compilation on ZstdSharp.dll dependency. -->
4242
<PackageReference Include="SharpCompress" Version="0.39.0" />

0 commit comments

Comments
 (0)