wavefront.h 16 KB

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