Skip to content

Commit

Permalink
fix: 对战过程偶现卡死
Browse files Browse the repository at this point in the history
  • Loading branch information
arleyGuoLei committed Sep 25, 2022
1 parent 72bd7cf commit 31c385c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion miniprogram/pages/combat/components/pkScene/pkScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ App.Component({
},

initBgm () {
bgm = wx.createInnerAudioContext()
bgm = wx.createInnerAudioContext({ useWebAudioImplement: true })
bgm.loop = true
bgm.autoplay = false
bgm.src = store.$state.appConfig.backgroundMusicUrl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ App.Component({
},
methods: {
initBgm () {
bgm = wx.createInnerAudioContext()
bgm = wx.createInnerAudioContext({ useWebAudioImplement: true })
bgm.loop = true
bgm.autoplay = false
bgm.src = store.$state.appConfig.backgroundMusicUrl
Expand Down

0 comments on commit 31c385c

Please sign in to comment.