Package oshi.hardware.common
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 Modifier Constructor Description protectedAbstractSoundCard(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.StringgetCodec()Retrieves the codec of the Sound cardjava.lang.StringgetDriverVersion()Retrieves the driver version currently in use in machinejava.lang.StringgetName()Retrieves the full name of the card.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
AbstractSoundCard
protected AbstractSoundCard(java.lang.String kernelVersion, java.lang.String name, java.lang.String codec)Abstract Sound Card Constructor- Parameters:
kernelVersion- The versionname- The namecodec- The codec
-
-
Method Details
-
getDriverVersion
public java.lang.String getDriverVersion()Description copied from interface:SoundCardRetrieves the driver version currently in use in machine- Specified by:
getDriverVersionin interfaceSoundCard- Returns:
- The current and complete name of the driver version
-
getName
public java.lang.String getName()Description copied from interface:SoundCardRetrieves the full name of the card. -
getCodec
public java.lang.String getCodec()Description copied from interface:SoundCardRetrieves the codec of the Sound card -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-