From 5c4045fe4ae885fd23399102f0c3c5cb0c77e545 Mon Sep 17 00:00:00 2001 From: yu-ogi Date: Tue, 16 Jul 2024 17:38:13 +0900 Subject: [PATCH] fix: set initial volume --- src/plugin/HTMLAudioPlugin/HTMLAudioPlayer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugin/HTMLAudioPlugin/HTMLAudioPlayer.ts b/src/plugin/HTMLAudioPlugin/HTMLAudioPlayer.ts index 15368c3..03b6d49 100644 --- a/src/plugin/HTMLAudioPlugin/HTMLAudioPlayer.ts +++ b/src/plugin/HTMLAudioPlugin/HTMLAudioPlayer.ts @@ -34,6 +34,7 @@ export class HTMLAudioPlayer extends AudioPlayer { loop: !!asset.loop, loopOffset: asset.loopOffset ?? 0, }); + player.setVolume(this._calculateVolume()); player.onStop.add(this.stop, this); player.play(); this._player = player;