@override Future<void> init(int periodMs) async { if (state != EngineState.uninit) { throw MinisoundPlatformException("cannot init engine"); } state = EngineState.init; }