mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 20:41:24 +00:00
examples(webaudio): allow turning the noise off again
This commit is contained in:
@ -9,6 +9,9 @@ import('./webaudio').then(rust_module => {
|
||||
fm.set_fm_frequency(0);
|
||||
fm.set_fm_amount(0);
|
||||
fm.set_gain(0.8);
|
||||
} else {
|
||||
fm.free();
|
||||
fm = null;
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user