Class WindowsSoundCard

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String REGISTRY_SOUNDCARDS  
    • Constructor Summary

      Constructors 
      Constructor Description
      WindowsSoundCard​(java.lang.String kernelVersion, java.lang.String name, java.lang.String codec)
      Constructor for WindowsSoundCard.
    • Field Detail

      • REGISTRY_SOUNDCARDS

        private static final java.lang.String REGISTRY_SOUNDCARDS
        See Also:
        Constant Field Values
    • Constructor Detail

      • WindowsSoundCard

        WindowsSoundCard​(java.lang.String kernelVersion,
                         java.lang.String name,
                         java.lang.String codec)
        Constructor for WindowsSoundCard.
        Parameters:
        kernelVersion - The version
        name - The name
        codec - The codec
    • Method Detail

      • getSoundCards

        public static java.util.List<SoundCard> getSoundCards()
        Returns Windows audio device driver information, which represents the closest proxy we have to sound cards.

        NOTE : The reason why the codec name is same as the card name is because windows does not provide the name of the codec chip but sometimes the name of the card returned is infact the name of the codec chip also. Example : Realtek ALC887 HD Audio Device

        Returns:
        List of sound cards