/* jshint browser: true */ /* global $ */ /** * * @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3 */ 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