reactos/dll
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
..
3rdparty [REACTOS] Silence warnings in 3r-party code 2021-07-23 22:03:48 +02:00
apisets [WINSXS] Add some amd64 manifests 2021-04-08 20:48:24 +03:00
appcompat [SDBINST] Add uninstall option 2021-05-08 14:24:20 +02:00
cpl [DESK] Only try to restart graphic device after installation 2021-07-12 23:51:39 +02:00
directx [DSOUND] Improvements to DirectSound(Capture)EnumerateW (#3899) 2021-09-04 15:58:42 +03:00
keyboard [KEYBOARD] Add Swiss French keyboard layout (#3408) 2021-01-05 17:48:53 +03:00
nls [CMAKE] Replace custom functions to built-in ones 2020-04-16 15:59:38 +03:00
np [REACTOS] Explicitly link against pseh & include pseh headers in a few places 2021-04-28 13:10:23 +02:00
ntdll [LDR] Disable Logging when images overlap CORE-17635 2021-08-06 19:25:14 +02:00
opengl [CMAKE] Some options are only supported by GCC, don't use them for clang 2021-04-09 03:58:19 +03:00
shellext [TRANSLATION] Add/update Hungarian translation of deskmon, notepad, winlogon, mycomput 2021-08-07 22:57:35 +02:00
win32 [MSI] Fix dialog.c showing two taskbar panes on Cancel (#3861) 2021-09-03 22:54:22 +03:00
CMakeLists.txt