const AudioContext = window.AudioContext || window.webkitAudioContext;
/**
* Expose a unique audio context singleton as the default audio
* context used by the components of the Waves Audio library and
* applications using the library.
*
* @type AudioContext
* @name audioContext
* @constant
* @global
* @instance
*
* @example
* import * as audio from 'waves-audio';
* const audioContext = audio.audioContext;
*/
let audioContext = null;
if (AudioContext)
audioContext = new AudioContext();
export default audioContext;