MULTIVOC.H 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /*
  2. Copyright (C) 1994-1995 Apogee Software, Ltd.
  3. This program is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU General Public License
  5. as published by the Free Software Foundation; either version 2
  6. of the License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. See the GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  14. */
  15. /**********************************************************************
  16. file: MULTIVOC.H
  17. author: James R. Dose
  18. date: December 20, 1993
  19. Public header for MULTIVOC.C
  20. (c) Copyright 1993 James R. Dose. All Rights Reserved.
  21. **********************************************************************/
  22. #ifndef __MULTIVOC_H
  23. #define __MULTIVOC_H
  24. #define MV_MinVoiceHandle 1
  25. extern int MV_ErrorCode;
  26. enum MV_Errors
  27. {
  28. MV_Warning = -2,
  29. MV_Error = -1,
  30. MV_Ok = 0,
  31. MV_UnsupportedCard,
  32. MV_NotInstalled,
  33. MV_NoVoices,
  34. MV_NoMem,
  35. MV_VoiceNotFound,
  36. MV_BlasterError,
  37. MV_PasError,
  38. MV_SoundScapeError,
  39. MV_SoundSourceError,
  40. MV_DPMI_Error,
  41. MV_InvalidVOCFile,
  42. MV_InvalidWAVFile,
  43. MV_InvalidMixMode,
  44. MV_SoundSourceFailure,
  45. MV_IrqFailure,
  46. MV_DMAFailure,
  47. MV_DMA16Failure,
  48. MV_NullRecordFunction
  49. };
  50. char *MV_ErrorString( int ErrorNumber );
  51. int MV_VoicePlaying( int handle );
  52. int MV_KillAllVoices( void );
  53. int MV_Kill( int handle );
  54. int MV_VoicesPlaying( void );
  55. int MV_VoiceAvailable( int priority );
  56. int MV_SetPitch( int handle, int pitchoffset );
  57. int MV_SetFrequency( int handle, int frequency );
  58. int MV_EndLooping( int handle );
  59. int MV_SetPan( int handle, int vol, int left, int right );
  60. int MV_Pan3D( int handle, int angle, int distance );
  61. void MV_SetReverb( int reverb );
  62. void MV_SetFastReverb( int reverb );
  63. int MV_GetMaxReverbDelay( void );
  64. int MV_GetReverbDelay( void );
  65. void MV_SetReverbDelay( int delay );
  66. int MV_SetMixMode( int numchannels, int samplebits );
  67. int MV_StartPlayback( void );
  68. void MV_StopPlayback( void );
  69. int MV_StartRecording( int MixRate, void ( *function )( char *ptr, int length ) );
  70. void MV_StopRecord( void );
  71. int MV_StartDemandFeedPlayback( void ( *function )( char **ptr, unsigned long *length ),
  72. int rate, int pitchoffset, int vol, int left, int right,
  73. int priority, unsigned long callbackval );
  74. int MV_PlayRaw( char *ptr, unsigned long length,
  75. unsigned rate, int pitchoffset, int vol, int left,
  76. int right, int priority, unsigned long callbackval );
  77. int MV_PlayLoopedRaw( char *ptr, unsigned long length,
  78. char *loopstart, char *loopend, unsigned rate, int pitchoffset,
  79. int vol, int left, int right, int priority,
  80. unsigned long callbackval );
  81. int MV_PlayWAV( char *ptr, int pitchoffset, int vol, int left,
  82. int right, int priority, unsigned long callbackval );
  83. int MV_PlayWAV3D( char *ptr, int pitchoffset, int angle, int distance,
  84. int priority, unsigned long callbackval );
  85. int MV_PlayLoopedWAV( char *ptr, long loopstart, long loopend,
  86. int pitchoffset, int vol, int left, int right, int priority,
  87. unsigned long callbackval );
  88. int MV_PlayVOC3D( char *ptr, int pitchoffset, int angle, int distance,
  89. int priority, unsigned long callbackval );
  90. int MV_PlayVOC( char *ptr, int pitchoffset, int vol, int left, int right,
  91. int priority, unsigned long callbackval );
  92. int MV_PlayLoopedVOC( char *ptr, long loopstart, long loopend,
  93. int pitchoffset, int vol, int left, int right, int priority,
  94. unsigned long callbackval );
  95. void MV_CreateVolumeTable( int index, int volume, int MaxVolume );
  96. void MV_SetVolume( int volume );
  97. int MV_GetVolume( void );
  98. void MV_SetCallBack( void ( *function )( unsigned long ) );
  99. void MV_SetReverseStereo( int setting );
  100. int MV_GetReverseStereo( void );
  101. int MV_Init( int soundcard, int MixRate, int Voices, int numchannels,
  102. int samplebits );
  103. int MV_Shutdown( void );
  104. void MV_UnlockMemory( void );
  105. int MV_LockMemory( void );
  106. #endif