home *** CD-ROM | disk | FTP | other *** search
/ PC Musician 2000 / PC_Musician_2000.iso / PCMUSIC / NOTATION / SILENCE / RAWWVOUT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-08  |  1.6 KB  |  80 lines

  1. /*******************************************/
  2. /*  Raw Wave File Output Class,            */
  3. /*  by Perry R. Cook, 1995-96              */ 
  4. /*  For now, This Object can open a raw    */
  5. /*  16bit data (signed integers) file, and */
  6. /*  poke buffers of samples into it.       */
  7. /*******************************************/
  8.  
  9. /*******************************************/
  10. /*  SGI Real-Time Wave File Output Class,  */
  11. /*  by Perry R. Cook, 1995-96              */ 
  12. /*  This Object can opens the SGI soundout */
  13. /*  device, and pokes buffers of samples   */
  14. /*  into it.  The real code that does the  */
  15. /*  work is from Doug Scott of SGI.        */
  16. /*******************************************/
  17.  
  18.  
  19. #include "Object.h"
  20.  
  21. #if !defined(__RawWvOut_h)
  22. #define __RawWvOut_h
  23.  
  24. #if defined(__NeXT_)
  25.  
  26. #define BUFFER_SIZE 1
  27.  
  28. class RawWvOut : public Object
  29. {
  30.   protected:  
  31.     FILE *fd;
  32.     short data[BUFFER_SIZE];
  33.     long counter;
  34.     long totalCount;
  35.   public:
  36.     RawWvOut(char *fileName);
  37.     ~RawWvOut();
  38.     long getCounter();
  39.     void tick(MY_FLOAT sample);
  40. };
  41.  
  42. #endif
  43.  
  44. #if defined(__SGI_REALTIME_)
  45.  
  46. #define BUFFER_SIZE 128
  47.  
  48. class RawWvOut : public Object
  49. {
  50.   protected:  
  51.     FILE *fd;
  52.     short data[BUFFER_SIZE];
  53.     long counter;
  54.   public:
  55.     RawWvOut(char *fileName);
  56.     ~RawWvOut();
  57.     void tick(MY_FLOAT sample);
  58. };
  59.  
  60. #endif
  61.  
  62. #if defined(__WIN95_REALTIME_)
  63.  
  64. #define BUFFER_SIZE 2048
  65.  
  66. class RawWvOut : public Object
  67. {
  68.   protected:  
  69.     FILE *fd;
  70.     long counter;
  71.   public:
  72.     RawWvOut(char *fileName);
  73.     ~RawWvOut();
  74.     void tick(MY_FLOAT sample);
  75. };
  76.  
  77. #endif
  78.  
  79. #endif
  80.