@@ -52,7 +52,7 @@ extern "C" {
52
52
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
53
53
pub fn new ( init : & AudioDecoderInit ) -> Result < AudioDecoder , JsValue > ;
54
54
#[ cfg( web_sys_unstable_apis) ]
55
- # [ wasm_bindgen ( method , structural , js_class = "AudioDecoder" , js_name = close) ]
55
+ # [ wasm_bindgen ( catch , method , structural , js_class = "AudioDecoder" , js_name = close) ]
56
56
#[ doc = "The `close()` method." ]
57
57
#[ doc = "" ]
58
58
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/close)" ]
@@ -61,10 +61,10 @@ extern "C" {
61
61
#[ doc = "" ]
62
62
#[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
63
63
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
64
- pub fn close ( this : & AudioDecoder ) ;
64
+ pub fn close ( this : & AudioDecoder ) -> Result < ( ) , JsValue > ;
65
65
#[ cfg( web_sys_unstable_apis) ]
66
66
#[ cfg( feature = "AudioDecoderConfig" ) ]
67
- # [ wasm_bindgen ( method , structural , js_class = "AudioDecoder" , js_name = configure) ]
67
+ # [ wasm_bindgen ( catch , method , structural , js_class = "AudioDecoder" , js_name = configure) ]
68
68
#[ doc = "The `configure()` method." ]
69
69
#[ doc = "" ]
70
70
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/configure)" ]
@@ -73,10 +73,10 @@ extern "C" {
73
73
#[ doc = "" ]
74
74
#[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
75
75
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
76
- pub fn configure ( this : & AudioDecoder , config : & AudioDecoderConfig ) ;
76
+ pub fn configure ( this : & AudioDecoder , config : & AudioDecoderConfig ) -> Result < ( ) , JsValue > ;
77
77
#[ cfg( web_sys_unstable_apis) ]
78
78
#[ cfg( feature = "EncodedAudioChunk" ) ]
79
- # [ wasm_bindgen ( method , structural , js_class = "AudioDecoder" , js_name = decode) ]
79
+ # [ wasm_bindgen ( catch , method , structural , js_class = "AudioDecoder" , js_name = decode) ]
80
80
#[ doc = "The `decode()` method." ]
81
81
#[ doc = "" ]
82
82
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/decode)" ]
@@ -85,7 +85,7 @@ extern "C" {
85
85
#[ doc = "" ]
86
86
#[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
87
87
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
88
- pub fn decode ( this : & AudioDecoder , chunk : & EncodedAudioChunk ) ;
88
+ pub fn decode ( this : & AudioDecoder , chunk : & EncodedAudioChunk ) -> Result < ( ) , JsValue > ;
89
89
#[ cfg( web_sys_unstable_apis) ]
90
90
# [ wasm_bindgen ( method , structural , js_class = "AudioDecoder" , js_name = flush) ]
91
91
#[ doc = "The `flush()` method." ]
@@ -110,7 +110,7 @@ extern "C" {
110
110
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
111
111
pub fn is_config_supported ( config : & AudioDecoderConfig ) -> :: js_sys:: Promise ;
112
112
#[ cfg( web_sys_unstable_apis) ]
113
- # [ wasm_bindgen ( method , structural , js_class = "AudioDecoder" , js_name = reset) ]
113
+ # [ wasm_bindgen ( catch , method , structural , js_class = "AudioDecoder" , js_name = reset) ]
114
114
#[ doc = "The `reset()` method." ]
115
115
#[ doc = "" ]
116
116
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/reset)" ]
@@ -119,5 +119,5 @@ extern "C" {
119
119
#[ doc = "" ]
120
120
#[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
121
121
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
122
- pub fn reset ( this : & AudioDecoder ) ;
122
+ pub fn reset ( this : & AudioDecoder ) -> Result < ( ) , JsValue > ;
123
123
}
0 commit comments