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 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 cardjava.lang.String
getDriverVersion()
Retrieves the driver version currently in use in machinejava.lang.String
getName()
Retrieves the full name of the card.java.lang.String
toString()
-
Constructor Details
-
AbstractSoundCard
public 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:SoundCard
Retrieves the driver version currently in use in machine- Specified by:
getDriverVersion
in interfaceSoundCard
- 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. -
getCodec
public java.lang.String getCodec()Description copied from interface:SoundCard
Retrieves the codec of the Sound card -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-