emux_legacy.h 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. #ifndef __SOUND_EMUX_LEGACY_H
  2. #define __SOUND_EMUX_LEGACY_H
  3. /*
  4. * Copyright (c) 1999-2000 Takashi Iwai <tiwai@suse.de>
  5. *
  6. * Definitions of OSS compatible headers for Emu8000 device informations
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  21. *
  22. */
  23. #include <sound/seq_oss_legacy.h>
  24. /*
  25. * awe hardware controls
  26. */
  27. #define _EMUX_OSS_DEBUG_MODE 0x00
  28. #define _EMUX_OSS_REVERB_MODE 0x01
  29. #define _EMUX_OSS_CHORUS_MODE 0x02
  30. #define _EMUX_OSS_REMOVE_LAST_SAMPLES 0x03
  31. #define _EMUX_OSS_INITIALIZE_CHIP 0x04
  32. #define _EMUX_OSS_SEND_EFFECT 0x05
  33. #define _EMUX_OSS_TERMINATE_CHANNEL 0x06
  34. #define _EMUX_OSS_TERMINATE_ALL 0x07
  35. #define _EMUX_OSS_INITIAL_VOLUME 0x08
  36. #define _EMUX_OSS_INITIAL_ATTEN _EMUX_OSS_INITIAL_VOLUME
  37. #define _EMUX_OSS_RESET_CHANNEL 0x09
  38. #define _EMUX_OSS_CHANNEL_MODE 0x0a
  39. #define _EMUX_OSS_DRUM_CHANNELS 0x0b
  40. #define _EMUX_OSS_MISC_MODE 0x0c
  41. #define _EMUX_OSS_RELEASE_ALL 0x0d
  42. #define _EMUX_OSS_NOTEOFF_ALL 0x0e
  43. #define _EMUX_OSS_CHN_PRESSURE 0x0f
  44. #define _EMUX_OSS_EQUALIZER 0x11
  45. #define _EMUX_OSS_MODE_FLAG 0x80
  46. #define _EMUX_OSS_COOKED_FLAG 0x40 /* not supported */
  47. #define _EMUX_OSS_MODE_VALUE_MASK 0x3F
  48. /*
  49. * mode type definitions
  50. */
  51. enum {
  52. /* 0*/ EMUX_MD_EXCLUSIVE_OFF, /* obsolete */
  53. /* 1*/ EMUX_MD_EXCLUSIVE_ON, /* obsolete */
  54. /* 2*/ EMUX_MD_VERSION, /* read only */
  55. /* 3*/ EMUX_MD_EXCLUSIVE_SOUND, /* 0/1: exclusive note on (default=1) */
  56. /* 4*/ EMUX_MD_REALTIME_PAN, /* 0/1: do realtime pan change (default=1) */
  57. /* 5*/ EMUX_MD_GUS_BANK, /* bank number for GUS patches (default=0) */
  58. /* 6*/ EMUX_MD_KEEP_EFFECT, /* 0/1: keep effect values, (default=0) */
  59. /* 7*/ EMUX_MD_ZERO_ATTEN, /* attenuation of max volume (default=32) */
  60. /* 8*/ EMUX_MD_CHN_PRIOR, /* 0/1: set MIDI channel priority mode (default=1) */
  61. /* 9*/ EMUX_MD_MOD_SENSE, /* integer: modwheel sensitivity (def=18) */
  62. /*10*/ EMUX_MD_DEF_PRESET, /* integer: default preset number (def=0) */
  63. /*11*/ EMUX_MD_DEF_BANK, /* integer: default bank number (def=0) */
  64. /*12*/ EMUX_MD_DEF_DRUM, /* integer: default drumset number (def=0) */
  65. /*13*/ EMUX_MD_TOGGLE_DRUM_BANK, /* 0/1: toggle drum flag with bank# (def=0) */
  66. /*14*/ EMUX_MD_NEW_VOLUME_CALC, /* 0/1: volume calculation mode (def=1) */
  67. /*15*/ EMUX_MD_CHORUS_MODE, /* integer: chorus mode (def=2) */
  68. /*16*/ EMUX_MD_REVERB_MODE, /* integer: chorus mode (def=4) */
  69. /*17*/ EMUX_MD_BASS_LEVEL, /* integer: bass level (def=5) */
  70. /*18*/ EMUX_MD_TREBLE_LEVEL, /* integer: treble level (def=9) */
  71. /*19*/ EMUX_MD_DEBUG_MODE, /* integer: debug level (def=0) */
  72. /*20*/ EMUX_MD_PAN_EXCHANGE, /* 0/1: exchange panning direction (def=0) */
  73. EMUX_MD_END,
  74. };
  75. /*
  76. * effect parameters
  77. */
  78. enum {
  79. /* modulation envelope parameters */
  80. /* 0*/ EMUX_FX_ENV1_DELAY, /* WORD: ENVVAL */
  81. /* 1*/ EMUX_FX_ENV1_ATTACK, /* BYTE: up ATKHLD */
  82. /* 2*/ EMUX_FX_ENV1_HOLD, /* BYTE: lw ATKHLD */
  83. /* 3*/ EMUX_FX_ENV1_DECAY, /* BYTE: lw DCYSUS */
  84. /* 4*/ EMUX_FX_ENV1_RELEASE, /* BYTE: lw DCYSUS */
  85. /* 5*/ EMUX_FX_ENV1_SUSTAIN, /* BYTE: up DCYSUS */
  86. /* 6*/ EMUX_FX_ENV1_PITCH, /* BYTE: up PEFE */
  87. /* 7*/ EMUX_FX_ENV1_CUTOFF, /* BYTE: lw PEFE */
  88. /* volume envelope parameters */
  89. /* 8*/ EMUX_FX_ENV2_DELAY, /* WORD: ENVVOL */
  90. /* 9*/ EMUX_FX_ENV2_ATTACK, /* BYTE: up ATKHLDV */
  91. /*10*/ EMUX_FX_ENV2_HOLD, /* BYTE: lw ATKHLDV */
  92. /*11*/ EMUX_FX_ENV2_DECAY, /* BYTE: lw DCYSUSV */
  93. /*12*/ EMUX_FX_ENV2_RELEASE, /* BYTE: lw DCYSUSV */
  94. /*13*/ EMUX_FX_ENV2_SUSTAIN, /* BYTE: up DCYSUSV */
  95. /* LFO1 (tremolo & vibrato) parameters */
  96. /*14*/ EMUX_FX_LFO1_DELAY, /* WORD: LFO1VAL */
  97. /*15*/ EMUX_FX_LFO1_FREQ, /* BYTE: lo TREMFRQ */
  98. /*16*/ EMUX_FX_LFO1_VOLUME, /* BYTE: up TREMFRQ */
  99. /*17*/ EMUX_FX_LFO1_PITCH, /* BYTE: up FMMOD */
  100. /*18*/ EMUX_FX_LFO1_CUTOFF, /* BYTE: lo FMMOD */
  101. /* LFO2 (vibrato) parameters */
  102. /*19*/ EMUX_FX_LFO2_DELAY, /* WORD: LFO2VAL */
  103. /*20*/ EMUX_FX_LFO2_FREQ, /* BYTE: lo FM2FRQ2 */
  104. /*21*/ EMUX_FX_LFO2_PITCH, /* BYTE: up FM2FRQ2 */
  105. /* Other overall effect parameters */
  106. /*22*/ EMUX_FX_INIT_PITCH, /* SHORT: pitch offset */
  107. /*23*/ EMUX_FX_CHORUS, /* BYTE: chorus effects send (0-255) */
  108. /*24*/ EMUX_FX_REVERB, /* BYTE: reverb effects send (0-255) */
  109. /*25*/ EMUX_FX_CUTOFF, /* BYTE: up IFATN */
  110. /*26*/ EMUX_FX_FILTERQ, /* BYTE: up CCCA */
  111. /* Sample / loop offset changes */
  112. /*27*/ EMUX_FX_SAMPLE_START, /* SHORT: offset */
  113. /*28*/ EMUX_FX_LOOP_START, /* SHORT: offset */
  114. /*29*/ EMUX_FX_LOOP_END, /* SHORT: offset */
  115. /*30*/ EMUX_FX_COARSE_SAMPLE_START, /* SHORT: upper word offset */
  116. /*31*/ EMUX_FX_COARSE_LOOP_START, /* SHORT: upper word offset */
  117. /*32*/ EMUX_FX_COARSE_LOOP_END, /* SHORT: upper word offset */
  118. /*33*/ EMUX_FX_ATTEN, /* BYTE: lo IFATN */
  119. EMUX_FX_END,
  120. };
  121. /* number of effects */
  122. #define EMUX_NUM_EFFECTS EMUX_FX_END
  123. /* effect flag values */
  124. #define EMUX_FX_FLAG_OFF 0
  125. #define EMUX_FX_FLAG_SET 1
  126. #define EMUX_FX_FLAG_ADD 2
  127. #endif /* __SOUND_EMUX_LEGACY_H */