Skip to content

Commit

Permalink
fix: set initial volume
Browse files Browse the repository at this point in the history
  • Loading branch information
yu-ogi committed Jul 16, 2024
1 parent 88025ed commit 5c4045f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugin/HTMLAudioPlugin/HTMLAudioPlayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5c4045f

Please sign in to comment.