File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/vs/platform/audioCues/browser Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,10 @@ export class AudioCueService extends Disposable implements IAudioCueService {
53
53
await Promise . all ( Array . from ( sounds ) . map ( sound => this . playSound ( sound , true ) ) ) ;
54
54
}
55
55
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
+ */
56
60
public playRandomAudioCue ( groupId : AudioCueGroupId , allowManyInParallel ?: boolean ) : void {
57
61
const cues = AudioCue . allAudioCues . filter ( cue => cue . groupId === groupId ) ;
58
62
const index = Math . floor ( Math . random ( ) * cues . length ) ;
@@ -350,7 +354,7 @@ export class AudioCue {
350
354
settingsKey : 'audioCues.chatRequestSent'
351
355
} ) ;
352
356
353
- public static readonly chatResponseReceived = {
357
+ private static readonly chatResponseReceived = {
354
358
name : localize ( 'audioCues.chatResponseReceived' , 'Chat Response Received' ) ,
355
359
settingsKey : 'audioCues.chatResponseReceived' ,
356
360
groupId : AudioCueGroupId . chatResponseReceived
You can’t perform that action at this time.
0 commit comments