init method

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

Initializes the engine.

periodMs - affects sounds latency (lower period means lower latency but possibble crackles). Clamped between 1 and 1000 (1s). Probably has no effect on the web.

Implementation

Future<void> init([int periodMs = 32]) =>
    _engine.init(periodMs.clamp(1, 1000));