Changeset 524 for OCO/branches/DAZ/drv16/dwavestrm.cpp
- Timestamp:
- Jul 22, 2010, 8:20:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OCO/branches/DAZ/drv16/dwavestrm.cpp
r513 r524 46 46 if (pStream == NULL) 47 47 { 48 dprintf(("HookHandler stream %lx not found!", (ULONG) ulSysFileNum));48 rprintf(("HookHandler stream %lx not found!", (ULONG) ulSysFileNum)); 49 49 DebugInt3(); 50 50 return; … … 56 56 rc = DevHelp_PostEventSem(pStream->hSem); 57 57 if(rc != 0) { 58 dprintf(("DevHlp_PostEventSem returned %d", rc));58 rprintf(("DevHlp_PostEventSem returned %d", rc)); 59 59 } 60 60 } … … 80 80 pStreamBuf = new STREAMBUFFER(uLength, (PSTREAMBUF)0, fLooping); 81 81 if(pStreamBuf == NULL) { 82 dprintf(("DWAVESTREAM::Write StreamBuf"));82 rprintf(("DWAVESTREAM::Write StreamBuf")); 83 83 DebugInt3(); 84 84 return 1; … … 89 89 rc = DevHelp_VirtToLin(SELECTOROF(pLock), OFFSETOF(pLock), &linLock); 90 90 if(rc) { 91 dprintf(("DWAVESTREAM::Write VirtToLin"));91 rprintf(("DWAVESTREAM::Write VirtToLin")); 92 92 DebugInt3(); 93 93 delete pStreamBuf; … … 97 97 rc = DevHelp_VMLock(VMDHL_LONG | VMDHL_WRITE, (LIN)pbuf, uLength, -1L, linLock, (PULONG)&PageListCount); 98 98 if(rc) { 99 dprintf(("DWAVESTREAM::Write VMLock"));99 rprintf(("DWAVESTREAM::Write VMLock")); 100 100 DebugInt3(); 101 101 delete pStreamBuf; … … 105 105 rc = DevHelp_VMProcessToGlobal(VMDHGP_WRITE, (LIN)pbuf, uLength, (PLIN)&linAddr); 106 106 if(rc) { 107 dprintf(("DWAVESTREAM::Write ProcToGlob"));107 rprintf(("DWAVESTREAM::Write ProcToGlob")); 108 108 DebugInt3(); 109 109 DevHelp_VMUnLock(linLock); … … 143 143 hSem = pReg->hStream; 144 144 145 #ifdef DEBUG146 145 dprintf(("DWAVESTREAM::Register")); 147 #endif148 146 if(DevHelp_OpenEventSem(hSem) != 0) { 149 dprintf(("DevHlp_OpenEventSem %lx failed!", hSem));147 rprintf(("DevHlp_OpenEventSem %lx failed!", hSem)); 150 148 hSem = 0; 151 149 return 1; … … 158 156 { 159 157 if(DevHelp_CloseEventSem(hSem) != 0) { 160 dprintf(("DevHlp_CloseEventSemaphore %lx failed!", hSem));158 rprintf(("DevHlp_CloseEventSemaphore %lx failed!", hSem)); 161 159 return; 162 160 } … … 186 184 if (pahw->GetPosition(StreamId, &_configinfo, &space) != OSSERR_SUCCESS) 187 185 { 188 dprintf(("DWAVESTREAM::AddBuffers GetPositions"));186 rprintf(("DWAVESTREAM::AddBuffers GetPositions")); 189 187 DebugInt3(); 190 188 return; … … 280 278 WAVESTREAM(streamtype, pinit, filesysnum, mixerStreamId), fError(FALSE), hCtxHook(0), hSem(0) 281 279 { 282 #ifdef DEBUG283 280 dprintf(("DWS::DWS Init")); 284 #endif285 281 if (DevHelp_AllocateCtxHook((NPFN)HookHandlerAsm, &hCtxHook)) 286 282 { 287 dprintf(("DWAVESTREAM::DWAVESTREAM AllocCtx"));283 rprintf(("DWAVESTREAM::DWAVESTREAM AllocCtx")); 288 284 DebugInt3(); 289 285 fError = TRUE; … … 303 299 APIRET rc = DevHelp_PostEventSem(hSem); 304 300 if(rc != 0) { 305 dprintf(("DevHlp_PostEventSem returned %d", rc));301 rprintf(("DevHlp_PostEventSem returned %d", rc)); 306 302 } 307 303 if(DevHelp_CloseEventSem(hSem) != 0) { 308 dprintf(("DevHlp_CloseEventSemaphore %lx failed!", hSem));304 rprintf(("DevHlp_CloseEventSemaphore %lx failed!", hSem)); 309 305 } 310 306 }
Note:
See TracChangeset
for help on using the changeset viewer.