lib/cracked/cracked.js
/**
* helper function for buffer & reverb
* @function
* @private
*/
helper function for buffer & reverb
helper function for buffer & reverb
function loadBufferFromFile(path_to_soundfile, buffersrc) {
    if (path_to_soundfile && buffersrc) {
        fetchSoundFile(path_to_soundfile, function (sndArray) {
            _context.decodeAudioData(sndArray, function (buf) {
                buffersrc.buffer = buf;
                logToConsole("sound loaded");
            }, function (e) {
                logToConsole("Couldn't load audio");
            });
        });
    }
}
function loadBufferFromFile ( path_to_soundfile , buffersrc ) { if ( path_to_soundfile && buffersrc ) { fetchSoundFile ( path_to_soundfile , function ( sndArray ) { _context . decodeAudioData ( sndArray , function ( buf ) { buffersrc . buffer = buf ; logToConsole ( "sound loaded" ) ; } , function ( e ) { logToConsole ( "Couldn't load audio" ) ; } ) ; } ) ; } }
helper function for buffer & reverb
helper function for buffer & reverb