Changeset 167 for sbliveos2/trunk/drv16/ioctl.cpp
- Timestamp:
- Mar 23, 2001, 12:33:12 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sbliveos2/trunk/drv16/ioctl.cpp
r166 r167 308 308 void IoctlDirectAudio(PREQPACKET prp) 309 309 { 310 PSTREAM pStream;311 312 310 if(prp->s.ioctl.bCode == DAUDIO_OPEN) 313 311 { … … 315 313 PAUDIOHW pHWobj; 316 314 MCI_AUDIO_CAPS audioCaps; 315 PDWAVESTREAM pStream; 317 316 318 317 if(DevHelp_VerifyAccess(SELECTOROF(pInit), sizeof(MCI_AUDIO_INIT), OFFSETOF(pInit), VERIFY_READWRITE)) … … 358 357 } 359 358 359 if(!pStream->IsEverythingOk()) { 360 delete pStream; 361 DebugInt3(); 362 pInit->sReturnCode = INVALID_REQUEST; 363 prp->usStatus |= RPERR; 364 return; 365 } 360 366 pInit->ulFlags |= VOLUME; /* volume control is supported */ 361 367 pInit->ulFlags |= INPUT; /* Input select is supported */ … … 413 419 } 414 420 421 PSTREAM pStream; 422 415 423 pStream = FindStream_fromFile((ULONG) prp->s.ioctl.usSysFileNum); 416 424 if(pStream == NULL) { … … 481 489 DDCMDREGISTER reg; 482 490 483 if(DevHelp_OpenEventSem(pDAudioCmd->Thread.hSemaphore) != 0) {484 dprintf(("DevHlp_OpenEventSem %lx failed!", pDAudioCmd->Thread.hSemaphore));485 prp->usStatus |= RPERR | RPBADCMD;486 return;487 }488 489 491 reg.ulFunction = DDCMD_REG_STREAM; 490 492 reg.hStream = pDAudioCmd->Thread.hSemaphore; … … 498 500 { 499 501 pStream->DeRegister(); 500 501 if(DevHelp_CloseEventSem(pDAudioCmd->Thread.hSemaphore) != 0) {502 dprintf(("DevHlp_CloseEventSemaphore %lx failed!", pDAudioCmd->Thread.hSemaphore));503 prp->usStatus |= RPERR | RPBADCMD;504 return;505 }506 502 break; 507 503 }
Note:
See TracChangeset
for help on using the changeset viewer.