From 9918693037dce8aa4bb6f08741b6812923486c18 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 19 Jun 2024 11:26:03 +0200 Subject: Merging upstream version 1.76.0+dfsg1. Signed-off-by: Daniel Baumann --- vendor/web-sys/src/features/gen_AudioContext.rs | 59 +++++++++++++++++++++++++ 1 file changed, 59 insertions(+) (limited to 'vendor/web-sys/src/features/gen_AudioContext.rs') 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; + #[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 = ""] -- cgit v1.2.3