blob: 27e1da6325206124c85ba72a55db05ad8e6a9e41 [file] [log] [blame]
/**
* @class OptionTestProcessor
* @extends AudioWorkletProcessor
*
* This processor class demonstrates the option passing feature by echoing the
* received |nodeOptions| back to the node.
*/
class OptionTestProcessor extends AudioWorkletProcessor {
constructor(nodeOptions) {
super();
this.port.postMessage(nodeOptions);
}
process() {
return true;
}
}
registerProcessor('option-test-processor', OptionTestProcessor);