-
Notifications
You must be signed in to change notification settings - Fork 19
/
audioTest.js.map
1 lines (1 loc) · 1.7 KB
/
audioTest.js.map
1
{"version":3,"file":"audioTest.js","sourceRoot":"","sources":["../src/audioTest.ts"],"names":[],"mappings":";;AAAA,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;AACtB,mCAAmC;AAGnC,sDAAsD;AACtD,SAAS,SAAS,CAAC,MAAM;IACzB,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAC,MAAM,CAAC,CAAA;IACxB,yEAAyE;IACzE,IAAI,YAAY,GAAgB,IAAI,YAAY,EAAE,CAAC;IAEnD,uCAAuC;IACvC,IAAI,iBAAiB,GAAG,YAAY,CAAC,uBAAuB,CAAE,MAAM,CAAE,CAAC;IAEvE,qFAAqF;IACrF,iBAAiB,CAAC,OAAO,CAAE,YAAY,CAAC,WAAW,CAAE,CAAC;IAC1D,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;IACxB,UAAU,CAAC;QACT,iBAAiB,CAAC,UAAU,EAAE,CAAA;IAChC,CAAC,EAAE,KAAK,CAAC,CAAA;AACT,CAAC;AAED,kFAAkF;AAClF,SAAS,CAAC,YAAY,CACpB,EAAC,KAAK,EAAC,IAAI,EAAC,EACZ,SAAS,EACT,UAAA,CAAC,IAAG,OAAO,CAAC,GAAG,CAAC,GAAG,EAAC,CAAC,CAAC,CAAA,CAAA,CAAC,CACxB,CAAC;AAEW,QAAA,CAAC,GAAC,CAAC,CAAA;AAEhB,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA","sourcesContent":["console.log(\"loading\")\n//stream.getAudioTracks()[0].stop()\n\n\n// success callback when requesting audio input stream\nfunction gotStream(stream) {\nconsole.log(\"stream\",stream)\n //window.AudioContext = window.AudioContext || window.webkitAudioContext;\n var audioContext:AudioContext = new AudioContext();\n\n // Create an AudioNode from the stream.\n var mediaStreamSource = audioContext.createMediaStreamSource( stream );\n\n // Connect it to the destination to hear yourself (or any other node for processing!)\n mediaStreamSource.connect( audioContext.destination );\nconsole.log(\"connected\")\nsetTimeout(()=>{\n mediaStreamSource.disconnect()\n}, 10000)\n}\n\n//navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia;\nnavigator.getUserMedia(\n {audio:true},\n gotStream, \n e=>{console.log('e',e)}\n);\n\nexport const a=1\n\nconsole.log(\"loaded\")"]}