Ignore:
Timestamp:
Apr 3, 2017, 3:35:13 PM (9 years ago)
Author:
David Azarewicz
Message:

Code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OCO/trunk/drv16/wavestrm.cpp

    r534 r595  
    218218                // the hardware buffer is a moving target and calling it more than once
    219219                // could keep us in this loop writing 4 or 8 bytes at a time.
    220                 // In extream cases we will stay stuck in this loop long enough to casue a trap rjj
     220                // In extreme cases we will stay stuck in this loop long enough to casue a trap rjj
    221221                if (pahw->GetSpace(StreamId, &_configinfo, &ulSpace) == FALSE) {
    222222                        rprintf(("WS::ABS GetSpace failed"));
     
    289289
    290290        // get the buffer pointer and amount of data remaining
    291         pDataBuf  = (ULONG)pTemp->pBuffptr + pTemp->ulBuffpos; /* points to the beginning of data in src buffer */
     291        pDataBuf = (ULONG)pTemp->pBuffptr + pTemp->ulBuffpos; /* points to the beginning of data in src buffer */
    292292        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));
    294295        ulBuffLeft = min(ulBuffLeft, ulSpace); /* the smaller of src data left or dst space available */
    295296
     
    379380        {
    380381                case STREAM_WRITE:
    381                         {
     382                {
    382383                        PSTREAMBUFFER pTemp;
    383384                        ULONG   ulBytes, ulDelta;
     
    407408                        _ulLastPosition = ulBytes;
    408409
     410      #if 0 /* DAZ 20170402 */
    409411                        if(!qhInProcess.IsElements() && !qhDone.IsElements()) {
    410                                 //Application underrun
    411412                                _vUnderrunStop("WS:Process");
    412413                                break;
    413414                        }
     415                        #endif
    414416                        if (qhInProcess.IsElements()) AddBuffers(1);
    415417                        // Return any buffers that have been completely written to uniaud32
     
    429431                        }
    430432                        break;
    431                         }
     433                }
    432434                case STREAM_READ:
    433                         {
     435                {
    434436                        ULONG ulDAZ;
    435437
     
    442444                        }
    443445                        break;
    444                         }
     446                }
    445447                default:
    446448                        break;
Note: See TracChangeset for help on using the changeset viewer.