If your application is simply going to play sounds through the user's preferred playback device, there is no need to enumerate the available devices. When you create the device object by calling the DirectSoundCreate8 function, you can specify a default device. For more information, see Creating the Device Object.
给你个参考帖子http://topic.csdn.net/u/20070802/18/ea8606c9-b587-4827-99b9-29fc167f3d77.html