summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_AudioContext.rs
diff options
context:
space:
mode:
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 = ""]