Changeset 3097 for trunk/src


Ignore:
Timestamp:
Mar 12, 2000, 10:33:25 PM (25 years ago)
Author:
mike
Message:

Minor fix for Heroes of M&M III

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/dsound/new/OS2PrimBuff.cpp

    r3073 r3097  
    454454   OS2PrimBuff *me = (OS2PrimBuff *)This;
    455455
    456    if (me == NULL) {
    457       return DSERR_INVALIDPARAM;
     456   if (me == NULL || lpfxFormat == NULL) {
     457      return DSERR_INVALIDPARAM;
     458   }
     459
     460   /* Note: the software mixer doesn't really support mono output but */
     461   /*       we can safely mix in stereo anyway                        */
     462   if (lpfxFormat->nChannels == 1) {
     463      if (me->parentDS->GetCoopLevel() != DSSCL_WRITEPRIMARY)
     464         lpfxFormat->nChannels = 2;
    458465   }
    459466
Note: See TracChangeset for help on using the changeset viewer.