init method

Future<void> init([
  1. int periodMs = 10
])

Initializes the engine.

periodMs - affects sounds latency (lower period means lower latency but possibble crackles). Must be greater than zero. Ignored on the web.

Implementation

Future<void> init([int periodMs = 10]) async {
  assert(periodMs > 0);

  if (_isInit) return;

  _isInit = true;
  await _engine.init(periodMs);
}