OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../tse3/compile-fix.patch
  5. # Copyright (C) 2008 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- tse3-0.3.1.orig/src/tse3/plt/OSS.h
  17. +++ tse3-0.3.1/src/tse3/plt/OSS.h
  18. @@ -253,4 +253,28 @@
  19. }
  20. }
  21. +#define _AWE_MODE_FLAG 0x80
  22. +#define _AWE_SET_CMD(p,dev,voice,cmd,p1,p2) \
  23. +{((char*)(p))[0] = SEQ_PRIVATE;\
  24. + ((char*)(p))[1] = dev;\
  25. + ((char*)(p))[2] = _AWE_MODE_FLAG|(cmd);\
  26. + ((char*)(p))[3] = voice;\
  27. + ((unsigned short*)(p))[2] = p1;\
  28. + ((unsigned short*)(p))[3] = p2;}
  29. +
  30. +#define _AWE_CMD(dev, voice, cmd, p1, p2) \
  31. +{_SEQ_NEEDBUF(8);\
  32. + _AWE_SET_CMD(_seqbuf + _seqbufptr, dev, voice, cmd, p1, p2);\
  33. + _SEQ_ADVBUF(8);}
  34. +#define _AWE_DRUM_CHANNELS 0x0b
  35. +#define AWE_DRUM_CHANNELS(dev,channels) _AWE_CMD(dev, 0, _AWE_DRUM_CHANNELS, ((channels) & 0xffff), ((channels) >> 16))
  36. +#define _AWE_CHANNEL_MODE 0x0a
  37. +#define AWE_PLAY_MULTI 1 /* multi note voice mode */
  38. +#define AWE_SET_CHANNEL_MODE(dev,mode) _AWE_CMD(dev, 0, _AWE_CHANNEL_MODE, mode, 0)
  39. +#define _AWE_TERMINATE_ALL 0x07
  40. +#define AWE_TERMINATE_ALL(dev) _AWE_CMD(dev, 0, _AWE_TERMINATE_ALL, 0, 0)
  41. +#ifndef SAMPLE_TYPE_AWE32
  42. +#define SAMPLE_TYPE_AWE32 0x20
  43. +#endif
  44. +
  45. #endif