summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_AudioContext.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:26:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:26:03 +0000
commit9918693037dce8aa4bb6f08741b6812923486c18 (patch)
tree21d2b40bec7e6a7ea664acee056eb3d08e15a1cf /vendor/web-sys/src/features/gen_AudioContext.rs
parentReleasing progress-linux version 1.75.0+dfsg1-5~progress7.99u1. (diff)
downloadrustc-9918693037dce8aa4bb6f08741b6812923486c18.tar.xz
rustc-9918693037dce8aa4bb6f08741b6812923486c18.zip
Merging upstream version 1.76.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/src/features/gen_AudioContext.rs')
-rw-r--r--vendor/web-sys/src/features/gen_AudioContext.rs59
1 files changed, 59 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_AudioContext.rs b/vendor/web-sys/src/features/gen_AudioContext.rs
index 313a03d5f..4ebd6dd11 100644
--- a/vendor/web-sys/src/features/gen_AudioContext.rs
+++ b/vendor/web-sys/src/features/gen_AudioContext.rs
@@ -12,6 +12,39 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
pub type AudioContext;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = sinkId)]
+ #[doc = "Getter for the `sinkId` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/sinkId)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn sink_id(this: &AudioContext) -> ::wasm_bindgen::JsValue;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = onsinkchange)]
+ #[doc = "Getter for the `onsinkchange` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/onsinkchange)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn onsinkchange(this: &AudioContext) -> Option<::js_sys::Function>;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (structural , method , setter , js_class = "AudioContext" , js_name = onsinkchange)]
+ #[doc = "Setter for the `onsinkchange` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/onsinkchange)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn set_onsinkchange(this: &AudioContext, value: Option<&::js_sys::Function>);
#[cfg(feature = "AudioDestinationNode")]
# [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = destination)]
#[doc = "Getter for the `destination` field of this object."]
@@ -128,6 +161,32 @@ extern "C" {
this: &AudioContext,
media_stream: &MediaStream,
) -> Result<MediaStreamAudioSourceNode, JsValue>;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (method , structural , js_class = "AudioContext" , js_name = setSinkId)]
+ #[doc = "The `setSinkId()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/setSinkId)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn set_sink_id_with_str(this: &AudioContext, sink_id: &str) -> ::js_sys::Promise;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "AudioSinkOptions")]
+ # [wasm_bindgen (method , structural , js_class = "AudioContext" , js_name = setSinkId)]
+ #[doc = "The `setSinkId()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/setSinkId)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioSinkOptions`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn set_sink_id_with_audio_sink_options(
+ this: &AudioContext,
+ sink_id: &AudioSinkOptions,
+ ) -> ::js_sys::Promise;
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = suspend)]
#[doc = "The `suspend()` method."]
#[doc = ""]