Changeset 468 for OCO/trunk/drv16/dwavestrm.cpp
- Timestamp:
- Nov 4, 2009, 4:21:24 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OCO/trunk/drv16/dwavestrm.cpp
r33 r468 44 44 45 45 pStream = (PDWAVESTREAM)FindStream_fromFile(ulSysFileNum); 46 if(pStream == NULL) { 46 if (pStream == NULL) 47 { 47 48 dprintf(("HookHandler stream %lx not found!", (ULONG) ulSysFileNum)); 48 49 DebugInt3(); … … 79 80 pStreamBuf = new STREAMBUFFER(uLength, (PSTREAMBUF)0, fLooping); 80 81 if(pStreamBuf == NULL) { 82 dprintf(("DWAVESTREAM::Write StreamBuf")); 81 83 DebugInt3(); 82 84 return 1; … … 87 89 rc = DevHelp_VirtToLin(SELECTOROF(pLock), OFFSETOF(pLock), &linLock); 88 90 if(rc) { 91 dprintf(("DWAVESTREAM::Write VirtToLin")); 89 92 DebugInt3(); 90 93 delete pStreamBuf; … … 94 97 rc = DevHelp_VMLock(VMDHL_LONG | VMDHL_WRITE, (LIN)pbuf, uLength, -1L, linLock, (PULONG)&PageListCount); 95 98 if(rc) { 99 dprintf(("DWAVESTREAM::Write VMLock")); 96 100 DebugInt3(); 97 101 delete pStreamBuf; … … 101 105 rc = DevHelp_VMProcessToGlobal(VMDHGP_WRITE, (LIN)pbuf, uLength, (PLIN)&linAddr); 102 106 if(rc) { 107 dprintf(("DWAVESTREAM::Write ProcToGlob")); 103 108 DebugInt3(); 104 109 DevHelp_VMUnLock(linLock); … … 119 124 if(temp) 120 125 { 121 if(ulStreamState == STREAM_STREAMING) {//means we're called during an interrupt 126 if(ulStreamState == STREAM_STREAMING) 127 {//means we're called during an interrupt 122 128 qhReturn.PushOnTail((PQUEUEELEMENT)temp); 123 129 DevHelp_ArmCtxHook(ulSysFileNum, hCtxHook); 124 130 } 125 else { 131 else 132 { 126 133 DevHelp_VMFree((LIN)temp->pBuffptr); 127 134 DevHelp_VMUnLock(temp->linLock); … … 136 143 hSem = pReg->hStream; 137 144 145 dprintf(("DWAVESTREAM::Register")); 138 146 if(DevHelp_OpenEventSem(hSem) != 0) { 139 147 dprintf(("DevHlp_OpenEventSem %lx failed!", hSem)); … … 173 181 Buff_left = pTemp->ulBuffsz - pTemp->ulBuffpos; 174 182 175 if(pahw->GetPosition(StreamId, &_configinfo, &space) != OSSERR_SUCCESS) { 176 DebugInt3(); 177 return; 178 } 183 if (pahw->GetPosition(StreamId, &_configinfo, &space) != OSSERR_SUCCESS) 184 { 185 dprintf(("DWAVESTREAM::AddBuffers GetPositions")); 186 DebugInt3(); 187 return; 188 } 179 189 if(fFirst) { 180 190 space = min(space, 4*_configinfo.ulFragsize); … … 255 265 WAVESTREAM(streamtype, pinit, filesysnum, mixerStreamId), fError(FALSE), hCtxHook(0), hSem(0) 256 266 { 257 if(DevHelp_AllocateCtxHook((NPFN)HookHandlerAsm, &hCtxHook)) { 267 if (DevHelp_AllocateCtxHook((NPFN)HookHandlerAsm, &hCtxHook)) 268 { 269 dprintf(("DWAVESTREAM::DWAVESTREAM AllocCtx")); 258 270 DebugInt3(); 259 271 fError = TRUE;
Note:
See TracChangeset
for help on using the changeset viewer.