- Timestamp:
- Mar 13, 2000, 1:49:00 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/dsound/OS2PrimBuff.cpp
r3099 r3100 454 454 OS2PrimBuff *me = (OS2PrimBuff *)This; 455 455 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; 458 465 } 459 466
Note:
See TracChangeset
for help on using the changeset viewer.