home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d8xx / d807 / voicecode.lha / VoiceCode / C_Code / voice.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-25  |  1.4 KB  |  70 lines

  1. /* C header file for voice.library.
  2.  
  3.    This header should be #included in any C program 
  4.    which uses voice.library functions.
  5.  
  6.    voice.o was generated by the genstubs program supplied 
  7.    with Sozobon's ZC C compiler archive. This should
  8.    be linked with C any code that uses voice.library 
  9.    functions.
  10.  
  11.    The voice_lib.fd file used as source to genstubs was
  12.    prepared from the voice.library documentation.
  13.  
  14.    voice.library is copyright Richard Horne, December 1992.
  15.  
  16.    Many thanks to Richard for his excellent work on voice.library!
  17.  
  18.    David J Benn, 
  19.    Launceston, Tasmania
  20.    December 1992 
  21. */
  22.  
  23. #include <exec/types.h>
  24.  
  25.  
  26. #define VoiceName    "voice.library"    /* name of library */
  27. #define FREQ_MAP_SIZE    304L        /* # of bytes in each frequency map */
  28.  
  29.  
  30. /* digitisers */
  31.  
  32. #define PERFECTSOUND3    0L
  33. #define    SOUNDMASTER    1L
  34. #define GENERIC        2L
  35.  
  36.  
  37. /* timers */
  38. #define TimerA        1L
  39. #define TimerB        0L
  40.  
  41.  
  42. /* recognition resolution */
  43.  
  44. #define HIGH_RES    0L
  45. #define LOW_RES        1L
  46.  
  47.  
  48. /* errors */
  49.  
  50. #define    NO_MATCH    -1L
  51. #define TOO_LOUD    -2L
  52. #define TOO_SOFT    -3L
  53. #define CONFUSED    -4L
  54.  
  55.  
  56. /* external functions (voice.o stubs) */
  57.  
  58. extern     ULONG     Learn();
  59. extern     LONG     Recognise();
  60. extern     void     AddVoiceTask();
  61. extern     void     RemVoiceTask();
  62. extern     void     GainUp();
  63. extern     void     GainDown();
  64. extern     ULONG     RecDataAddress();
  65. extern     ULONG     RecMapAddress();
  66. extern     ULONG     WordScore();
  67. extern     void     PickSampler();
  68. extern     LONG     SetVoicePri();
  69. extern     void     PickTimer();
  70.