home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / m / m003_1 / sdk_dos.ddi / C / INCLUDE / SBCVOICE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-11-04  |  2.8 KB  |  83 lines

  1. /*  Comman variables for card settings  */
  2.  
  3. #ifndef   ct_io_addx
  4.      extern   unsigned     near       ct_io_addx ;
  5.      extern   unsigned     near       ct_int_num ;
  6.      extern   unsigned   near      ct_dma_channel ;
  7.      extern   unsigned   near      wCardID ;
  8. #endif
  9.  
  10.  
  11. #ifndef   NO_ERROR
  12.      #define NO_ERROR         0
  13. #endif
  14.  
  15.  
  16. /*  Voice I/O status  */
  17. extern unsigned near ct_voice_status ;
  18.  
  19.  
  20. /*  Function prototypes for Memory Voice Driver routines */
  21.  
  22. unsigned    ctvm_version(void) ;
  23. int         ctvm_init(void) ;
  24. void        ctvm_speaker( int on_off_flag );
  25. int         ctvm_input( char far *buffer_ptr, unsigned long buffer_size,
  26.                         unsigned sampling_rate );
  27. int         ctvm_output( char far *buffer_ptr );
  28. void        ctvm_stop( void );
  29. int         ctvm_pause( void );
  30. int         ctvm_continue( void );
  31. int         ctvm_break_loop( int break_mode );
  32. void        ctvm_terminate( void );
  33. int         ctvm_outputxms( unsigned xms_handle, unsigned long xms_offset );
  34. int         ctvm_inputxms( unsigned xms_handle, unsigned sampling_rate,
  35.                            unsigned long xms_offset, unsigned buffer_length );
  36. int         ctvm_get_cardtype( void );
  37. unsigned long   ctvm_get_ADC_range( int mode );
  38. unsigned long   ctvm_get_DAC_range( int mode );
  39. int         ctvm_set_stereo( int mode );
  40. int         ctvm_set_input_source( int source );
  41. int         ctvm_set_input_freq( int freq );
  42. int         ctvm_ANFI_control( int option );
  43. int         ctvm_DNFI_control( int option );
  44. int         ctvm_get_ANFI( void );
  45. int         ctvm_get_DNFI( void );
  46.  
  47.  
  48. /*  Function prototypes for Disk Double-Buffering Voiec Driver routines  */
  49. unsigned    ctvd_version( void );
  50. int         ctvd_init( int buffer_size );
  51. void        ctvd_speaker( int on_off_flag );
  52. int         ctvd_input( int file_handle, unsigned sampling_rate );
  53. int         ctvd_output( int file_handle );
  54. void        ctvd_stop( void );
  55. void        ctvd_pause( void );
  56. void        ctvd_continue( void );
  57. void        ctvd_break_loop( int break_mode );
  58. void        ctvd_terminate( void );
  59. int         ctvd_drv_error( void );
  60. int         ctvd_ext_error( void );
  61. void        ctvd_buffer_addx( char far *buffer, int buffer_size );
  62. int         ctvd_get_cardtype( void );
  63. unsigned long   ctvd_get_ADC_range( int mode );
  64. unsigned long   ctvd_get_DAC_range( int mode );
  65. int         ctvd_set_stereo( int mode );
  66. int         ctvd_set_input_source( int source );
  67. int         ctvd_set_input_freq( int freq );
  68. int         ctvd_ANFI_control( int option );
  69. int         ctvd_DNFI_control( int option );
  70. int         ctvd_get_ANFI( void );
  71. int         ctvd_get_DNFI( void );
  72.  
  73.  
  74. /*  Creative Voice file header structure  */
  75.  
  76. typedef   struct
  77.     {
  78.         char       id[20] ;
  79.         unsigned   voice_offset ;
  80.         unsigned   version ;
  81.         unsigned   check_code ;
  82.      } VOCHDR ;
  83.