Skip to content

Commit cc025eb

Browse files
committed
follow up cue
1 parent 08eab96 commit cc025eb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/vs/platform/audioCues/browser/audioCueService.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ export class AudioCueService extends Disposable implements IAudioCueService {
5353
await Promise.all(Array.from(sounds).map(sound => this.playSound(sound, true)));
5454
}
5555

56+
/**
57+
* Gaming and other apps often play a sound variant when the same event happens again
58+
* for an improved experience. This function plays a random sound from the given group to accomplish that.
59+
* @param groupId
60+
* @param allowManyInParallel
61+
*/
5662
public playRandomAudioCue(groupId: AudioCueGroupId, allowManyInParallel?: boolean): void {
5763
const cues = AudioCue.allAudioCues.filter(cue => cue.groupId === groupId);
5864
const index = Math.floor(Math.random() * cues.length);
@@ -350,7 +356,7 @@ export class AudioCue {
350356
settingsKey: 'audioCues.chatRequestSent'
351357
});
352358

353-
public static readonly chatResponseReceived = {
359+
private static readonly chatResponseReceived = {
354360
name: localize('audioCues.chatResponseReceived', 'Chat Response Received'),
355361
settingsKey: 'audioCues.chatResponseReceived',
356362
groupId: AudioCueGroupId.chatResponseReceived

0 commit comments

Comments
 (0)