loov / jsfx

Javascript Sound Effect Generator
MIT License
576 stars 49 forks source link

can use webkitAudioContext (for Safari) #17

Closed mtmckenna closed 7 years ago

mtmckenna commented 7 years ago

Hello!

For desktop and mobile Safari, it looks like we still need to use webKitAudioContext instead of AudioContext. I added a line to prefer AudioContext but fall back to webkitAudioContext if need be.

Does this look all right to you? Thank you!