Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AudioParam 的简中翻译和英文不符合 #28184

Closed
Isuxiz opened this issue Jul 26, 2023 · 0 comments
Closed

AudioParam 的简中翻译和英文不符合 #28184

Isuxiz opened this issue Jul 26, 2023 · 0 comments
Labels
to move If the issue doesn't belong in Content but elsewhere in the MDN org

Comments

@Isuxiz
Copy link

Isuxiz commented Jul 26, 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.

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)
 */
interface AudioParam {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/automationRate) */
    automationRate: AutomationRate;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue) */
    readonly defaultValue: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/maxValue) */
    readonly maxValue: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/minValue) */
    readonly minValue: 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)
 */
interface GainNode extends AudioNode {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode/gain) */
    readonly gain: AudioParam;
}

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
@Isuxiz Isuxiz added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jul 26, 2023
@github-actions github-actions bot added the Content:WebAPI Web API docs label Jul 26, 2023
@Isuxiz Isuxiz closed this as not planned Won't fix, can't repro, duplicate, stale Jul 26, 2023
@Josh-Cena 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
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
to move If the issue doesn't belong in Content but elsewhere in the MDN org
Projects
None yet
Development

No branches or pull requests

2 participants