Changeset 595 for OCO/trunk/drv16/wavestrm.cpp
- Timestamp:
- Apr 3, 2017, 3:35:13 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OCO/trunk/drv16/wavestrm.cpp
r534 r595 218 218 // the hardware buffer is a moving target and calling it more than once 219 219 // could keep us in this loop writing 4 or 8 bytes at a time. 220 // In extre amcases we will stay stuck in this loop long enough to casue a trap rjj220 // In extreme cases we will stay stuck in this loop long enough to casue a trap rjj 221 221 if (pahw->GetSpace(StreamId, &_configinfo, &ulSpace) == FALSE) { 222 222 rprintf(("WS::ABS GetSpace failed")); … … 289 289 290 290 // get the buffer pointer and amount of data remaining 291 pDataBuf 291 pDataBuf = (ULONG)pTemp->pBuffptr + pTemp->ulBuffpos; /* points to the beginning of data in src buffer */ 292 292 ulBuffLeft = pTemp->ulBuffsz - pTemp->ulBuffpos; /* amount of src data left to transfer */ 293 //dprintf(("WS::AddBuffer buf=%lx remain=%lx, space=%lx bp=%lx dp=%lx size=%lx", pTemp->pBuffptr, ulBuffLeft, ulSpace, pTemp->ulBuffpos, pTemp->ulDonepos, pTemp->ulBuffsz)); 293 //dprintf(("WS::AddBuffer buf=%lx remain=%lx, space=%lx bp=%lx dp=%lx size=%lx", 294 // pTemp->pBuffptr, ulBuffLeft, ulSpace, pTemp->ulBuffpos, pTemp->ulDonepos, pTemp->ulBuffsz)); 294 295 ulBuffLeft = min(ulBuffLeft, ulSpace); /* the smaller of src data left or dst space available */ 295 296 … … 379 380 { 380 381 case STREAM_WRITE: 381 382 { 382 383 PSTREAMBUFFER pTemp; 383 384 ULONG ulBytes, ulDelta; … … 407 408 _ulLastPosition = ulBytes; 408 409 410 #if 0 /* DAZ 20170402 */ 409 411 if(!qhInProcess.IsElements() && !qhDone.IsElements()) { 410 //Application underrun411 412 _vUnderrunStop("WS:Process"); 412 413 break; 413 414 } 415 #endif 414 416 if (qhInProcess.IsElements()) AddBuffers(1); 415 417 // Return any buffers that have been completely written to uniaud32 … … 429 431 } 430 432 break; 431 433 } 432 434 case STREAM_READ: 433 435 { 434 436 ULONG ulDAZ; 435 437 … … 442 444 } 443 445 break; 444 446 } 445 447 default: 446 448 break;
Note:
See TracChangeset
for help on using the changeset viewer.