mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 07:21:50 +08:00
SoundBuffer: Fix AudioContext on Safari
This commit is contained in:
parent
b6d9f29abc
commit
8932160077
@ -1,5 +1,6 @@
|
|||||||
class SoundBuffer{
|
class SoundBuffer{
|
||||||
constructor(){
|
constructor(){
|
||||||
|
var AudioContext = window.AudioContext || window.webkitAudioContext
|
||||||
this.context = new AudioContext()
|
this.context = new AudioContext()
|
||||||
pageEvents.once(window, "click").then(() => {
|
pageEvents.once(window, "click").then(() => {
|
||||||
if(this.context.state == "suspended"){
|
if(this.context.state == "suspended"){
|
||||||
|
Loading…
Reference in New Issue
Block a user