lib/cracked/cracked.js
/**
* asynchronously fetches a file for the buffer and returns an arraybuffer
* @function
* @private
*/
asynchronously fetches a file for the buffer and returns an arraybuffer
asynchronously fetches a file for the buffer and returns an arraybuffer
function fetchSoundFile(path, callback) {
    if (path && callback) {
        var request = new XMLHttpRequest();
        request.open("GET", path, true); 
        request.responseType = "arraybuffer"; 
        request.onload = function () {
            if (__.isFun(callback)) {
                callback(request.response);
            }
        };
        request.send();
    }
}
function fetchSoundFile ( path , callback ) { if ( path && callback ) { var request = new XMLHttpRequest ( ) ; request . open ( "GET" , path , true ) ; request . responseType = "arraybuffer" ; request . onload = function ( ) { if ( __ . isFun ( callback ) ) { callback ( request . response ) ; } } ; request . send ( ) ; } }
asynchronously fetches a file for the buffer and returns an arraybuffer
asynchronously fetches a file for the buffer and returns an arraybuffer
// Path to Audio File // Read as Binary Data