Commit 89321600 authored by LoveEevee's avatar LoveEevee

SoundBuffer: Fix AudioContext on Safari

parent b6d9f29a
class SoundBuffer{
constructor(){
var AudioContext = window.AudioContext || window.webkitAudioContext
this.context = new AudioContext()
pageEvents.once(window, "click").then(() => {
if(this.context.state == "suspended"){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment