Changeset 166 for sbliveos2/trunk/drv16/wavestrm.cpp
- Timestamp:
- Mar 22, 2001, 7:13:01 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sbliveos2/trunk/drv16/wavestrm.cpp
r160 r166 316 316 } 317 317 318 ULONG WAVESTREAM::Write(PSTREAMBUF pbuf, unsigned uLength) 319 { 320 qhInProcess.PushOnTail((PQUEUEELEMENT)new STREAMBUFFER(uLength, pbuf)); 318 ULONG WAVESTREAM::Write(PSTREAMBUF pbuf, ULONG uLength) 319 { 320 PSTREAMBUFFER pStreamBuf = new STREAMBUFFER(uLength, pbuf); 321 322 return Write(pStreamBuf); 323 } 324 325 ULONG WAVESTREAM::Write(PSTREAMBUFFER pStreamBuf) 326 { 327 qhInProcess.PushOnTail((PQUEUEELEMENT)pStreamBuf); 321 328 dprintf2(("WAVESTREAM::Write: Push on tail %lx %d", ((PSTREAMBUFFER)qhInProcess.Head())->pBuffptr, ((PSTREAMBUFFER)qhInProcess.Head())->ulBuffsz)); 322 329 if(fUnderrun) { … … 376 383 } 377 384 385 ULONG WAVESTREAM::GetCurrentPos(void) 386 { 387 ULONG Processed; 388 389 if (ulStreamState == STREAM_STREAMING) // if the stream is active 390 { 391 if (ulStreamType & STREAM_WRITE) { 392 OSS16_StreamGetPos(this, &Processed); 393 } 394 else Processed = _ulBytesProcessed; 395 } 396 else Processed = _ulBytesProcessed; 397 398 return Processed; 399 } 400 378 401 // 379 402 // SetCurrentTime
Note:
See TracChangeset
for help on using the changeset viewer.