大网数据广告活动
Web 标准与前端开发

AudioWorkletProcessor: parameterDescriptors static property

· 52CE 我爱测

The **`parameterDescriptors`** static property of an AudioWorkletProcessor-derived class is an iterable of AudioParamDescriptor-based objects.

Web Audio API

The parameterDescriptors static property of an AudioWorkletProcessor-derived class is an iterable of AudioParamDescriptor-based objects.

The property is not a part of the AudioWorkletProcessor interface, but, if defined, it is read by AudioWorkletGlobalScope.registerProcessor to create a list of custom AudioParam objects in the AudioWorkletNode.parameters property of the associated AudioWorkletNode. It is never modified by built-in APIs, so it may be defined as a static getter.

Defining the property is optional.

Value

An iterable of AudioParamDescriptor-based objects. The properties of these objects are as follows:

  • name
    • : The string which represents the name of the AudioParam. Under this name the AudioParam will be available in the AudioWorkletNode.parameters property of the node, and under this name the AudioWorkletProcessor.process method will acquire the calculated values of this AudioParam.
  • automationRate
    • : Either "a-rate", or "k-rate" string which represents an automation rate of this AudioParam. Defaults to "a-rate".
  • minValue
    • : A float which represents minimum value of the AudioParam. Defaults to -3.4028235e38.
  • maxValue
    • : A float which represents maximum value of the AudioParam. Defaults to 3.4028235e38.
  • defaultValue
    • : A float which represents initial value of the AudioParam. Defaults to 0.

Examples

See AudioWorkletNode.parameters for example code showing how to add static parameterDescriptors getter to a custom AudioWorkletProcessor.

Specifications

See also

来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。

资料来源与适用范围

资料来源
MDN Web Docs / Mozilla 贡献者
适用范围
请按文中版本与环境说明核对
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 2.5

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。