Changeset 21644


Ignore:
Timestamp:
Jun 22, 2011, 8:36:12 PM (14 years ago)
Author:
dmik
Message:

dsound: Open audio devices in shared mode to allow other processes play sound when Java applications are running.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/dsound/dart.cpp

    r9232 r21644  
    121121   AmpOpenParms.pszDeviceType = (PSZ)MAKEULONG(MCI_DEVTYPE_AUDIO_AMPMIX, (USHORT)device);
    122122
    123    rc = dsmciSendCommand(0, MCI_OPEN, MCI_WAIT | MCI_OPEN_TYPE_ID, (PVOID)&AmpOpenParms, 0);
     123   rc = dsmciSendCommand(0, MCI_OPEN, MCI_WAIT | MCI_OPEN_TYPE_ID | MCI_OPEN_SHAREABLE, (PVOID)&AmpOpenParms, 0);
    124124   if (rc != MCIERR_SUCCESS) {
    125125      dprintf(("DSOUND-DART: MCI_OPEN %d", rc));
     
    277277   AmpOpenParms.pszDeviceType = (PSZ)MAKEULONG(MCI_DEVTYPE_AUDIO_AMPMIX, (USHORT)device);
    278278
    279    rc = dsmciSendCommand(0, MCI_OPEN, MCI_WAIT | MCI_OPEN_TYPE_ID, (PVOID)&AmpOpenParms, 0);
     279   rc = dsmciSendCommand(0, MCI_OPEN, MCI_WAIT | MCI_OPEN_TYPE_ID | MCI_OPEN_SHAREABLE, (PVOID)&AmpOpenParms, 0);
    280280   if (rc != MCIERR_SUCCESS) {
    281281      dprintf(("DSOUND-DART: MCI_OPEN %d", rc));
Note: See TracChangeset for help on using the changeset viewer.