Class AbstractSoundCard

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

@Immutable public abstract class AbstractSoundCard extends Object implements SoundCard
An abstract Sound Card
  • Constructor Details

    • AbstractSoundCard

      protected AbstractSoundCard(String kernelVersion, String name, String codec)
      Abstract Sound Card Constructor
      Parameters:
      kernelVersion - The version
      name - The name
      codec - The codec
  • Method Details

    • getDriverVersion

      public String getDriverVersion()
      Description copied from interface: SoundCard
      Retrieves the driver version currently in use in machine
      Specified by:
      getDriverVersion in interface SoundCard
      Returns:
      The current and complete name of the driver version
    • getName

      public String getName()
      Description copied from interface: SoundCard
      Retrieves the full name of the card.
      Specified by:
      getName in interface SoundCard
      Returns:
      The name of the card.
    • getCodec

      public String getCodec()
      Description copied from interface: SoundCard
      Retrieves the codec of the Sound card
      Specified by:
      getCodec in interface SoundCard
      Returns:
      The name of the codec of the sound card
    • toString

      public String toString()
      Overrides:
      toString in class Object