Skip to content

Commit

Permalink
Audio Output Devices API: remove duplicate "some" (#28200)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecat authored Jul 26, 2023
1 parent de76d38 commit 6eb518a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/api/audio_output_devices_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ The permission status can be queried using the [Permissions API](/en-US/docs/Web
Here's an example of using `selectAudioOutput()`, within a function that is triggered by a button click, and then setting the selected device as the audio output.

The code first checks if `selectAudioOutput()` is supported, and if it is, uses it to select an output and return a [device ID](/en-US/docs/Web/API/MediaDeviceInfo/deviceId).
We then play some some audio using the default output, and then call `setSinkId()` in order to switch to the selected output device.
We then play some audio using the default output, and then call `setSinkId()` in order to switch to the selected output device.

```js
document.querySelector("#myButton").addEventListener("click", async () => {
Expand Down

0 comments on commit 6eb518a

Please sign in to comment.