You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm sorry that I made a mistake where to submit the translation document issue. I have already submitted this issue in the git repository over there. Sorry again.
What specific section or headline is this issue about?
属性
What information was incorrect, unhelpful, or incomplete?
This is a Simplified Chinese document translation issue.
AudioParam 继承的属性来自于它的父类, AudioNode。
这句话在英文原版没有, 检查 ts 官方的 dom 类型定义文件(lib.dom.d.ts)也会发现这两个类的关系是组合而不是继承:
/** * The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam) */interfaceAudioParam{/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/automationRate) */automationRate: AutomationRate;/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue) */readonlydefaultValue: number;/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/maxValue) */readonlymaxValue: number;/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/minValue) */readonlyminValue: number;/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/value) */value: number;/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelAndHoldAtTime) */cancelAndHoldAtTime(cancelTime: number): AudioParam;/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelScheduledValues) */cancelScheduledValues(cancelTime: number): AudioParam;/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/exponentialRampToValueAtTime) */exponentialRampToValueAtTime(value: number,endTime: number): AudioParam;/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/linearRampToValueAtTime) */linearRampToValueAtTime(value: number,endTime: number): AudioParam;/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setTargetAtTime) */setTargetAtTime(target: number,startTime: number,timeConstant: number): AudioParam;/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueAtTime) */setValueAtTime(value: number,startTime: number): AudioParam;/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */setValueCurveAtTime(values: number[]|Float32Array,startTime: number,duration: number): AudioParam;}// 以 GainNode 为例:/** * A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode) */interfaceGainNodeextendsAudioNode{/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode/gain) */readonlygain: AudioParam;}
What did you expect to see?
删除错误表述
Do you have any supporting links, references, or citations?
Josh-Cena
added
to move
If the issue doesn't belong in Content but elsewhere in the MDN org
and removed
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Content:WebAPI
Web API docs
labels
Sep 30, 2023
EDIT:
I'm sorry that I made a mistake where to submit the translation document issue. I have already submitted this issue in the git repository over there. Sorry again.
MDN URL
https://developer.mozilla.org/zh-CN/docs/Web/API/AudioParam
What specific section or headline is this issue about?
属性
What information was incorrect, unhelpful, or incomplete?
This is a Simplified Chinese document translation issue.
这句话在英文原版没有, 检查 ts 官方的 dom 类型定义文件(
lib.dom.d.ts
)也会发现这两个类的关系是组合而不是继承:What did you expect to see?
删除错误表述
Do you have any supporting links, references, or citations?
英文doc:
https://developer.mozilla.org/en-US/docs/Web/API/AudioParam
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/api/audioparam
The text was updated successfully, but these errors were encountered: