Changeset 21571 for trunk/src/dsound


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).

Location:
trunk/src/dsound
Files:
2 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}
  • trunk/src/dsound/OS2DSOUND.H

    r3555 r21571  
    2020// A forward declaration is need here!
    2121class OS2PrimBuff;
     22
     23// GUID for the only device we provide (DART DirectSound for OS/2)
     24DEFINE_GUID(GUID_DirectSound_DART, 0x03BC8FA8, 0x3460, 0x11E0, 0x99, 0x51, 0x49, 0xC1, 0xDF, 0xD7, 0x20, 0x85 );
    2225
    2326class OS2IDirectSound
Note: See TracChangeset for help on using the changeset viewer.