var a=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])),o=async(r,s)=>await(await fetch(r,s)).arrayBuffer(),c=async({url:r,simdUrl:s},e)=>{const t=await a()?s:r;return await o(t,e)},n="@sapphi-red/web-noise-suppressor/rnnoise",d=class extends AudioWorkletNode{constructor(r,{maxChannels:s,wasmBinary:e}){const t={processorOptions:{maxChannels:s,wasmBinary:e}};super(r,n,t)}destroy(){this.port.postMessage("destroy")}};export{d as RnnoiseWorkletNode,c as loadRnnoise};
