-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extend AudioContext webidl for output sink
* added unstable AudioContext partial with audio sink types * unrelated to sink, but I also added latencyHint to AudioContextOptions as it's stable
- Loading branch information
1 parent
15ca11b
commit cc6d2bf
Showing
3 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
enum AudioSinkType { | ||
"none" | ||
}; | ||
|
||
dictionary AudioSinkOptions { | ||
required AudioSinkType type; | ||
}; | ||
|
||
partial dictionary AudioContextOptions { | ||
(DOMString or AudioSinkOptions) sinkId; | ||
}; | ||
|
||
partial interface AudioContext { | ||
[SecureContext] readonly attribute (DOMString or AudioSinkInfo) sinkId; | ||
|
||
[SecureContext] Promise<undefined> setSinkId ((DOMString or AudioSinkOptions) sinkId); | ||
attribute EventHandler onsinkchange; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[Exposed=Window] | ||
interface AudioSinkInfo { | ||
readonly attribute AudioSinkType type; | ||
}; |