Skip to content

Commit 8558d22

Browse files
committed
missing_webaudio opwarning
1 parent f91e439 commit 8558d22

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

shared/api/utils/shared_ops_util.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,18 @@ export default class SharedOpsUtil extends SharedUtil
718718
"text": "use `op.log`, not `console.log` "
719719
});
720720

721+
if (code.includes("CABLES.WEBAUDIO"))
722+
{
723+
if (!info.coreLibs || !info.coreLibs.includes("webaudio"))
724+
{
725+
srcWarnings.push({
726+
"type": "corelibs",
727+
"id": "missing_webaudio",
728+
"text": "op uses CABLES.WEBAUDIO, add webaudio corelib"
729+
});
730+
}
731+
}
732+
721733
if (code.includes("patch.cgl") || code.includes("CGL."))
722734
{
723735
if (!info.coreLibs || !info.coreLibs.includes("cgl"))

0 commit comments

Comments
 (0)