The EDataFlow enumeration defines constants that indicate the direction in which audio data flows between an audio endpoint device and an application.
typedef enum __MIDL___MIDL_itf_mmdeviceapi_0000_0000_0001
{
eRender = 0,
eCapture = (eRender+1),
eAll = (eCapture+1),
EDataFlow_enum_count = (eAll+1)
} EDataFlow;
The IMMDeviceEnumerator::GetDefaultAudioEndpoint, IMMDeviceEnumerator::EnumAudioEndpoints, IMMEndpoint::GetDataFlow, and IMMNotificationClient::OnDefaultDeviceChanged methods use the constants defined in the EDataFlow enumeration.
| Constant | Description |
|---|---|
| eRender | Audio rendering stream. Audio data flows from the application to the audio endpoint device, which renders the stream. |
| eCapture | Audio capture stream. Audio data flows from the audio endpoint device that captures the stream, to the application. |
| eAll | Audio rendering or capture stream. Audio data can flow either from the application to the audio endpoint device, or from the audio endpoint device to the application. |
| EDataFlow_enum_count | The number of members in the EDataFlow enumeration (not counting the EDataFlow_enum_count member). |
Header: Declared in mmdeviceapi.h.
Library: Use MMDevApi.lib.