disposeSynth method
Implementation
@override
Future<void> disposeSynth(String synthId) async {
await cancelScheduledNotes(synthId: synthId);
final synth = _synths.remove(synthId);
if (synth == null) {
return;
}
synth.synth.callMethod<JSAny?>('dispose'.toJS);
synth.gain.callMethod<JSAny?>('dispose'.toJS);
synth.filter?.callMethod<JSAny?>('dispose'.toJS);
}