mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-12 14:20:14 +02:00
Differential Revision: https://phabricator.services.mozilla.com/D6368 --HG-- extra : moz-landing-system : lando
12 lines
414 B
JavaScript
12 lines
414 B
JavaScript
class DummyProcessWorkletProcessor extends AudioWorkletProcessor {
|
|
constructor() { super(); }
|
|
|
|
process() {
|
|
// Do nothing, output silence
|
|
}
|
|
}
|
|
|
|
// We need to pass a valid AudioWorkletProcessor here, otherwise, it will fail,
|
|
// and the console.log won't be executed
|
|
registerProcessor("sure!", DummyProcessWorkletProcessor);
|
|
console.log(this instanceof AudioWorkletGlobalScope ? "So far so good" : "error");
|