CsoundWeb constructor

CsoundWeb({
  1. Function? onReady,
})

Implementation

CsoundWeb({Function? onReady}) {
  if(onReady != null) {
    onReadyCallback = onReady;
  }
  initializeCsound().then((value) {
    resumeAudioState();
    _csound = CsoundJsDart();
  });
}