fix: bgm loop

main
tiendat3699 2024-04-25 16:29:49 +07:00
parent 5120480a87
commit 006492a8a5
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ export class SoundManager extends Singleton<SoundManager>('SoundManager') {
this._audioSourceBgm = new globalThis.Howl({
src: audio.nativeUrl,
volume: opts?.volume || 1,
loop: !!opts?.loop,
loop: opts?.loop || true,
rate: opts?.rate || 1,
mute: this._isMute,
});