How do I detect if DSound is installed?
If you do not need to use DirectSoundEnumerate() to list the available DSound devices, don’t link your application with dsound.lib and instead use it via COMs CoCreateInstance(CLSID_DirectSound…) then initialize the DSound object using Initialize(NULL). If you need to use DirectSoundEnumerate(), you can dynamically load dsound.dll using LoadLibrary(“dsound.dll”); and access its methods using GetProcAddress(“DirectSoundEnumerateA/W”) and GetProcAddress(“DirectSoundCreateA/W”) and so on.
Related Questions
- Why can my computer detect the Creative Prodikeys even after the connections are checked and the software installed?
- I have an alarm system installed, but not monitored. Will the CopperWatcherâ„¢ still detect an attempted theft?
- I have installed the Cluster Server Package in a new server node, but WhizzBee failed to detect it, why?