/* jshint browser: true */ /* global $ */ function putPreview (arrayBuf) { var arrayBufView = new Uint8Array(arrayBuf) var blob = new Blob([arrayBufView.buffer], { type: "audio/ogg" }) console.log(blob) var url = URL.createObjectURL(blob); var au = document.createElement('audio'); //name of .wav file to use during upload and download (without extendion) var filename = new Date().toISOString(); //add controls to the