You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
1.9 KiB
2 lines
1.9 KiB
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n);let u;function i(e,t,r){return(e-t)/(r-t)}!function(e){e.Timekeep="timekeep",e.AmplitudeMark="amplitude_mark"}(u||(u={}));function l(e){return Math.round(16*(e+Number.EPSILON))/16}class s extends AudioWorkletProcessor{constructor(...e){super(...e),o()(this,"nextAmplitudeSecond",0),o()(this,"amplitudeIndex",0)}process(e,t,r){const n=l(currentTime);if(n===this.nextAmplitudeSecond){const t=e[0][0],r=Math.min(...t),o=i(Math.max(...t),-1,1)-i(r,-1,1);this.port.postMessage({ev:u.AmplitudeMark,amplitude:o,forIndex:this.amplitudeIndex++}),this.nextAmplitudeSecond=l(n+1/16)}return this.port.postMessage({ev:u.Timekeep,timeSeconds:currentTime}),!0}}registerProcessor("mx-voice-worklet",s);t.default=null}]);
|
|
//# sourceMappingURL=recorder-worklet.342e864.js.map
|