Enumerate DirectSound Devices Sample

The Enumerate DirectSound Devices sample shows how to enumerate and create playback and capture devices.

Path

Source: (SDK root)\Samples\C++\DirectSound\EnumDevices

Executable: (SDK root)\Samples\C++\DirectSound\Bin

User's Guide

Select a playback and capture device from the dropdown lists. Click Create.

Programming Notes

The sample demonstrates the use of the DSEnumCallback function. The handle of the listbox is passed to this function as the pContext parameter so that the name of the device can be displayed and the GUID can be stored as list item data.

See Also