Skip to content

Commit

Permalink
enable audio cues to be played in parallel when playAudioCues is ca…
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge authored and c-claeys committed Feb 16, 2023
1 parent 1f38626 commit 5a495c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/platform/audioCues/browser/audioCueService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class AudioCueService extends Disposable implements IAudioCueService {
public async playAudioCues(cues: AudioCue[]): Promise<void> {
// 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 {
Expand Down

0 comments on commit 5a495c6

Please sign in to comment.