ADLIBFX.H 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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: ADLIBFX.H
  17. author: James R. Dose
  18. date: April 1, 1994
  19. Public header for ADLIBFX.C
  20. (c) Copyright 1994 James R. Dose. All Rights Reserved.
  21. **********************************************************************/
  22. #ifndef __ADLIBFX_H
  23. #define __ADLIBFX_H
  24. enum ADLIBFX_Errors
  25. {
  26. ADLIBFX_Warning = -2,
  27. ADLIBFX_Error = -1,
  28. ADLIBFX_Ok = 0,
  29. ADLIBFX_NoVoices,
  30. ADLIBFX_VoiceNotFound,
  31. ADLIBFX_DPMI_Error
  32. };
  33. typedef struct
  34. {
  35. unsigned long length;
  36. short int priority;
  37. char mChar, cChar;
  38. char mScale, cScale;
  39. char mAttack, cAttack;
  40. char mSus, cSus;
  41. char mWave, cWave;
  42. char nConn;
  43. char voice;
  44. char mode;
  45. char unused[ 3 ];
  46. char block;
  47. char data[];
  48. } ALSound;
  49. #define ADLIBFX_MaxVolume 255
  50. #define ADLIBFX_MinVoiceHandle 1
  51. char *ADLIBFX_ErrorString( int ErrorNumber );
  52. int ADLIBFX_Stop( int handle );
  53. int ADLIBFX_SetVolume( int handle, int volume );
  54. int ADLIBFX_SetTotalVolume( int volume );
  55. int ADLIBFX_GetTotalVolume( void );
  56. int ADLIBFX_VoiceAvailable( int priority );
  57. int ADLIBFX_Play( ALSound *sound, int volume, int priority, unsigned long callbackval );
  58. int ADLIBFX_SoundPlaying( int handle );
  59. void ADLIBFX_SetCallBack( void ( *function )( unsigned long ) );
  60. int ADLIBFX_Init( void );
  61. int ADLIBFX_Shutdown( void );
  62. #pragma aux ADLIBFX_Shutdown frame;
  63. void PCFX_UnlockMemory( void );
  64. #pragma aux ADLIBFX_UnlockMemory frame;
  65. int PCFX_LockMemory( void );
  66. #endif