src/webaudio.js
/**
     * Decode an array buffer and pass data to a callback
     *
     * @private
     * @param {ArrayBuffer} arraybuffer The array buffer to decode
     * @param {function} callback The function to call on complete.
     * @param {function} errback The function to call on error.
     */
Decode an array buffer and pass data to a callback
@private
@param {ArrayBuffer} arraybuffer The array buffer to decode
@param {function} callback The function to call on complete.
@param {function} errback The function to call on error.
Decode an array buffer and pass data to a callback @private @param { ArrayBuffer } arraybuffer The array buffer to decode @param { function } callback The function to call on complete . @param { function } errback The function to call on error .
decodeArrayBuffer(arraybuffer, callback, errback) {
        if (!this.offlineAc) {
            this.offlineAc = this.getOfflineAudioContext(
                this.ac && this.ac.sampleRate ? this.ac.sampleRate : 44100
            );
        }
        this.offlineAc.decodeAudioData(
            arraybuffer,
            data => callback(data),
            errback
        );
    }
decodeArrayBuffer ( arraybuffer , callback , errback ) { if ( ! this . offlineAc ) { this . offlineAc = this . getOfflineAudioContext ( this . ac && this . ac . sampleRate ? this . ac . sampleRate : 44100 ) ; } this . offlineAc . decodeAudioData ( arraybuffer , data => callback ( data ) , errback ) ; }
Decode an array buffer and pass data to a callback
 @private
 @param {ArrayBuffer} arraybuffer The array buffer to decode
 @param {function} callback The function to call on complete.
Decode an array buffer and pass data to a callback @private @param { ArrayBuffer } arraybuffer The array buffer to decode @param { function } callback The function to call on complete .