Ignore:
Timestamp:
Feb 9, 2011, 5:03:14 PM (15 years ago)
Author:
dmik
Message:

dsound: Enumerate the default sound device twice in DirectSoundEnumerate() (according to MSDN).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/dsound/DSOUND.CPP

    r21479 r21571  
    106106   dprintf(("DSOUND:DirectSoundEnumerateA\n"));
    107107
    108    lpCallback(NULL, "DART DirectSound for OS/2", "DirectSound/2 v0.5",
    109               lpContext);
     108   // According to MSDN, the default sound device comes twice: first with a
     109   // null GUID and second wth its real GUID
     110
     111   lpCallback(NULL,
     112              "DART DirectSound for OS/2", "DirectSound/2 v0.5",
     113              lpContext);
     114
     115   lpCallback((LPGUID)&GUID_DirectSound_DART,
     116              "DART DirectSound for OS/2", "DirectSound/2 v0.5",
     117              lpContext);
     118
    110119   return DS_OK;
    111120}
     
    118127   dprintf(("DSOUND:DirectSoundEnumerateW\n"));
    119128
    120    lpCallback(NULL, (LPWSTR)L"DART DirectSound for OS/2", (LPWSTR)L"DirectSound/2 v0.5",
    121               lpContext);
     129   // According to MSDN, the default sound device comes twice: first with a
     130   // null GUID and second wth its real GUID
     131
     132   lpCallback(NULL,
     133              (LPWSTR)L"DART DirectSound for OS/2", (LPWSTR)L"DirectSound/2 v0.5",
     134              lpContext);
     135
     136   lpCallback((LPGUID)&GUID_DirectSound_DART,
     137              (LPWSTR)L"DART DirectSound for OS/2", (LPWSTR)L"DirectSound/2 v0.5",
     138              lpContext);
     139
    122140   return DS_OK;
    123141}
Note: See TracChangeset for help on using the changeset viewer.