Class AbstractSoundCard

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

@Immutable
public abstract class AbstractSoundCard
extends java.lang.Object
implements SoundCard
An abstract Sound Card
  • Constructor Summary

    Constructors 
    Constructor Description
    AbstractSoundCard​(java.lang.String kernelVersion, java.lang.String name, java.lang.String codec)
    Abstract Sound Card Constructor
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getCodec()
    Retrieves the codec of the Sound card
    java.lang.String getDriverVersion()
    Retrieves the driver version currently in use in machine
    java.lang.String getName()
    Retrieves the full name of the card.
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AbstractSoundCard

      public AbstractSoundCard​(java.lang.String kernelVersion, java.lang.String name, java.lang.String codec)
      Abstract Sound Card Constructor
      Parameters:
      kernelVersion - The version
      name - The name
      codec - The codec
  • Method Details

    • getDriverVersion

      public java.lang.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 java.lang.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 java.lang.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 java.lang.String toString()
      Overrides:
      toString in class java.lang.Object