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