init method

  1. @override
Future<void> init(
  1. int periodMs
)
override

Implementation

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