mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
winmm: Added a FIXME for truncated device names.
This commit is contained in:
parent
51d1523380
commit
ff7df7e687
@ -37,6 +37,21 @@
|
|||||||
#define WAVE_FORMAT_IEEE_FLOAT 0x0003
|
#define WAVE_FORMAT_IEEE_FLOAT 0x0003
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* !!! FIXME:
|
||||||
|
|
||||||
|
WAVExxxCAPS gives you 31 bytes for the device name, and just truncates if it's
|
||||||
|
longer. However, since WinXP, you can use the WAVExxxCAPS2 structure, which
|
||||||
|
will give you a name GUID. The full name is in the Windows Registry under
|
||||||
|
that GUID, located here: HKLM\System\CurrentControlSet\Control\MediaCategories
|
||||||
|
|
||||||
|
Note that drivers can report GUID_NULL for the name GUID, in which case,
|
||||||
|
Windows makes a best effort to fill in those 31 bytes in the usual place.
|
||||||
|
This info summarized from MSDN:
|
||||||
|
|
||||||
|
http://web.archive.org/web/20131027093034/http://msdn.microsoft.com/en-us/library/windows/hardware/ff536382(v=vs.85).aspx
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
#define DETECT_DEV_IMPL(iscap, typ, capstyp) \
|
#define DETECT_DEV_IMPL(iscap, typ, capstyp) \
|
||||||
static void DetectWave##typ##Devs(void) { \
|
static void DetectWave##typ##Devs(void) { \
|
||||||
const UINT iscapture = iscap ? 1 : 0; \
|
const UINT iscapture = iscap ? 1 : 0; \
|
||||||
|
Loading…
Reference in New Issue
Block a user