Closed hoch closed 8 years ago
F2F: Agreed. Need to define IDL for event on processing side.
I addressed the issue by splitting the definition into two sides: AudioWorkletNode
and AudioWorkletProcessor
.
Closing as discussed on call 14 July 2016
IDL
This method posts a message from the main thread to
AudioWorkletNode
triggeringonmessage
event for the target node.message
is processed by structured cloning algorithm.Examples
We can use the same messaging pattern with Worker.
AudioWorklet
class definition can utilizeonmessage
event handler andpostMessage()
method to set up the messaging path.Likewise, the
postMessage()
method and theonmessage
handler on anAudioWorkletNode
can be used to match the counterpart from the audio thread.