Skip to content

[worklets] Post-resolution tasks for addModule() call #418

Open
@hoch

Description

@hoch

In AudioWorklet, we (AudioWG) are going to have this step when the addModule() call gets resolved:

... this internal storage is populated from node name to processor definition map by extracting a node name and the matching value from parameterDescriptors when a promise from addModule() on the Worklet gets resolved.

The step should happen on the main thread, mainly to keep a "thread-specific" copy of necessary information for the construction of worklet-related objects. It is valid to have multiple WorkletGlobalScopes with AudioWorklet, so this post-resolution step is useful when synchronizing all instances of WorkletGlobalScopes and associated main thread proxy objects (e.g. BaseAudioContext).

I believe having the spec text that describes this step would be actually clear and useful. Is this something planned? If not, what's the best path to introduce this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions