home *** CD-ROM | disk | FTP | other *** search
/ Windows 95 Secrets / Secrets2.iso / Audio / WAV / MaplayP / _SETUP.1 / wavefile_obuffer.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-06-18  |  981 b   |  51 lines

  1. /* wavefile_obuffer.h
  2.  
  3.     Output buffer declarations for writing to a PCM wave file
  4.    in Win32, written by Jeff Tsay (ctsay@pasteur.eecs.berkeley.edu). */
  5.  
  6. #ifndef WAVEFILE_OBUFFER_H
  7. #define WAVEFILE_OBUFFER_H
  8.  
  9. #ifdef  __WIN32__
  10. #define STRICT
  11. #include <windows.h>
  12.  
  13. #include "all.h"
  14. #include "header.h"
  15. #include "args.h"
  16. #include "obuffer.h"
  17.  
  18. class Wavefile_Obuffer : public Obuffer
  19. {
  20. private:
  21.  
  22.   uint32 bufferp[MAXCHANNELS];
  23.   uint32 channels;
  24.   uint32 data_size;
  25.  
  26.   BYTE *temp;
  27.  
  28.   HMMIO    hmmioOut;
  29.   MMIOINFO mmioinfoOut;
  30.   MMCKINFO ckOutRIFF;
  31.   MMCKINFO ckOut;
  32.  
  33. public:
  34.     Wavefile_Obuffer(uint32 number_of_channels, MPEG_Args *maplay_args);
  35.     ~Wavefile_Obuffer();
  36.  
  37.   void    append(uint32 channel, int16 value);
  38.   void    write_buffer(int32 fd);
  39.  
  40. #ifdef SEEK_STOP
  41.   void   clear_buffer();
  42.   void   set_stop_flag();
  43. #endif
  44.  
  45. };
  46.  
  47. Obuffer *create_Wavefile_obuffer(MPEG_Args *maplay_args);
  48.  
  49. #endif // __WIN32__
  50. #endif // WAVEFILE_OBUFFER_H
  51.