From 3e43792fb9f4d9ff7b07df0be38f7405faec43f2 Mon Sep 17 00:00:00 2001 From: Megan Rogge Date: Fri, 3 Feb 2023 11:23:12 -0600 Subject: [PATCH] enable audio cues to be played in parallel when `playAudioCues` is called (#173326) fix #172523 --- src/vs/platform/audioCues/browser/audioCueService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/platform/audioCues/browser/audioCueService.ts b/src/vs/platform/audioCues/browser/audioCueService.ts index f0f5c0345d6..fa212de0883 100644 --- a/src/vs/platform/audioCues/browser/audioCueService.ts +++ b/src/vs/platform/audioCues/browser/audioCueService.ts @@ -48,7 +48,7 @@ export class AudioCueService extends Disposable implements IAudioCueService { public async playAudioCues(cues: AudioCue[]): Promise { // Some audio cues might reuse sounds. Don't play the same sound twice. const sounds = new Set(cues.filter(cue => this.isEnabled(cue)).map(cue => cue.sound)); - await Promise.all(Array.from(sounds).map(sound => this.playSound(sound))); + await Promise.all(Array.from(sounds).map(sound => this.playSound(sound, true))); } private getVolumeInPercent(): number {