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