Class Win32SoundDevice
java.lang.Object
io.github.eggy03.ferrumx.windows.entity.peripheral.Win32SoundDevice
Immutable representation of a Sound device on a Windows system.
Fields correspond to properties retrieved from the Win32_SoundDevice WMI class.
Usage example
// Build a new instance
Win32SoundDevice device = Win32SoundDevice.builder()
.deviceId("AUDIO\\0001")
.name("Realtek High Definition Audio")
.pnpDeviceId("HDAUDIO\\FUNC_01&VEN_10EC&DEV_0256&SUBSYS_10431A00&REV_1000")
.manufacturer("Realtek Semiconductor Corp.")
.status("OK")
.statusInfo(3)
.build();
// Modify using toBuilder()
Win32SoundDevice updated = device.toBuilder()
.status("Degraded")
.statusInfo(4)
.build();
- Since:
- 3.0.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) @Nullable StringUnique identifier of the sound device.(package private) @Nullable StringManufacturer of the sound device.(package private) @Nullable StringFriendly name of the sound device as recognized by the system.(package private) @Nullable StringWindows Plug and Play device identifier.(package private) @Nullable StringCurrent operational status of the sound device.(package private) @Nullable IntegerNumeric state of the logical device. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
deviceId
Unique identifier of the sound device. -
pnpDeviceId
Windows Plug and Play device identifier. -
name
Friendly name of the sound device as recognized by the system. -
manufacturer
Manufacturer of the sound device. -
status
Current operational status of the sound device.Possible OPERATIONAL values:
- "OK"
- "Degraded"
- "Pred Fail"
Possible NON-OPERATIONAL values:
- "Unknown"
- "Error"
- "Starting"
- "Stopping"
- "Service"
Possible OTHER values:
- "Stressed"
- "NonRecover"
- "No Contact"
- "Lost Comm"
-
statusInfo
Numeric state of the logical device.- 1 - Other
- 2 - Unknown
- 3 - Enabled
- 4 - Disabled
- 5 - Not Applicable
-
-
Constructor Details
-
Win32SoundDevice
public Win32SoundDevice()
-
-
Method Details
-
toString
-