wavefront.h
上传用户:szlgq88
上传日期:2009-04-28
资源大小:48287k
文件大小:19k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. #ifndef __wavefront_h__
  2. #define __wavefront_h__
  3. /* WaveFront header file.
  4.  *   
  5.  * Copyright (C) by Paul Barton-Davis 1998
  6.  *
  7.  * This program is distributed under the GNU GENERAL PUBLIC LICENSE (GPL)
  8.  * Version 2 (June 1991). See the "COPYING" file distributed with this software
  9.  * for more info.  
  10.  */
  11. #if (!defined(__GNUC__) && !defined(__GNUG__))
  12.      You will not be able to compile this file correctly without gcc, because
  13.      it is necessary to pack the "wavefront_alias" structure to a size
  14.      of 22 bytes, corresponding to 16-bit alignment (as would have been
  15.      the case on the original platform, MS-DOS). If this is not done,
  16.      then WavePatch-format files cannot be read/written correctly.
  17.      The method used to do this here ("__attribute__((packed)") is
  18.      completely compiler dependent.
  19.      
  20.      All other wavefront_* types end up aligned to 32 bit values and
  21.      still have the same (correct) size.
  22. #else
  23.      /* However, note that as of G++ 2.7.3.2, g++ was unable to
  24. correctly parse *type* __attribute__ tags. It will do the
  25. right thing if we use the "packed" attribute on each struct
  26. member, which has the same semantics anyway. 
  27.      */
  28. #endif /* __GNUC__ */
  29. /***************************** WARNING ********************************
  30.   PLEASE DO NOT MODIFY THIS FILE IN ANY WAY THAT AFFECTS ITS ABILITY TO 
  31.   BE USED WITH EITHER C *OR* C++.
  32.  **********************************************************************/
  33. #ifndef NUM_MIDIKEYS 
  34. #define NUM_MIDIKEYS 128
  35. #endif  /* NUM_MIDIKEYS */
  36. #ifndef NUM_MIDICHANNELS
  37. #define NUM_MIDICHANNELS 16
  38. #endif  /* NUM_MIDICHANNELS */
  39. /* These are very useful/important. the original wavefront interface
  40.    was developed on a 16 bit system, where sizeof(int) = 2
  41.    bytes. Defining things like this makes the code much more portable, and
  42.    easier to understand without having to toggle back and forth
  43.    between a 16-bit view of the world and a 32-bit one. 
  44.  */   
  45. typedef short INT16;
  46. typedef unsigned short UINT16;
  47. typedef int INT32;
  48. typedef unsigned int UINT32;
  49. typedef char CHAR8;
  50. typedef unsigned char UCHAR8;
  51. /* Pseudo-commands not part of the WaveFront command set.
  52.    These are used for various driver controls and direct
  53.    hardware control.
  54.  */
  55. #define WFC_DEBUG_DRIVER                0
  56. #define WFC_FX_IOCTL                    1
  57. #define WFC_PATCH_STATUS                2
  58. #define WFC_PROGRAM_STATUS              3
  59. #define WFC_SAMPLE_STATUS               4
  60. #define WFC_DISABLE_INTERRUPTS          5
  61. #define WFC_ENABLE_INTERRUPTS           6
  62. #define WFC_INTERRUPT_STATUS            7
  63. #define WFC_ROMSAMPLES_RDONLY           8
  64. #define WFC_IDENTIFY_SLOT_TYPE          9
  65. /* Wavefront synth commands
  66.  */
  67. #define WFC_DOWNLOAD_SAMPLE 0x80
  68. #define WFC_DOWNLOAD_BLOCK 0x81
  69. #define WFC_DOWNLOAD_MULTISAMPLE 0x82
  70. #define WFC_DOWNLOAD_SAMPLE_ALIAS 0x83
  71. #define WFC_DELETE_SAMPLE 0x84
  72. #define WFC_REPORT_FREE_MEMORY 0x85
  73. #define WFC_DOWNLOAD_PATCH 0x86
  74. #define WFC_DOWNLOAD_PROGRAM 0x87
  75. #define WFC_SET_SYNTHVOL 0x89
  76. #define WFC_SET_NVOICES 0x8B
  77. #define WFC_DOWNLOAD_DRUM 0x90
  78. #define WFC_GET_SYNTHVOL 0x92
  79. #define WFC_GET_NVOICES 0x94
  80. #define WFC_DISABLE_CHANNEL 0x9A
  81. #define WFC_ENABLE_CHANNEL 0x9B
  82. #define WFC_MISYNTH_OFF 0x9D
  83. #define WFC_MISYNTH_ON 0x9E
  84. #define WFC_FIRMWARE_VERSION 0x9F
  85. #define WFC_GET_NSAMPLES 0xA0
  86. #define WFC_DISABLE_DRUM_PROGRAM 0xA2
  87. #define WFC_UPLOAD_PATCH 0xA3
  88. #define WFC_UPLOAD_PROGRAM 0xA4
  89. #define WFC_SET_TUNING 0xA6
  90. #define WFC_GET_TUNING 0xA7
  91. #define WFC_VMIDI_ON 0xA8
  92. #define WFC_VMIDI_OFF 0xA9
  93. #define WFC_MIDI_STATUS 0xAA
  94. #define WFC_GET_CHANNEL_STATUS 0xAB
  95. #define WFC_DOWNLOAD_SAMPLE_HEADER 0xAC
  96. #define WFC_UPLOAD_SAMPLE_HEADER 0xAD
  97. #define WFC_UPLOAD_MULTISAMPLE 0xAE
  98. #define WFC_UPLOAD_SAMPLE_ALIAS 0xAF
  99. #define WFC_IDENTIFY_SAMPLE_TYPE 0xB0
  100. #define WFC_DOWNLOAD_EDRUM_PROGRAM 0xB1
  101. #define WFC_UPLOAD_EDRUM_PROGRAM 0xB2
  102. #define WFC_SET_EDRUM_CHANNEL 0xB3
  103. #define WFC_INSTOUT_LEVELS 0xB4
  104. #define WFC_PEAKOUT_LEVELS 0xB5
  105. #define WFC_REPORT_CHANNEL_PROGRAMS 0xB6
  106. #define WFC_HARDWARE_VERSION 0xCF
  107. #define WFC_UPLOAD_SAMPLE_PARAMS 0xD7
  108. #define WFC_DOWNLOAD_OS 0xF1
  109. #define WFC_NOOP                        0xFF
  110. #define WF_MAX_SAMPLE   512
  111. #define WF_MAX_PATCH    256
  112. #define WF_MAX_PROGRAM  128
  113. #define WF_SECTION_MAX  44   /* longest OS section length */
  114. /* # of bytes we send to the board when sending it various kinds of
  115.    substantive data, such as samples, patches and programs.
  116. */
  117. #define WF_PROGRAM_BYTES 32
  118. #define WF_PATCH_BYTES 132
  119. #define WF_SAMPLE_BYTES 27
  120. #define WF_SAMPLE_HDR_BYTES 25
  121. #define WF_ALIAS_BYTES 25
  122. #define WF_DRUM_BYTES 9
  123. #define WF_MSAMPLE_BYTES 259 /* (MIDI_KEYS * 2) + 3 */
  124. #define WF_ACK     0x80
  125. #define WF_DMA_ACK 0x81
  126. /* OR-values for MIDI status bits */
  127. #define WF_MIDI_VIRTUAL_ENABLED 0x1
  128. #define WF_MIDI_VIRTUAL_IS_EXTERNAL 0x2
  129. #define WF_MIDI_IN_TO_SYNTH_DISABLED 0x4
  130. /* slot indexes for struct address_info: makes code a little more mnemonic */
  131. #define WF_SYNTH_SLOT         0
  132. #define WF_INTERNAL_MIDI_SLOT 1
  133. #define WF_EXTERNAL_MIDI_SLOT 2
  134. /* Magic MIDI bytes used to switch I/O streams on the ICS2115 MPU401
  135.    emulation. Note these NEVER show up in output from the device and
  136.    should NEVER be used in input unless Virtual MIDI mode has been 
  137.    disabled. If they do show up as input, the results are unpredictable.
  138. */
  139. #define WF_EXTERNAL_SWITCH  0xFD
  140. #define WF_INTERNAL_SWITCH  0xF9
  141. /* Debugging flags */
  142. #define WF_DEBUG_CMD 0x1
  143. #define WF_DEBUG_DATA 0x2
  144. #define WF_DEBUG_LOAD_PATCH 0x4
  145. #define WF_DEBUG_IO 0x8
  146. /* WavePatch file format stuff */
  147. #define WF_WAVEPATCH_VERSION     120;  /*  Current version number (1.2)  */
  148. #define WF_MAX_COMMENT           64    /*  Comment length */
  149. #define WF_NUM_LAYERS            4
  150. #define WF_NAME_LENGTH           32
  151. #define WF_SOURCE_LENGTH         260
  152. #define BankFileID     "Bank"
  153. #define DrumkitFileID  "DrumKit"
  154. #define ProgramFileID  "Program"
  155. struct wf_envelope
  156. {
  157.     UCHAR8 attack_time:7;
  158.     UCHAR8 Unused1:1;
  159.     UCHAR8 decay1_time:7;
  160.     UCHAR8 Unused2:1;
  161.     UCHAR8 decay2_time:7;
  162.     UCHAR8 Unused3:1;
  163.     UCHAR8 sustain_time:7;
  164.     UCHAR8 Unused4:1;
  165.     UCHAR8 release_time:7;
  166.     UCHAR8 Unused5:1;
  167.     UCHAR8 release2_time:7;
  168.     UCHAR8 Unused6:1;
  169.     CHAR8 attack_level;
  170.     CHAR8 decay1_level;
  171.     CHAR8 decay2_level;
  172.     CHAR8 sustain_level;
  173.     CHAR8 release_level;
  174.     UCHAR8 attack_velocity:7;
  175.     UCHAR8 Unused7:1;
  176.     UCHAR8 volume_velocity:7;
  177.     UCHAR8 Unused8:1;
  178.     UCHAR8 keyboard_scaling:7;
  179.     UCHAR8 Unused9:1;
  180. };
  181. typedef struct wf_envelope wavefront_envelope;
  182. struct wf_lfo
  183. {
  184.     UCHAR8 sample_number;
  185.     UCHAR8 frequency:7;
  186.     UCHAR8 Unused1:1;
  187.     UCHAR8 am_src:4;
  188.     UCHAR8 fm_src:4;
  189.     CHAR8 fm_amount;
  190.     CHAR8 am_amount;
  191.     CHAR8 start_level;
  192.     CHAR8 end_level;
  193.     UCHAR8 ramp_delay:7;
  194.     UCHAR8 wave_restart:1; /* for LFO2 only */
  195.     UCHAR8 ramp_time:7;
  196.     UCHAR8 Unused2:1;
  197. };
  198. typedef struct wf_lfo wavefront_lfo;
  199. struct wf_patch
  200. {
  201.     INT16  frequency_bias;         /*  ** THIS IS IN MOTOROLA FORMAT!! ** */
  202.     UCHAR8 amplitude_bias:7;
  203.     UCHAR8 Unused1:1;
  204.     UCHAR8 portamento:7;
  205.     UCHAR8 Unused2:1;
  206.     UCHAR8 sample_number;
  207.     UCHAR8 pitch_bend:4;
  208.     UCHAR8 sample_msb:1;
  209.     UCHAR8 Unused3:3;
  210.     UCHAR8 mono:1;
  211.     UCHAR8 retrigger:1;
  212.     UCHAR8 nohold:1;
  213.     UCHAR8 restart:1;
  214.     UCHAR8 filterconfig:2; /* SDK says "not used" */
  215.     UCHAR8 reuse:1;
  216.     UCHAR8 reset_lfo:1;    
  217.     UCHAR8 fm_src2:4;
  218.     UCHAR8 fm_src1:4;   
  219.     CHAR8 fm_amount1;
  220.     CHAR8 fm_amount2;
  221.     UCHAR8 am_src:4;
  222.     UCHAR8 Unused4:4;
  223.     CHAR8 am_amount;
  224.     UCHAR8 fc1_mode:4;
  225.     UCHAR8 fc2_mode:4;
  226.     CHAR8 fc1_mod_amount;
  227.     CHAR8 fc1_keyboard_scaling;
  228.     CHAR8 fc1_bias;
  229.     CHAR8 fc2_mod_amount;
  230.     CHAR8 fc2_keyboard_scaling;
  231.     CHAR8 fc2_bias;
  232.     UCHAR8 randomizer:7;
  233.     UCHAR8 Unused5:1;
  234.     struct wf_envelope envelope1;
  235.     struct wf_envelope envelope2;
  236.     struct wf_lfo lfo1;
  237.     struct wf_lfo lfo2;
  238. };
  239. typedef struct wf_patch wavefront_patch;
  240. struct wf_layer
  241. {
  242.     UCHAR8 patch_number;
  243.     UCHAR8 mix_level:7;
  244.     UCHAR8 mute:1;
  245.     UCHAR8 split_point:7;
  246.     UCHAR8 play_below:1;
  247.     UCHAR8 pan_mod_src:2;
  248.     UCHAR8 pan_or_mod:1;
  249.     UCHAR8 pan:4;
  250.     UCHAR8 split_type:1;
  251. };
  252. typedef struct wf_layer wavefront_layer;
  253. struct wf_program
  254. {
  255.     struct wf_layer layer[WF_NUM_LAYERS];
  256. };
  257. typedef struct wf_program wavefront_program;
  258. struct wf_sample_offset
  259. {
  260.     INT32 Fraction:4;
  261.     INT32 Integer:20;
  262.     INT32 Unused:8;
  263. };
  264. typedef struct wf_sample_offset wavefront_sample_offset;          
  265.      
  266. /* Sample slot types */
  267. #define WF_ST_SAMPLE      0
  268. #define WF_ST_MULTISAMPLE 1
  269. #define WF_ST_ALIAS       2
  270. #define WF_ST_EMPTY       3
  271. /* pseudo's */
  272. #define WF_ST_DRUM        4
  273. #define WF_ST_PROGRAM     5
  274. #define WF_ST_PATCH       6
  275. #define WF_ST_SAMPLEHDR   7
  276. #define WF_ST_MASK        0xf
  277. /* Flags for slot status. These occupy the upper bits of the same byte
  278.    as a sample type.
  279. */
  280. #define WF_SLOT_USED      0x80   /* XXX don't rely on this being accurate */
  281. #define WF_SLOT_FILLED    0x40
  282. #define WF_SLOT_ROM       0x20
  283. #define WF_SLOT_MASK      0xf0
  284. /* channel constants */
  285. #define WF_CH_MONO  0
  286. #define WF_CH_LEFT  1
  287. #define WF_CH_RIGHT 2
  288. /* Sample formats */
  289. #define LINEAR_16BIT 0
  290. #define WHITE_NOISE  1
  291. #define LINEAR_8BIT  2
  292. #define MULAW_8BIT   3
  293. #define WF_SAMPLE_IS_8BIT(smpl) ((smpl)->SampleResolution&2)
  294. /* 
  295.   Because most/all of the sample data we pass in via pointers has
  296.   never been copied (just mmap-ed into user space straight from the
  297.   disk), it would be nice to allow handling of multi-channel sample
  298.   data without forcing user-level extraction of the relevant bytes.
  299.   
  300.   So, we need a way of specifying which channel to use (the WaveFront
  301.   only handles mono samples in a given slot), and the only way to do
  302.   this without using some struct other than wavefront_sample as the
  303.   interface is the awful hack of using the unused bits in a
  304.   wavefront_sample:
  305.   
  306.   Val      Meaning
  307.   ---      -------
  308.   0        no channel selection (use channel 1, sample is MONO)
  309.   1        use first channel, and skip one
  310.   2        use second channel, and skip one
  311.   3        use third channel, and skip two
  312.   4        use fourth channel, skip three
  313.   5        use fifth channel, skip four
  314.   6        use six channel, skip five
  315.   This can handle up to 4 channels, and anyone downloading >4 channels
  316.   of sample data just to select one of them needs to find some tools
  317.   like sox ...
  318.   NOTE: values 0, 1 and 2 correspond to WF_CH_* above. This is 
  319.   important.
  320. */
  321. #define WF_SET_CHANNEL(samp,chn) 
  322.  (samp)->Unused1 = chn & 0x1; 
  323.  (samp)->Unused2 = chn & 0x2; 
  324.  (samp)->Unused3 = chn & 0x4 
  325.   
  326. #define WF_GET_CHANNEL(samp) 
  327.   (((samp)->Unused3 << 2)|((samp)->Unused2<<1)|(samp)->Unused1)
  328.   
  329. typedef struct wf_sample {
  330.     struct wf_sample_offset sampleStartOffset;
  331.     struct wf_sample_offset loopStartOffset;
  332.     struct wf_sample_offset loopEndOffset;
  333.     struct wf_sample_offset sampleEndOffset;
  334.     INT16 FrequencyBias;
  335.     UCHAR8 SampleResolution:2;  /* sample_format */
  336.     UCHAR8 Unused1:1;
  337.     UCHAR8 Loop:1;
  338.     UCHAR8 Bidirectional:1;
  339.     UCHAR8 Unused2:1;
  340.     UCHAR8 Reverse:1;
  341.     UCHAR8 Unused3:1;
  342. } wavefront_sample;
  343. typedef struct wf_multisample {
  344.     INT16 NumberOfSamples;   /* log2 of the number of samples */
  345.     INT16 SampleNumber[NUM_MIDIKEYS];
  346. } wavefront_multisample;
  347. typedef struct wf_alias {
  348.     INT16 OriginalSample __attribute__ ((packed));
  349.     struct wf_sample_offset sampleStartOffset __attribute__ ((packed));
  350.     struct wf_sample_offset loopStartOffset __attribute__ ((packed));
  351.     struct wf_sample_offset sampleEndOffset __attribute__ ((packed));
  352.     struct wf_sample_offset loopEndOffset __attribute__ ((packed));
  353.     INT16  FrequencyBias __attribute__ ((packed));
  354.     UCHAR8 SampleResolution:2  __attribute__ ((packed));
  355.     UCHAR8 Unused1:1  __attribute__ ((packed));
  356.     UCHAR8 Loop:1 __attribute__ ((packed));
  357.     UCHAR8 Bidirectional:1  __attribute__ ((packed));
  358.     UCHAR8 Unused2:1 __attribute__ ((packed));
  359.     UCHAR8 Reverse:1 __attribute__ ((packed));
  360.     UCHAR8 Unused3:1 __attribute__ ((packed)); 
  361.     
  362.     /* This structure is meant to be padded only to 16 bits on their
  363.        original. Of course, whoever wrote their documentation didn't
  364.        realize that sizeof(struct) can be >=
  365.        sum(sizeof(struct-fields)) and so thought that giving a C level
  366.        description of the structs used in WavePatch files was
  367.        sufficient. I suppose it was, as long as you remember the 
  368.        standard 16->32 bit issues.
  369.     */
  370.     UCHAR8 sixteen_bit_padding __attribute__ ((packed));
  371. } wavefront_alias;
  372. typedef struct wf_drum {
  373.     UCHAR8 PatchNumber;
  374.     UCHAR8 MixLevel:7;
  375.     UCHAR8 Unmute:1;
  376.     UCHAR8 Group:4;
  377.     UCHAR8 Unused1:4;
  378.     UCHAR8 PanModSource:2;
  379.     UCHAR8 PanModulated:1;
  380.     UCHAR8 PanAmount:4;
  381.     UCHAR8 Unused2:1;
  382. } wavefront_drum;
  383. typedef struct wf_drumkit {
  384.     struct wf_drum drum[NUM_MIDIKEYS];
  385. } wavefront_drumkit;
  386. typedef struct wf_channel_programs {
  387.     UCHAR8 Program[NUM_MIDICHANNELS];
  388. } wavefront_channel_programs;
  389. /* How to get MIDI channel status from the data returned by
  390.    a WFC_GET_CHANNEL_STATUS command (a struct wf_channel_programs)
  391. */
  392. #define WF_CHANNEL_STATUS(ch,wcp) (wcp)[(ch/7)] & (1<<((ch)%7))
  393. typedef union wf_any {
  394.     wavefront_sample s;
  395.     wavefront_multisample ms;
  396.     wavefront_alias a;
  397.     wavefront_program pr;
  398.     wavefront_patch p;
  399.     wavefront_drum d;
  400. } wavefront_any;
  401. /* Hannu Solvainen hoped that his "patch_info" struct in soundcard.h
  402.    might work for other wave-table based patch loading situations.
  403.    Alas, his fears were correct. The WaveFront doesn't even come with
  404.    just "patches", but several different kind of structures that
  405.    control the sound generation process.
  406.  */
  407. typedef struct wf_patch_info {
  408.     
  409.     /* the first two fields are used by the OSS "patch loading" interface
  410.        only, and are unused by the current user-level library.
  411.     */
  412.     INT16   key;               /* Use WAVEFRONT_PATCH here */
  413.     UINT16  devno;             /* fill in when sending */
  414.     UCHAR8  subkey;            /* WF_ST_{SAMPLE,ALIAS,etc.} */
  415. #define WAVEFRONT_FIND_FREE_SAMPLE_SLOT 999
  416.     UINT16  number;            /* patch/sample/prog number */
  417.     UINT32  size;              /* size of any data included in 
  418.   one of the fields in `hdrptr', or
  419.   as `dataptr'.
  420.   NOTE: for actual samples, this is
  421.   the size of the *SELECTED CHANNEL*
  422.   even if more data is actually available.
  423.   
  424.   So, a stereo sample (2 channels) of
  425.   6000 bytes total has `size' = 3000.
  426.   See the macros and comments for
  427.   WF_{GET,SET}_CHANNEL above.
  428.        */
  429.     wavefront_any __user *hdrptr;      /* user-space ptr to hdr bytes */
  430.     UINT16 __user *dataptr;            /* actual sample data */
  431.     wavefront_any hdr;          /* kernel-space copy of hdr bytes */         
  432. } wavefront_patch_info;
  433. /* The maximum number of bytes we will ever move to or from user space
  434.    in response to a WFC_* command.  This obviously doesn't cover
  435.    actual sample data.
  436. */
  437. #define WF_MAX_READ sizeof(wavefront_multisample)
  438. #define WF_MAX_WRITE sizeof(wavefront_multisample)
  439. /*
  440.    This allows us to execute any WF command except the download/upload
  441.    ones, which are handled differently due to copyin/copyout issues as
  442.    well as data-nybbling to/from the card.
  443.  */
  444. typedef struct wavefront_control {
  445.     int cmd;                           /* WFC_* */
  446.     char status;                       /* return status to user-space */
  447.     unsigned char rbuf[WF_MAX_READ];   /* bytes read from card */
  448.     unsigned char wbuf[WF_MAX_WRITE];  /* bytes written to card */
  449. } wavefront_control;
  450. #define WFCTL_WFCMD    0x1
  451. #define WFCTL_LOAD_SPP 0x2
  452. /* Modulator table */
  453. #define WF_MOD_LFO1      0
  454. #define WF_MOD_LFO2      1
  455. #define WF_MOD_ENV1      2
  456. #define WF_MOD_ENV2      3
  457. #define WF_MOD_KEYBOARD  4
  458. #define WF_MOD_LOGKEY    5
  459. #define WF_MOD_VELOCITY  6
  460. #define WF_MOD_LOGVEL    7
  461. #define WF_MOD_RANDOM    8
  462. #define WF_MOD_PRESSURE  9
  463. #define WF_MOD_MOD_WHEEL 10
  464. #define WF_MOD_1         WF_MOD_MOD_WHEEL 
  465. #define WF_MOD_BREATH    11
  466. #define WF_MOD_2         WF_MOD_BREATH
  467. #define WF_MOD_FOOT      12
  468. #define WF_MOD_4         WF_MOD_FOOT
  469. #define WF_MOD_VOLUME    13
  470. #define WF_MOD_7         WF_MOD_VOLUME
  471. #define WF_MOD_PAN       14
  472. #define WF_MOD_10        WF_MOD_PAN
  473. #define WF_MOD_EXPR      15
  474. #define WF_MOD_11        WF_MOD_EXPR
  475. /* FX-related material */
  476. typedef struct wf_fx_info {
  477.     int request;             /* see list below */
  478.     int data[4];             /* we don't need much */
  479. } wavefront_fx_info;
  480. /* support for each of these will be forthcoming once I or someone 
  481.    else has figured out which of the addresses on page 6 and page 7 of 
  482.    the YSS225 control each parameter. Incidentally, these come from
  483.    the Windows driver interface, but again, Turtle Beach didn't
  484.    document the API to use them.
  485. */
  486. #define WFFX_SETOUTGAIN         0
  487. #define WFFX_SETSTEREOOUTGAIN 1
  488. #define WFFX_SETREVERBIN1GAIN 2
  489. #define WFFX_SETREVERBIN2GAIN 3
  490. #define WFFX_SETREVERBIN3GAIN 4
  491. #define WFFX_SETCHORUSINPORT 5
  492. #define WFFX_SETREVERBIN1PORT 6
  493. #define WFFX_SETREVERBIN2PORT 7
  494. #define WFFX_SETREVERBIN3PORT 8
  495. #define WFFX_SETEFFECTPORT 9
  496. #define WFFX_SETAUXPORT         10
  497. #define WFFX_SETREVERBTYPE 11
  498. #define WFFX_SETREVERBDELAY 12
  499. #define WFFX_SETCHORUSLFO 13
  500. #define WFFX_SETCHORUSPMD 14
  501. #define WFFX_SETCHORUSAMD 15
  502. #define WFFX_SETEFFECT         16
  503. #define WFFX_SETBASEALL         17
  504. #define WFFX_SETREVERBALL 18
  505. #define WFFX_SETCHORUSALL 20
  506. #define WFFX_SETREVERBDEF 22
  507. #define WFFX_SETCHORUSDEF 23
  508. #define WFFX_DELAYSETINGAIN 24
  509. #define WFFX_DELAYSETFBGAIN         25
  510. #define WFFX_DELAYSETFBLPF 26
  511. #define WFFX_DELAYSETGAIN 27
  512. #define WFFX_DELAYSETTIME 28
  513. #define WFFX_DELAYSETFBTIME 29
  514. #define WFFX_DELAYSETALL 30
  515. #define WFFX_DELAYSETDEF 32
  516. #define WFFX_SDELAYSETINGAIN 33
  517. #define WFFX_SDELAYSETFBGAIN 34
  518. #define WFFX_SDELAYSETFBLPF 35
  519. #define WFFX_SDELAYSETGAIN 36
  520. #define WFFX_SDELAYSETTIME 37
  521. #define WFFX_SDELAYSETFBTIME 38
  522. #define WFFX_SDELAYSETALL 39
  523. #define WFFX_SDELAYSETDEF 41
  524. #define WFFX_DEQSETINGAIN 42
  525. #define WFFX_DEQSETFILTER 43
  526. #define WFFX_DEQSETALL         44
  527. #define WFFX_DEQSETDEF         46
  528. #define WFFX_MUTE         47
  529. #define WFFX_FLANGESETBALANCE         48
  530. #define WFFX_FLANGESETDELAY 49
  531. #define WFFX_FLANGESETDWFFX_TH 50
  532. #define WFFX_FLANGESETFBGAIN 51
  533. #define WFFX_FLANGESETINGAIN 52
  534. #define WFFX_FLANGESETLFO 53
  535. #define WFFX_FLANGESETALL 54
  536. #define WFFX_FLANGESETDEF 56
  537. #define WFFX_PITCHSETSHIFT 57
  538. #define WFFX_PITCHSETBALANCE 58
  539. #define WFFX_PITCHSETALL 59
  540. #define WFFX_PITCHSETDEF 61
  541. #define WFFX_SRSSETINGAIN 62
  542. #define WFFX_SRSSETSPACE 63
  543. #define WFFX_SRSSETCENTER 64
  544. #define WFFX_SRSSETGAIN         65
  545. #define WFFX_SRSSETMODE          66
  546. #define WFFX_SRSSETDEF         68
  547. /* Allow direct user-space control over FX memory/coefficient data.
  548.    In theory this could be used to download the FX microprogram,
  549.    but it would be a little slower, and involve some weird code.
  550.  */
  551. #define WFFX_MEMSET              69
  552. #endif /* __wavefront_h__ */