pub enum DeviceState {
Active,
Disabled,
NotPresent,
Unplugged,
}
Expand description
Possible states for an [IMMDevice], an enum representing the DEVICE_STATE_XXX constants
Variants§
Active
The audio endpoint device is active. That is, the audio adapter that connects to the endpoint device is present and enabled. In addition, if the endpoint device plugs int a jack on the adapter, then the endpoint device is plugged in.
Disabled
The audio endpoint device is disabled. The user has disabled the device in the Windows multimedia control panel, Mmsys.cpl
NotPresent
The audio endpoint device is not present because the audio adapter that connects to the endpoint device has been removed from the system, or the user has disabled the adapter device in Device Manager.
Unplugged
The audio endpoint device is unplugged. The audio adapter that contains the jack for the endpoint device is present and enabled, but the endpoint device is not plugged into the jack. Only a device with jack-presence detection can be in this state.