Ignore:
Timestamp:
Jul 22, 2010, 9:33:17 PM (15 years ago)
Author:
David Azarewicz
Message:

Reintegrate branch into trunk

File:
1 edited

Legend:

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

    r483 r526  
    4646    if (pStream == NULL)
    4747    {
    48         dprintf(("HookHandler stream %lx not found!", (ULONG) ulSysFileNum));
     48        rprintf(("HookHandler stream %lx not found!", (ULONG) ulSysFileNum));
    4949        DebugInt3();
    5050        return;
     
    5656            rc = DevHelp_PostEventSem(pStream->hSem);
    5757            if(rc != 0) {
    58                 dprintf(("DevHlp_PostEventSem returned %d", rc));
     58                rprintf(("DevHlp_PostEventSem returned %d", rc));
    5959            }
    6060        }
     
    8080    pStreamBuf = new STREAMBUFFER(uLength, (PSTREAMBUF)0, fLooping);
    8181    if(pStreamBuf == NULL) {
    82         dprintf(("DWAVESTREAM::Write StreamBuf"));
     82        rprintf(("DWAVESTREAM::Write StreamBuf"));
    8383        DebugInt3();
    8484        return 1;
     
    8989    rc = DevHelp_VirtToLin(SELECTOROF(pLock), OFFSETOF(pLock), &linLock);
    9090    if(rc) {
    91         dprintf(("DWAVESTREAM::Write VirtToLin"));
     91        rprintf(("DWAVESTREAM::Write VirtToLin"));
    9292        DebugInt3();
    9393        delete pStreamBuf;
     
    9797    rc = DevHelp_VMLock(VMDHL_LONG | VMDHL_WRITE, (LIN)pbuf, uLength, -1L, linLock, (PULONG)&PageListCount);
    9898    if(rc) {
    99         dprintf(("DWAVESTREAM::Write VMLock"));
     99        rprintf(("DWAVESTREAM::Write VMLock"));
    100100        DebugInt3();
    101101        delete pStreamBuf;
     
    105105    rc = DevHelp_VMProcessToGlobal(VMDHGP_WRITE, (LIN)pbuf, uLength, (PLIN)&linAddr);
    106106    if(rc) {
    107         dprintf(("DWAVESTREAM::Write ProcToGlob"));
     107        rprintf(("DWAVESTREAM::Write ProcToGlob"));
    108108        DebugInt3();
    109109        DevHelp_VMUnLock(linLock);
     
    143143    hSem = pReg->hStream;
    144144
    145 #ifdef DEBUG
    146145    dprintf(("DWAVESTREAM::Register"));
    147 #endif
    148146    if(DevHelp_OpenEventSem(hSem) != 0) {
    149         dprintf(("DevHlp_OpenEventSem %lx failed!", hSem));
     147        rprintf(("DevHlp_OpenEventSem %lx failed!", hSem));
    150148        hSem = 0;
    151149        return 1;
     
    158156{
    159157    if(DevHelp_CloseEventSem(hSem) != 0) {
    160         dprintf(("DevHlp_CloseEventSemaphore %lx failed!", hSem));
     158        rprintf(("DevHlp_CloseEventSemaphore %lx failed!", hSem));
    161159        return;
    162160    }
     
    168166ULONG DWAVESTREAM::StartStream(void)
    169167{
    170 #ifdef DEBUG
    171168        dprintf(("DWAVESTREAM::StartStream"));
    172 #endif
    173169        return WAVESTREAM::StartStream();
    174170}
    175171//*****************************************************************************
    176172//*****************************************************************************
    177 void DWAVESTREAM::AddBuffers(BOOL fFirst)
     173void DWAVESTREAM::AddBuffers(SHORT sFirst)
    178174{
    179175   PSTREAMBUFFER pTemp = (PSTREAMBUFFER)qhDone.Tail();
    180176   ULONG space, Buff_left, byteswritten;
    181177
    182 #ifdef DEBUG
    183178        dprintf(("DW::AddBuffers"));
    184 #endif
    185179    if (!pTemp) pTemp = (PSTREAMBUFFER)qhInProcess.Tail();
    186180
     
    190184        if (pahw->GetPosition(StreamId, &_configinfo, &space) != OSSERR_SUCCESS)
    191185        {
    192             dprintf(("DWAVESTREAM::AddBuffers GetPositions"));
     186            rprintf(("DWAVESTREAM::AddBuffers GetPositions"));
    193187            DebugInt3();
    194188            return;
    195189        }
    196         if(fFirst)
     190        if(sFirst)
    197191        {
    198192             space = min(space, 4*_configinfo.ulFragsize);
     
    222216   else
    223217   {
    224      WAVESTREAM::AddBuffers(fFirst);
     218     WAVESTREAM::AddBuffers(sFirst);
    225219   }
    226220}
     
    284278   WAVESTREAM(streamtype, pinit, filesysnum, mixerStreamId), fError(FALSE), hCtxHook(0), hSem(0)
    285279{
    286 #ifdef DEBUG
    287280        dprintf(("DWS::DWS Init"));
    288 #endif
    289281    if (DevHelp_AllocateCtxHook((NPFN)HookHandlerAsm, &hCtxHook))
    290282    {
    291         dprintf(("DWAVESTREAM::DWAVESTREAM AllocCtx"));
     283        rprintf(("DWAVESTREAM::DWAVESTREAM AllocCtx"));
    292284        DebugInt3();
    293285        fError = TRUE;
     
    307299        APIRET rc = DevHelp_PostEventSem(hSem);
    308300        if(rc != 0) {
    309             dprintf(("DevHlp_PostEventSem returned %d", rc));
     301            rprintf(("DevHlp_PostEventSem returned %d", rc));
    310302        }
    311303        if(DevHelp_CloseEventSem(hSem) != 0) {
    312             dprintf(("DevHlp_CloseEventSemaphore %lx failed!", hSem));
     304            rprintf(("DevHlp_CloseEventSemaphore %lx failed!", hSem));
    313305        }
    314306    }
Note: See TracChangeset for help on using the changeset viewer.