mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
d7b2280c5c
Fix and improve DirectSoundEnumerateW and DirectSoundCaptureEnumerateW implementations in our dsound. Use the Windows-compatible way to get the device name and pass it to callback. - Don't use Wine-specific DSDRIVERDESC structure and DRV_QUERYDSOUNDDESC message, declared in sdk/include/dxsdk/dsdriver.h, whose are obsolete even in Wine for now. - Instead, declare a new WAVEINCAPSW and WAVEOUTCAPSW structures (for input and output appropriately), call waveInGetDevCapsW and WaveOutGetDevCapsW for enumerated device ID and store retieved device name in these structures. - Then pass them to a lpDSEnumCallbackW as well, without Ansi to Unicode conversion (since the retrieved string is Unicode already). - Do this both for capture and playback functions. - Addtionally, add MMSYSERR_BADDEVICEID status code to mmErr macro, because it also might be returned by waveIn/OutGetDevCapsW as well, in case of failure. - And mark our dosund as forked, because it definitely will not be synced at least until we'll retarget to Vista or newer. Add an appropriate comment. This fixes incorrect detection of DirectSound audio input and output devices, so now a lot of apps are able to detect it correctly, and can play the sound properly (e.g. AIMP 2.61 and IcyTower from RAPPS). CORE-7535 CORE-10907 CORE-15324 CORE-15533 CORE-16340 |
||
---|---|---|
.. | ||
doc | ||
drivers/etc | ||
fonts | ||
graphics | ||
inf | ||
nls | ||
sdb | ||
sounds | ||
themes | ||
vgafonts | ||
CMakeLists.txt | ||
forwardcompatible.manifest | ||
systemcompatible.manifest |