Ignore:
Timestamp:
Apr 30, 2001, 11:08:00 PM (24 years ago)
Author:
sandervl
Message:

DirectAudio interface updates

File:
1 edited

Legend:

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

    r166 r178  
    4040   virtual ULONG  GetCurrentTime(void);
    4141   virtual ULONG  GetCurrentPos(void);
     42   virtual ULONG  GetCurrentWritePos(void);
    4243   virtual void   SetCurrentTime(ULONG time);
    4344   virtual ULONG  Read(PSTREAMBUF, unsigned);
    44    virtual ULONG  Write(PSTREAMBUF, ULONG);
     45   virtual ULONG  Write(PSTREAMBUF, ULONG, BOOL fLooping = 0);
    4546           ULONG  Write(PSTREAMBUFFER);
    4647   virtual ULONG  StartStream(void);
     
    5152   virtual ~WAVESTREAM();
    5253
    53    virtual void  SetInputSrc(int src);
    54    virtual void  SetInputGain(ULONG gain);
    55    virtual void  SetVolume(ULONG volume);
    56 //   virtual void  SetBalance(ULONG balance);
     54   virtual BOOL  SetProperty(int type, ULONG value, ULONG reserved = 0);
     55   virtual ULONG GetProperty(int type);
    5756
    58 private:
     57protected:
    5958
    6059   ULONG   _ulAudioBufSz;         // size of the audio buffer
     
    6261   ULONG   _ulBytesProcessed;     // number of bytes consumed or produces
    6362   ULONG   _ulTimeBase;           // value in ms. MMPM sends for stream time
     63   ULONG   fragsize;
    6464   USHORT  _vRealignBuffer(ULONG FAR *endpos, PSTREAMBUFFER pbuffer);
    6565   void    _vRealignPausedBuffers(ULONG endpos = 0);
    66    void    AddBuffers();            // Initialize the audio buffer object
     66   virtual void    AddBuffers(BOOL fFirst);         // Initialize the audio buffer object
    6767   ULONG   AddBuffer(ULONG space);             // write one buffer to the audio buffer
    6868   BOOL    _vReadAudioBuf(void);    // read data from the audio buffer
Note: See TracChangeset for help on using the changeset viewer.