diff options
Diffstat (limited to 'frontend/app/.client/audio/AudioController.ts')
| -rw-r--r-- | frontend/app/.client/audio/AudioController.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/frontend/app/.client/audio/AudioController.ts b/frontend/app/.client/audio/AudioController.ts index 6ed6180..296f685 100644 --- a/frontend/app/.client/audio/AudioController.ts +++ b/frontend/app/.client/audio/AudioController.ts @@ -51,6 +51,17 @@ export class AudioController { }); } + async playDummySoundEffect(): Promise<void> { + const audio = this.audioElements["good_1"]; + if (!audio) { + return; + } + audio.muted = true; + audio.currentTime = 0; + await audio.play(); + audio.muted = false; + } + async playSoundEffect(soundEffect: SoundEffect): Promise<void> { const audio = this.audioElements[soundEffect]; if (!audio) { |
