Ignore:
Timestamp:
Mar 22, 2001, 7:13:01 PM (24 years ago)
Author:
sandervl
Message:

update for new direct audio interface

File:
1 edited

Legend:

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

    r160 r166  
    316316}
    317317
    318 ULONG WAVESTREAM::Write(PSTREAMBUF pbuf, unsigned uLength)
    319 {
    320    qhInProcess.PushOnTail((PQUEUEELEMENT)new STREAMBUFFER(uLength, pbuf));
     318ULONG WAVESTREAM::Write(PSTREAMBUF pbuf, ULONG uLength)
     319{
     320 PSTREAMBUFFER pStreamBuf = new STREAMBUFFER(uLength, pbuf);
     321
     322   return Write(pStreamBuf);
     323}
     324
     325ULONG WAVESTREAM::Write(PSTREAMBUFFER pStreamBuf)
     326{
     327   qhInProcess.PushOnTail((PQUEUEELEMENT)pStreamBuf);
    321328   dprintf2(("WAVESTREAM::Write: Push on tail %lx %d", ((PSTREAMBUFFER)qhInProcess.Head())->pBuffptr, ((PSTREAMBUFFER)qhInProcess.Head())->ulBuffsz));
    322329   if(fUnderrun) {
     
    376383}
    377384
     385ULONG 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
    378401//
    379402// SetCurrentTime
Note: See TracChangeset for help on using the changeset viewer.