DirectX SDK |
This topic pertains only to application development in C and C++. See DirectSound Visual Basic Samples.
The EnumDevices program shows how to enumerate DirectSound and DirectSoundCapture devices.
Source: (SDK root)\Samples\Multimedia\DSound\Src\EnumDevices
Executable: (SDK root)\Samples\Multimedia\DSound\Bin\EnumDevices.exe
Select playback and capture devices from the dropdown lists and click Create.
The sample code demonstrates the use of the DirectSoundEnumerate, DirectSoundCreate, DirectSoundCaptureEnumerate, and DirectSoundCaptureCreate functions.