Class WindowsSoundCard

java.lang.Object
oshi.hardware.common.AbstractSoundCard
oshi.hardware.platform.windows.WindowsSoundCard
All Implemented Interfaces:
SoundCard

@Immutable final class WindowsSoundCard extends AbstractSoundCard
Sound Card data obtained from registry
  • Field Details

  • Constructor Details

    • WindowsSoundCard

      WindowsSoundCard(String kernelVersion, String name, String codec)
      Constructor for WindowsSoundCard.
      Parameters:
      kernelVersion - The version
      name - The name
      codec - The codec
  • Method Details

    • getSoundCards

      public static 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