Skip to content
Snippets Groups Projects
Commit 70587a3f authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Use StartAudioContext to fix mobile safari audio contexts

parent 59968ba0
No related branches found
No related tags found
No related merge requests found
import StartAudioContext from 'startaudiocontext';
const AUDIO_CONTEXT = new (window.AudioContext || window.webkitAudioContext)();
StartAudioContext(AUDIO_CONTEXT);
/**
* Wrap browser AudioContext because we shouldn't create more than one
* @return {AudioContext} The singleton AudioContext
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment