public static void Load(IServiceProvider services) { if (IsAudioSupported) { _legacyPlayer = new LegacySoundPlayer(services); _player = new SoundPlayer(); } }
public static void Load(IServiceProvider services) { if (!SoundEngine.IsAudioSupported) { return; } SoundEngine._legacyPlayer = new LegacySoundPlayer(services); SoundEngine._player = new SoundPlayer(); }