reactos/media
Oleg Dubinskiy d7b2280c5c
[DSOUND] Improvements to DirectSound(Capture)EnumerateW (#3899)
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
2021-09-04 15:58:42 +03:00
..
doc [DSOUND] Improvements to DirectSound(Capture)EnumerateW (#3899) 2021-09-04 15:58:42 +03:00
drivers/etc Fix remaining text file line endings in the tree. (#18) 2017-10-06 15:00:36 +02:00
fonts [FONTS] Improve vgaoem.fon compatibilities by Fony 2020-10-10 22:54:39 +09:00
graphics [EXPLORER] Remove version number from the start menu banner image, as requested. 2017-11-14 18:15:34 +01:00
inf Add/Update German translation (#3805) 2021-07-09 11:15:34 +02:00
nls [NLS] Use files provided by Microsoft to generate most of our NLS files 2021-05-19 22:50:29 +02:00
sdb [APPCOMPAT][ACCPAGE][SDB][ROSTESTS] Implement compatibility modes for Windows 10, Server 2016 and 2019 2020-02-23 17:43:40 +01:00
sounds [SOUNDS] Add new Recycle Bin system sound 2021-06-11 02:06:11 +03:00
themes Add/Update German translation (#3805) 2021-07-09 11:15:34 +02:00
vgafonts [TRANSLATION] Ukrainian Translation Update & OEM-866 Code Page Problem (#1133) 2018-12-18 18:38:42 +01:00
CMakeLists.txt [SOUNDS] Add new Recycle Bin system sound 2021-06-11 02:06:11 +03:00
forwardcompatible.manifest [WINSXS] Add some amd64 manifests 2021-04-08 20:48:24 +03:00
systemcompatible.manifest [WINSXS] Add some amd64 manifests 2021-04-08 20:48:24 +03:00