home *** CD-ROM | disk | FTP | other *** search
/ Over Load / MAXIWIN7.ISO / programs / display / include / xsnd.h < prev   
Encoding:
C/C++ Source or Header  |  1995-05-14  |  2.8 KB  |  102 lines

  1. #ifndef __XSND_H
  2. #define __XSND_H
  3.  
  4. /**********************************************************/
  5. /*/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\*/
  6. /*
  7. Copyright: 1995 - Borja Etxebarria
  8. */
  9. /*/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\*/
  10. /**********************************************************/
  11.  
  12. #include "tdef.h"
  13.  
  14. /**********************************************************/
  15.  
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19.  
  20. /**********************************************************/
  21.  
  22. #define XSND_RECORD TRUE
  23. #define XSND_PLAY FALSE
  24. #define XSND_MONO FALSE
  25. #define XSND_STEREO TRUE
  26.  
  27. /**********************************************************/
  28.  
  29. #define xsnd_open  xsnd16_open
  30. #define xsnd_close  xsnd16_close
  31. #define xsnd_getblk  xsnd16_getblk
  32. #define xsnd_addblk  xsnd16_addblk
  33. #define xsnd_addlastblk  xsnd16_addlastblk
  34. #define xsnd_stopped  xsnd16_stopped
  35. #define xsnd_blocked  xsnd16_blocked
  36. #define xsnd_reset  xsnd16_reset
  37. #define xsnd_start  xsnd16_start
  38. #define xsnd_stop  xsnd16_stop
  39. #define xsnd_getoverrun  xsnd16_getoverrun
  40. #define xsnd_getblknum  xsnd16_getblknum
  41. #define xsnd_getnblk  xsnd16_getnblk
  42. #define xsnd_initialize  xsnd16_initialize
  43. #define xsnd_srate  xsnd16_srate
  44. #define xsnd_getsrate  xsnd16_getsrate
  45.  
  46. /**********************************************************/
  47.  
  48. UINT16 xsnd16_open( BOOL record, UINT16 srate, BOOL stereo,
  49.         UINT32 blklen, UINT16 numblk, VOID (PTRF usrproc) ( BOOL last) );
  50. UINT16 xsnd16_close( VOID );
  51. pfINT16 xsnd16_getblk( VOID );
  52. UINT16 xsnd16_addblk( VOID );
  53. UINT16 xsnd16_addlastblk( UINT32 len );
  54. BOOL xsnd16_stopped( VOID );
  55. BOOL xsnd16_blocked( VOID );
  56.  
  57. UINT16 xsnd16_reset( VOID );
  58. UINT16 xsnd16_start( VOID );
  59. UINT16 xsnd16_stop( VOID );
  60. UINT16 xsnd16_getoverrun( VOID );
  61.  
  62. pfINT16 xsnd16_getblknum( UINT2 nblk );
  63. UINT16 xsnd16_getnblk( VOID );
  64.  
  65. UINT16 xsnd16_srate( UINT16 srate );
  66. DOUBLE xsnd16_getsrate( VOID );
  67.  
  68. UINT16 xsnd16_initialize( VOID );
  69.  
  70. /**********************************************************/
  71.  
  72. UINT16 xsnd8_open( BOOL record, UINT16 srate, BOOL stereo,
  73.         UINT32 blklen, UINT16 numblk, VOID (PTRF usrproc) ( BOOL last) );
  74. UINT16 xsnd8_close( VOID );
  75. pfUINT8 xsnd8_getblk( VOID );
  76. UINT16 xsnd8_addblk( VOID );
  77. BOOL xsnd8_stopped( VOID );
  78. BOOL xsnd8_blocked( VOID );
  79.  
  80. UINT16 xsnd8_reset( VOID );
  81. UINT16 xsnd8_start( VOID );
  82. UINT16 xsnd8_stop( VOID );
  83. UINT16 xsnd8_getoverrun( VOID );
  84.  
  85. pfUINT8 xsnd8_getblknum( UINT2 nblk );
  86. UINT16 xsnd8_getnblk( VOID );
  87.  
  88. UINT16 xsnd8_srate( UINT16 srate );
  89. DOUBLE xsnd8_getsrate( VOID );
  90.  
  91. UINT16 xsnd8_initialize( VOID );
  92.  
  93. /**********************************************************/
  94.  
  95. #ifdef __cplusplus
  96. }  /* extern "C" */
  97. #endif
  98.  
  99. /**********************************************************/
  100.  
  101. #endif
  102.