


The client calls the IMMDeviceEnumerator::EnumAudioEndpoints method to create a collection of endpoint objects.
#FIND AUDIODEVICE VALUE MICROSOFT WINDOWS#
For information about CoCreateInstance, see the Windows SDK documentation. A device enumerator is an object with an IMMDeviceEnumerator interface. A rendering endpoint device (for example, headphones) can receive a stream of audio data from a client application, and a capture endpoint device (for example, a microphone) can send an audio stream to a client application.īefore enumerating the endpoint devices in the system, the client must first call the Windows CoCreateInstance function to create a device enumerator. Each adapter device typically supports one or more endpoint devices. As mentioned previously, adapter devices are registered by the Plug and Play manager, in contrast with endpoint devices, which are registered by the endpoint manager. These are adapter devices rather than endpoint devices. Header file Mmdeviceapi.h defines the interfaces in the MMDevice API.Īn audio adapter might contain several devices-for example, a wave-rendering device and a wave-capture device. This API enables clients to retrieve collections of the available endpoint devices and get the capabilities of each device. The MMDevice API lets clients discover the audio endpoint devices in the system and determine which devices are suitable for the application to use. The first task of a client audio application is to find a suitable audio device to use.
