feat(audio): implement phase 3c master protection

This commit is contained in:
2026-09-05 20:45:47 -07:00
parent 249328e595
commit 90fcbbe467
21 changed files with 6732 additions and 71 deletions
+10
View File
@@ -0,0 +1,10 @@
// Recording tests inject this explicitly. Production never substitutes a gain for
// protection when AudioWorklet is missing; DSP tests execute the real processor.
export const fakeProtectionFactory = {
async load() {},
create(context) {
const node = context.createGain();
node.port = { onmessage: null, postMessage() {}, close() {} };
return node;
}
};