Skip to content
Browse files

winmm: Added a FIXME for truncated device names.

  • Loading branch information
icculus committed Aug 7, 2016
1 parent 51d1523 commit ff7df7e687edf175dae34578f4aaa0954cc2b0c1
Showing with 15 additions and 0 deletions.
  1. +15 −0 src/audio/winmm/SDL_winmm.c
@@ -37,6 +37,21 @@

/* !!! 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:

#define DETECT_DEV_IMPL(iscap, typ, capstyp) \
static void DetectWave##typ##Devs(void) { \
const UINT iscapture = iscap ? 1 : 0; \

0 comments on commit ff7df7e

Please sign in to comment.