Ignore:
Timestamp:
Nov 4, 2009, 4:21:24 PM (16 years ago)
Author:
pasha
Message:

Rebuild buffers supply, fix DDCMD_WRITE with len=0 in WAVE chain, remove/add debug output, change DebugInt3 for debug/nondebug version, move unused code to unused directore

File:
1 edited

Legend:

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

    r418 r468  
    3939
    4040//******************************************************************************
     41// Here we ask to mmpm - give me next buffer
    4142//******************************************************************************
    4243void STREAM::ReturnBuffer(void)
     
    5152        // if this is a write (playback) then set the streamtype and
    5253        // tell the stream handler that we played all of the buffer.
    53         if (ulStreamType & STREAM_WRITE) {
     54        if (ulStreamType & STREAM_WRITE)
     55       {
    5456                shdri.ulFlag = SHD_WRITE_COMPLETE;
    5557                shdri.ulStatus = temp->ulBuffsz;
     
    171173ULONG STREAM::Register(PDDCMDREGISTER p)
    172174{
     175   ddprintf(("STREAM::Register"));
    173176   hstream             = p->hStream;
    174177   pfnSHD              = (PFN_SHD) p->pSHDEntryPoint;
     
    213216{
    214217
     218//   dprintf(("STREAM::SetNextEvent"));
    215219   // if there are no events or only one event on the
    216220   // queue just return
     
    232236   // event to time out.. if it is not already on
    233237   // the head of the Event queue then put it there
    234    if (pele2 != qhEvent.Head()) {
     238   if (pele2 != qhEvent.Head())
     239   {
    235240      cli();
    236241      qhEvent.PopElement(pele2);
Note: See TracChangeset for help on using the changeset viewer.