GUSWAVE.H 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. module: GUSWAVE.H
  17. author: James R. Dose
  18. date: March 23, 1994
  19. Public header for for GUSWAVE.C
  20. (c) Copyright 1994 James R. Dose. All Rights Reserved.
  21. **********************************************************************/
  22. #ifndef __GUSWAVE_H
  23. #define __GUSWAVE_H
  24. #define GUSWAVE_MinVoiceHandle 1
  25. enum GUSWAVE_Errors
  26. {
  27. GUSWAVE_Warning = -2,
  28. GUSWAVE_Error = -1,
  29. GUSWAVE_Ok = 0,
  30. GUSWAVE_GUSError,
  31. GUSWAVE_NotInstalled,
  32. GUSWAVE_NoVoices,
  33. GUSWAVE_UltraNoMem,
  34. GUSWAVE_UltraNoMemMIDI,
  35. GUSWAVE_VoiceNotFound,
  36. GUSWAVE_InvalidVOCFile,
  37. GUSWAVE_InvalidWAVFile
  38. };
  39. char *GUSWAVE_ErrorString( int ErrorNumber );
  40. int GUSWAVE_VoicePlaying( int handle );
  41. int GUSWAVE_VoicesPlaying( void );
  42. int GUSWAVE_Kill( int handle );
  43. int GUSWAVE_KillAllVoices( void );
  44. int GUSWAVE_SetPitch( int handle, int pitchoffset );
  45. int GUSWAVE_SetPan3D( int handle, int angle, int distance );
  46. void GUSWAVE_SetVolume( int volume );
  47. int GUSWAVE_GetVolume( void );
  48. int GUSWAVE_VoiceAvailable( int priority );
  49. int GUSWAVE_PlayVOC( char *sample, int pitchoffset, int angle, int volume,
  50. int priority, unsigned long callbackval );
  51. int GUSWAVE_PlayWAV( char *sample, int pitchoffset, int angle, int volume,
  52. int priority, unsigned long callbackval );
  53. int GUSWAVE_StartDemandFeedPlayback( void ( *function )( char **ptr, unsigned long *length ),
  54. int channels, int bits, int rate, int pitchoffset, int angle,
  55. int volume, int priority, unsigned long callbackval );
  56. void GUSWAVE_SetCallBack( void ( *function )( unsigned long ) );
  57. void GUSWAVE_SetReverseStereo( int setting );
  58. int GUSWAVE_GetReverseStereo( void );
  59. int GUSWAVE_Init( int numvoices );
  60. void GUSWAVE_Shutdown( void );
  61. #pragma aux GUSWAVE_Shutdown frame;
  62. #endif