SoundAnalysisBindings constructor

SoundAnalysisBindings({
  1. AppleSoundAnalysisHostApi? host,
  2. AppleSoundAnalysisPlatformApi? platform,
  3. bool registerCallbacks = true,
})

Creates bindings; disable callback registration when driving fakes.

Implementation

SoundAnalysisBindings({
  AppleSoundAnalysisHostApi? host,
  AppleSoundAnalysisPlatformApi? platform,
  bool registerCallbacks = true,
}) : host = host ?? AppleSoundAnalysisHostApi(),
     platform = platform ?? AppleSoundAnalysisPlatformApi() {
  if (registerCallbacks) AppleSoundAnalysisCallbackApi.setUp(callbackHandler);
}