initialize method

Future<bool> initialize()

Initialize the SoLoud engine. Safe to call multiple times.

Implementation

Future<bool> initialize() async {
  if (_isInitialized) return true;
  try {
    await _soloud.init();
    _isInitialized = true;
    AppConfig.logger.d('SoLoud engine initialized');
    return true;
  } catch (e, st) {
    NeomErrorLogger.recordError(e, st, module: 'neom_sound', operation: 'initialize');
    return false;
  }
}