mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-07-12 19:11:32 +00:00
examples(webaudio): allow turning the noise off again
This commit is contained in:
examples/webaudio
@ -36,6 +36,12 @@ pub struct FmOsc {
|
||||
fm_gain_ratio: f32,
|
||||
}
|
||||
|
||||
impl Drop for FmOsc {
|
||||
fn drop(&mut self) {
|
||||
let _ = self.ctx.close();
|
||||
}
|
||||
}
|
||||
|
||||
#[wasm_bindgen]
|
||||
impl FmOsc {
|
||||
#[wasm_bindgen(constructor)]
|
||||
|
Reference in New Issue
Block a user