home *** CD-ROM | disk | FTP | other *** search
/ Large Pack of OldSkool DOS MOD Trackers / buzz1.zip / Dev / AudioDriver.h next >
C/C++ Source or Header  |  1998-03-09  |  922b  |  38 lines

  1. #ifndef __BUZZ_AUDIO_DRIVER_H
  2. #define __BUZZ_AUDIO_DRIVER_H
  3.  
  4. typedef unsigned char byte;
  5. typedef unsigned short word;
  6. typedef unsigned long dword;
  7.  
  8. #define ADF_STEREO        1        // this is currently required by buzz
  9.  
  10. class CAudioDriver
  11. {
  12. public:
  13.     virtual ~CAudioDriver() {};
  14.     virtual void Initialize(dword hwnd, float *(*pcallback)(int &numsamples)) {};
  15.     virtual void Reset() {};
  16.     virtual bool Enable(bool e) { return false; };    
  17.     virtual int GetWritePos() { return 0; };
  18.     virtual int GetPlayPos() { return 0; };
  19.     virtual void Configure() {};
  20.  
  21. public:
  22.     int SamplesPerSec;
  23.     int Flags;
  24.  
  25.     void (*ReadProfileString)(char const *key, char *value);
  26.     void (*WriteProfileString)(char const *key, char const *value);
  27.     int (*ReadProfileInt)(char const *key, int const value);
  28.     void (*WriteProfileInt)(char const *key, int const value);
  29. };
  30.  
  31. class CAudioDriverInfo
  32. {
  33. public:
  34.     char const *Name;
  35. };
  36.  
  37.  
  38. #endif