summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/webidls/unstable/AudioContext.webidl
blob: df2f85bcb31d8d81e2f2c6de6be012a448e98951 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
};