AL_MIDI.H 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 __AL_MIDI_H
  16. #define __AL_MIDI_H
  17. enum AL_Errors
  18. {
  19. AL_Warning = -2,
  20. AL_Error = -1,
  21. AL_Ok = 0,
  22. };
  23. #define AL_MaxVolume 127
  24. #define AL_DefaultChannelVolume 90
  25. //#define AL_DefaultPitchBendRange 2
  26. #define AL_DefaultPitchBendRange 200
  27. #define ADLIB_PORT 0x388
  28. void AL_SendOutputToPort( int port, int reg, int data );
  29. void AL_SendOutput( int voice, int reg, int data );
  30. void AL_StereoOn( void );
  31. void AL_StereoOff( void );
  32. int AL_ReserveVoice( int voice );
  33. int AL_ReleaseVoice( int voice );
  34. void AL_Shutdown( void );
  35. int AL_Init( int soundcard );
  36. void AL_SetMaxMidiChannel( int channel );
  37. void AL_Reset( void );
  38. void AL_NoteOff( int channel, int key, int velocity );
  39. void AL_NoteOn( int channel, int key, int vel );
  40. //Turned off to test if it works with Watcom 10a
  41. // #pragma aux AL_NoteOn frame;
  42. void AL_AllNotesOff( int channel );
  43. void AL_ControlChange( int channel, int type, int data );
  44. void AL_ProgramChange( int channel, int patch );
  45. void AL_SetPitchBend( int channel, int lsb, int msb );
  46. int AL_DetectFM( void );
  47. void AL_RegisterTimbreBank( unsigned char *timbres );
  48. #endif