Changeset 483 for OCO/trunk/drv16/stream.cpp
- Timestamp:
- May 6, 2010, 3:08:34 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OCO/trunk/drv16/stream.cpp
r468 r483 46 46 PSTREAMBUFFER temp = (PSTREAMBUFFER)qhDone.PopHead(); 47 47 48 if (temp) 48 if (temp) 49 49 { 50 50 shdri.ulFunction = SHD_REPORT_INT; … … 52 52 // if this is a write (playback) then set the streamtype and 53 53 // tell the stream handler that we played all of the buffer. 54 if (ulStreamType & STREAM_WRITE) 55 {54 if (ulStreamType & STREAM_WRITE) 55 { 56 56 shdri.ulFlag = SHD_WRITE_COMPLETE; 57 57 shdri.ulStatus = temp->ulBuffsz; … … 66 66 shdri.pBuffer = temp->pBuffptr; 67 67 shdri.ulStreamTime = GetCurrentTime(); 68 //ddprintf(("Returning %lx Time=%lx", temp->pBuffptr, shdri.ulStreamTime)); 68 69 pfnSHD(&shdri); 69 70 delete temp; … … 94 95 //SvL: BUGFIX: check all events 95 96 #if 1 96 if (qhEvent.IsElements()) { 97 PEVENT pnextevent = (PEVENT)qhEvent.Head(); 98 ULONG time = GetCurrentTime(); 99 while(pnextevent) { 100 ULONG eventtime = pnextevent->GetEventTime(); 101 if (eventtime <= time) 102 pnextevent->Report(time); 103 pnextevent = (PEVENT)pnextevent->pNext; 97 if (qhEvent.IsElements()) { 98 PEVENT pnextevent = (PEVENT)qhEvent.Head(); 99 ULONG time = GetCurrentTime(); 100 while(pnextevent) { 101 ULONG eventtime = pnextevent->GetEventTime(); 102 if (eventtime <= time) 103 pnextevent->Report(time); 104 pnextevent = (PEVENT)pnextevent->pNext; 105 } 104 106 } 105 }106 107 #else 107 108 if (qhEvent.IsElements()) { … … 173 174 ULONG STREAM::Register(PDDCMDREGISTER p) 174 175 { 175 ddprintf(("STREAM::Register"));176 // ddprintf(("STREAM::Register")); 176 177 hstream = p->hStream; 177 178 pfnSHD = (PFN_SHD) p->pSHDEntryPoint; … … 236 237 // event to time out.. if it is not already on 237 238 // the head of the Event queue then put it there 238 if (pele2 != qhEvent.Head()) 239 if (pele2 != qhEvent.Head()) 239 240 { 240 241 cli(); … … 328 329 //****************************************************************************** 329 330 //****************************************************************************** 330 ULONG STREAM::GetProperty(int type) 331 ULONG STREAM::GetProperty(int type) 331 332 { 332 333 switch(type) { … … 358 359 } 359 360 //****************************************************************************** 360 static int streamtype[STREAM_MAX_TYPES] = {STREAM_WAVE_CAPTURE, STREAM_WAVE_PLAY, 361 static int streamtype[STREAM_MAX_TYPES] = {STREAM_WAVE_CAPTURE, STREAM_WAVE_PLAY, 361 362 STREAM_MPU401_CAPTURE, 362 363 STREAM_MPU401_PLAY, STREAM_FMSYNTH_PLAY};
Note:
See TracChangeset
for help on using the changeset viewer.