mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:04:14 +08:00
enable audio cues to be played in parallel when playAudioCues is called (#173326)
fix #172523
This commit is contained in:
parent
6cb34eb223
commit
3e43792fb9
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user