// acxdevice.h
ACX_DX_EXIT_LATENCY AcxDeviceGetCurrentDxExitLatency(
WDFDEVICE Device,
POWER_ACTION SystemPowerAction,
WDF_POWER_DEVICE_STATE DeviceState
);
View the official Windows Driver Kit DDI referenceNo description available.
The AcxDeviceGetCurrentDxExitLatency function gets the current audio device sleep state exit latency value.
DevicePointer to the WDFDEVICE for which to get the exit latency.
SystemPowerActionThe system power action for which to get the latency value.
DeviceStateThe device power state for which to get the latency value.
AcxDeviceGetCurrentDxExitLatency returns the current device exit latency value as defined in the ACX_DX_EXIT_LATENCY enumeration.
A device has different power states. The D0 power state is when the device is up and running, D1 is when the device is one of the sleep states, and so on. "Dx" refers to any device sleep state.
Audio drivers know when to go in D3Hot or D3Cold based on the ACX_DX_EXIT_LATENCY returned by this method.
WDFDEVICE Device;
WDF_POWER_DEVICE_STATE TargetState;
ACX_DX_EXIT_LATENCY latency;
POWER_ACTION powerAction;
// Code to initialize WDFDEVICE and WDF_POWER_DEVICE_STATE...
powerAction = WdfDeviceGetSystemPowerAction(Device);
//
// Get the current exit latency.
//
latency = AcxDeviceGetCurrentDxExitLatency(Device, powerAction, TargetState);
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.