Ejemplo n.º 1
0
 /// <summary>
 /// Helper function to determine whether a particular codec is installed
 /// </summary>
 /// <param name="shortName">The short name of the function</param>
 /// <returns>Whether the codec is installed</returns>
 public static bool IsCodecInstalled(string shortName)
 {
     foreach (AcmDriver driver in AcmDriver.EnumerateAcmDrivers())
     {
         if (driver.ShortName == shortName)
         {
             return(true);
         }
     }
     return(false);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Finds a Driver by its short name
 /// </summary>
 /// <param name="shortName">Short Name</param>
 /// <returns>The driver, or null if not found</returns>
 public static AcmDriver FindByShortName(string shortName)
 {
     foreach (AcmDriver driver in AcmDriver.EnumerateAcmDrivers())
     {
         if (driver.ShortName == shortName)
         {
             return(driver);
         }
     }
     return(null);
 }