Changeset 526 for OCO/trunk/drv16/dwavestrm.cpp
- Timestamp:
- Jul 22, 2010, 9:33:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OCO/trunk/drv16/dwavestrm.cpp
r483 r526 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 } … … 168 166 ULONG DWAVESTREAM::StartStream(void) 169 167 { 170 #ifdef DEBUG171 168 dprintf(("DWAVESTREAM::StartStream")); 172 #endif173 169 return WAVESTREAM::StartStream(); 174 170 } 175 171 //***************************************************************************** 176 172 //***************************************************************************** 177 void DWAVESTREAM::AddBuffers( BOOL fFirst)173 void DWAVESTREAM::AddBuffers(SHORT sFirst) 178 174 { 179 175 PSTREAMBUFFER pTemp = (PSTREAMBUFFER)qhDone.Tail(); 180 176 ULONG space, Buff_left, byteswritten; 181 177 182 #ifdef DEBUG183 178 dprintf(("DW::AddBuffers")); 184 #endif185 179 if (!pTemp) pTemp = (PSTREAMBUFFER)qhInProcess.Tail(); 186 180 … … 190 184 if (pahw->GetPosition(StreamId, &_configinfo, &space) != OSSERR_SUCCESS) 191 185 { 192 dprintf(("DWAVESTREAM::AddBuffers GetPositions"));186 rprintf(("DWAVESTREAM::AddBuffers GetPositions")); 193 187 DebugInt3(); 194 188 return; 195 189 } 196 if( fFirst)190 if(sFirst) 197 191 { 198 192 space = min(space, 4*_configinfo.ulFragsize); … … 222 216 else 223 217 { 224 WAVESTREAM::AddBuffers( fFirst);218 WAVESTREAM::AddBuffers(sFirst); 225 219 } 226 220 } … … 284 278 WAVESTREAM(streamtype, pinit, filesysnum, mixerStreamId), fError(FALSE), hCtxHook(0), hSem(0) 285 279 { 286 #ifdef DEBUG287 280 dprintf(("DWS::DWS Init")); 288 #endif289 281 if (DevHelp_AllocateCtxHook((NPFN)HookHandlerAsm, &hCtxHook)) 290 282 { 291 dprintf(("DWAVESTREAM::DWAVESTREAM AllocCtx"));283 rprintf(("DWAVESTREAM::DWAVESTREAM AllocCtx")); 292 284 DebugInt3(); 293 285 fError = TRUE; … … 307 299 APIRET rc = DevHelp_PostEventSem(hSem); 308 300 if(rc != 0) { 309 dprintf(("DevHlp_PostEventSem returned %d", rc));301 rprintf(("DevHlp_PostEventSem returned %d", rc)); 310 302 } 311 303 if(DevHelp_CloseEventSem(hSem) != 0) { 312 dprintf(("DevHlp_CloseEventSemaphore %lx failed!", hSem));304 rprintf(("DevHlp_CloseEventSemaphore %lx failed!", hSem)); 313 305 } 314 306 }
Note:
See TracChangeset
for help on using the changeset viewer.