Skip to content

Commit 016a3fd

Browse files
authored
Merge pull request microsoft#181042 from microsoft/merogge/playTime
for cached audio cues, reset `currentTime` to 0
2 parents 2d28a86 + 5e32d30 commit 016a3fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export class AudioCueService extends Disposable implements IAudioCueService {
7474
const sound = this.sounds.get(url);
7575
if (sound) {
7676
sound.volume = this.getVolumeInPercent() / 100;
77+
sound.currentTime = 0;
7778
await sound.play();
7879
} else {
7980
const playedSound = await playAudio(url, this.getVolumeInPercent() / 100);

0 commit comments

Comments
 (0)