MCPcopy Create free account
hub / github.com/csound/csound / isScriptProcessorNodeSupported

Function isScriptProcessorNodeSupported

wasm/browser/src/utils.js:35–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33};
34
35export const isScriptProcessorNodeSupported = () => {
36 const audioContext = WebkitAudioContext();
37 return (
38 typeof audioContext !== "undefined" &&
39 typeof audioContext.prototype.createScriptProcessor !== "undefined"
40 );
41};
42
43export const csoundApiRename = (apiName) => {
44 let minusCsound = apiName.replace(/^csound/i, "");

Callers 1

CsoundFunction · 0.90

Calls 1

WebkitAudioContextFunction · 0.70

Tested by

no test coverage detected