-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
chore(api): Make macros with line breaks span a single line only #32510
Changes from 2 commits
63f8460
b293776
3375f03
5ba1a47
407cd40
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -13,8 +13,7 @@ Interface is used to create a new {{ domxref("MediaStreamAudioSourceNode") }} | |||||
object, given a media stream (say, from a {{ domxref("MediaDevices.getUserMedia") }} | ||||||
instance), the audio from which can then be played and manipulated. | ||||||
|
||||||
For more details about media stream audio source nodes, check out the {{ | ||||||
domxref("MediaStreamAudioSourceNode") }} reference page. | ||||||
For more details about media stream audio source nodes, check out the {{domxref("MediaStreamAudioSourceNode")}} reference page. | ||||||
|
||||||
## Syntax | ||||||
|
||||||
|
@@ -35,11 +34,9 @@ whose media is obtained from the specified source stream. | |||||
|
||||||
## Examples | ||||||
|
||||||
In this example, we grab a media (audio + video) stream from {{ | ||||||
domxref("navigator.getUserMedia") }}, feed the media into a {{ htmlelement("video") }} | ||||||
element to play then mute the audio, but then also feed the audio into a {{ | ||||||
domxref("MediaStreamAudioSourceNode") }}. Next, we feed this source audio into a low | ||||||
pass {{ domxref("BiquadFilterNode") }} (which effectively serves as a bass booster), | ||||||
In this example, we grab a media (audio + video) stream from {{domxref("navigator.getUserMedia")}}, feed the media into a {{htmlelement("video")}} | ||||||
element to play then mute the audio, but then also feed the audio into a {{domxref("MediaStreamAudioSourceNode")}}. | ||||||
Next, we feed this source audio into a low pass {{ domxref("BiquadFilterNode") }} (which effectively serves as a bass booster), | ||||||
then a {{domxref("AudioDestinationNode") }}. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
The range slider below the {{ htmlelement("video") }} element controls the amount of | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -10,8 +10,7 @@ browser-compat: api.BaseAudioContext.createBuffer | |||||
|
||||||
The `createBuffer()` method of the {{ domxref("BaseAudioContext") }} | ||||||
Interface is used to create a new, empty {{ domxref("AudioBuffer") }} object, which | ||||||
can then be populated by data, and played via an {{ domxref("AudioBufferSourceNode") | ||||||
}} | ||||||
can then be populated by data, and played via an {{ domxref("AudioBufferSourceNode")}}. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
For more details about audio buffers, check out the {{ domxref("AudioBuffer") }} | ||||||
reference page. | ||||||
|
@@ -93,8 +92,7 @@ on an `AudioContext` running at 44100Hz, will be automatically \*resampled\* to | |||||
> reproduce high frequency content (treble sound). | ||||||
|
||||||
Now let's look at a more complex `createBuffer()` example, in which we | ||||||
create a three-second buffer, fill it with white noise, and then play it via an {{ | ||||||
domxref("AudioBufferSourceNode") }}. The comment should clearly explain what is going | ||||||
create a three-second buffer, fill it with white noise, and then play it via an {{domxref("AudioBufferSourceNode")}}. The comment should clearly explain what is going | ||||||
on. You can also [run the code live](https://mdn.github.io/webaudio-examples/audio-buffer/), or [view the source](https://github.com/mdn/webaudio-examples/blob/main/audio-buffer/index.html). | ||||||
|
||||||
```js | ||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -10,8 +10,8 @@ browser-compat: api.BaseAudioContext.createBufferSource | |||||||||
|
||||||||||
The `createBufferSource()` method of the {{ domxref("BaseAudioContext") }} | ||||||||||
Interface is used to create a new {{ domxref("AudioBufferSourceNode") }}, which can be | ||||||||||
used to play audio data contained within an {{ domxref("AudioBuffer") }} object. {{ | ||||||||||
domxref("AudioBuffer") }}s are created using | ||||||||||
used to play audio data contained within an {{ domxref("AudioBuffer") }} object. | ||||||||||
{{domxref("AudioBuffer") }}s are created using | ||||||||||
Comment on lines
+13
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
{{domxref("BaseAudioContext.createBuffer")}} or returned by | ||||||||||
{{domxref("BaseAudioContext.decodeAudioData")}} when it successfully decodes an audio | ||||||||||
track. | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -8,8 +8,7 @@ browser-compat: api.BiquadFilterNode.getFrequencyResponse | |||||
|
||||||
{{ APIRef("Web Audio API") }} | ||||||
|
||||||
The `getFrequencyResponse()` method of the {{ domxref("BiquadFilterNode") | ||||||
}} interface takes the current filtering algorithm's settings and calculates the | ||||||
The `getFrequencyResponse()` method of the {{ domxref("BiquadFilterNode")}} interface takes the current filtering algorithm's settings and calculates the | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
frequency response for frequencies specified in a specified array of frequencies. | ||||||
|
||||||
The two output arrays, `magResponseOutput` and | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.