home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / XBD2_SRC.ZIP / XBD2_SRC / SOUND.H < prev    next >
C/C++ Source or Header  |  1991-02-10  |  1KB  |  42 lines

  1. /****************************************************************************/
  2. /*                                                                          */
  3. /*    SOUND.H : header for sound functions.                                  */
  4. /*                                                                          */
  5. /*            declare all structures for a sound sample                    */
  6. /*            declare all availabled functions                             */
  7. /*                                                                          */
  8. /*    (c) Hervé Soulard, Version 1.0 - 10/01/1991                            */
  9. /*                       Version 1.1 - 01/02/1991                            */
  10. /*                                                                          */
  11. /****************************************************************************/
  12.  
  13.  
  14. #ifndef    byte
  15. #define    byte        unsigned char
  16. #endif
  17.  
  18. #ifndef _SOUND_H_
  19.  
  20. #define _SOUND_H_
  21.  
  22.  
  23. #define IDENT        "HS PC-Sound file format (V 1.0)"
  24.  
  25. struct sound {
  26.     char            ident[32];
  27.     byte _huge    *buffer;
  28.     unsigned long    nbValues;
  29.     unsigned int    hertz;
  30.     byte            timer;
  31.     byte            mult;
  32.     char            memo[255];
  33. };
  34.  
  35. int readSound(char *, struct sound *);
  36. void closeSound(struct sound *);
  37.  
  38. extern int playSound(struct sound);
  39. extern byte soundDone;
  40.  
  41. #endif
  42.