init method

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

Initializes an engine.

Change an update period (affects the sound latency).

Implementation

Future<void> init([int periodMs = 10]) async {
  if (_isInit) return;

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