GUSMIDI.H 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. #ifndef __GUSMIDI_H
  16. #define __GUSMIDI_H
  17. extern struct gf1_dma_buff GUS_HoldBuffer;
  18. enum GUS_Errors
  19. {
  20. GUS_Warning = -2,
  21. GUS_Error = -1,
  22. GUS_Ok = 0,
  23. GUS_OutOfMemory,
  24. GUS_OutOfDosMemory,
  25. GUS_OutOfDRAM,
  26. GUS_GF1Error,
  27. GUS_InvalidIrq,
  28. GUS_ULTRADIRNotSet,
  29. GUS_MissingConfig,
  30. GUS_FileError
  31. };
  32. char *GUS_ErrorString( int ErrorNumber );
  33. int GUS_GetPatchMap( char *name );
  34. int GUSMIDI_UnloadPatch( int prog );
  35. int GUSMIDI_LoadPatch( int prog );
  36. void GUSMIDI_ProgramChange( int channel, int prog );
  37. void GUSMIDI_NoteOn( int chan, int note, int velocity );
  38. void GUSMIDI_NoteOff( int chan, int note, int velocity );
  39. void GUSMIDI_ControlChange( int channel, int number, int value );
  40. void GUSMIDI_PitchBend( int channel, int lsb, int msb );
  41. void GUSMIDI_ReleasePatches( void );
  42. void GUSMIDI_SetVolume( int volume );
  43. int GUSMIDI_GetVolume( void );
  44. int GUS_Init( void );
  45. void GUS_Shutdown( void );
  46. #pragma aux GUS_Shutdown frame;
  47. int GUSMIDI_Init( void );
  48. void GUSMIDI_Shutdown( void );
  49. void *D32DosMemAlloc( unsigned size );
  50. #endif