annotate decoders/timidity/dls2.h @ 574:fa4ea28fd997 stable-1.0

Fixed compiler warning. (transplanted from 3b8748455aff0624acdc50ab1f1857daa27854b3)
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 24 Jan 2010 13:29:27 -0500
parents cbc2a4ffeeec
children
rev   line source
455
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
1 /*
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
2
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
3 dls2.h
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
4
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
5 Description:
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
6
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
7 Interface defines and structures for the DLS2 extensions of DLS.
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
8
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
9
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
10 Written by Microsoft 1998. Released for public use.
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
11
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
12 */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
13
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
14 #ifndef _INC_DLS2
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
15 #define _INC_DLS2
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
16
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
17 /*
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
18 FOURCC's used in the DLS2 file, in addition to DLS1 chunks
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
19 */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
20
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
21 #define FOURCC_RGN2 mmioFOURCC('r','g','n','2')
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
22 #define FOURCC_LAR2 mmioFOURCC('l','a','r','2')
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
23 #define FOURCC_ART2 mmioFOURCC('a','r','t','2')
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
24 #define FOURCC_CDL mmioFOURCC('c','d','l',' ')
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
25 #define FOURCC_DLID mmioFOURCC('d','l','i','d')
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
26
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
27 /*
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
28 Articulation connection graph definitions. These are in addition to
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
29 the definitions in the DLS1 header.
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
30 */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
31
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
32 /* Generic Sources (in addition to DLS1 sources. */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
33 #define CONN_SRC_POLYPRESSURE 0x0007 /* Polyphonic Pressure */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
34 #define CONN_SRC_CHANNELPRESSURE 0x0008 /* Channel Pressure */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
35 #define CONN_SRC_VIBRATO 0x0009 /* Vibrato LFO */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
36 #define CONN_SRC_MONOPRESSURE 0x000a /* MIDI Mono pressure */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
37
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
38
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
39 /* Midi Controllers */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
40 #define CONN_SRC_CC91 0x00db /* Reverb Send */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
41 #define CONN_SRC_CC93 0x00dd /* Chorus Send */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
42
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
43
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
44 /* Generic Destinations */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
45 #define CONN_DST_GAIN 0x0001 /* Same as CONN_DST_ ATTENUATION, but more appropriate terminology. */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
46 #define CONN_DST_KEYNUMBER 0x0005 /* Key Number Generator */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
47
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
48 /* Audio Channel Output Destinations */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
49 #define CONN_DST_LEFT 0x0010 /* Left Channel Send */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
50 #define CONN_DST_RIGHT 0x0011 /* Right Channel Send */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
51 #define CONN_DST_CENTER 0x0012 /* Center Channel Send */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
52 #define CONN_DST_LEFTREAR 0x0013 /* Left Rear Channel Send */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
53 #define CONN_DST_RIGHTREAR 0x0014 /* Right Rear Channel Send */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
54 #define CONN_DST_LFE_CHANNEL 0x0015 /* LFE Channel Send */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
55 #define CONN_DST_CHORUS 0x0080 /* Chorus Send */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
56 #define CONN_DST_REVERB 0x0081 /* Reverb Send */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
57
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
58 /* Vibrato LFO Destinations */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
59 #define CONN_DST_VIB_FREQUENCY 0x0114 /* Vibrato Frequency */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
60 #define CONN_DST_VIB_STARTDELAY 0x0115 /* Vibrato Start Delay */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
61
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
62 /* EG1 Destinations */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
63 #define CONN_DST_EG1_DELAYTIME 0x020B /* EG1 Delay Time */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
64 #define CONN_DST_EG1_HOLDTIME 0x020C /* EG1 Hold Time */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
65 #define CONN_DST_EG1_SHUTDOWNTIME 0x020D /* EG1 Shutdown Time */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
66
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
67
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
68 /* EG2 Destinations */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
69 #define CONN_DST_EG2_DELAYTIME 0x030F /* EG2 Delay Time */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
70 #define CONN_DST_EG2_HOLDTIME 0x0310 /* EG2 Hold Time */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
71
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
72
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
73 /* Filter Destinations */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
74 #define CONN_DST_FILTER_CUTOFF 0x0500 /* Filter Cutoff Frequency */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
75 #define CONN_DST_FILTER_Q 0x0501 /* Filter Resonance */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
76
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
77
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
78 /* Transforms */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
79 #define CONN_TRN_CONVEX 0x0002 /* Convex Transform */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
80 #define CONN_TRN_SWITCH 0x0003 /* Switch Transform */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
81
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
82
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
83 /* Conditional chunk operators */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
84 #define DLS_CDL_AND 0x0001 /* X = X & Y */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
85 #define DLS_CDL_OR 0x0002 /* X = X | Y */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
86 #define DLS_CDL_XOR 0x0003 /* X = X ^ Y */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
87 #define DLS_CDL_ADD 0x0004 /* X = X + Y */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
88 #define DLS_CDL_SUBTRACT 0x0005 /* X = X - Y */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
89 #define DLS_CDL_MULTIPLY 0x0006 /* X = X * Y */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
90 #define DLS_CDL_DIVIDE 0x0007 /* X = X / Y */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
91 #define DLS_CDL_LOGICAL_AND 0x0008 /* X = X && Y */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
92 #define DLS_CDL_LOGICAL_OR 0x0009 /* X = X || Y */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
93 #define DLS_CDL_LT 0x000A /* X = (X < Y) */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
94 #define DLS_CDL_LE 0x000B /* X = (X <= Y) */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
95 #define DLS_CDL_GT 0x000C /* X = (X > Y) */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
96 #define DLS_CDL_GE 0x000D /* X = (X >= Y) */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
97 #define DLS_CDL_EQ 0x000E /* X = (X == Y) */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
98 #define DLS_CDL_NOT 0x000F /* X = !X */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
99 #define DLS_CDL_CONST 0x0010 /* 32-bit constant */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
100 #define DLS_CDL_QUERY 0x0011 /* 32-bit value returned from query */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
101 #define DLS_CDL_QUERYSUPPORTED 0x0012 /* Test to see if query is supported by synth */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
102
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
103 /*
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
104 Loop and release
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
105 */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
106
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
107 #define WLOOP_TYPE_RELEASE 1
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
108
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
109 /*
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
110 WaveLink chunk <wlnk-ck>
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
111 */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
112
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
113 #define F_WAVELINK_MULTICHANNEL 0x0002
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
114
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
115
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
116 /*
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
117 DLSID queries for <cdl-ck>
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
118 */
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
119
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
120 DEFINE_GUID(DLSID_GMInHardware, 0x178f2f24, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12);
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
121 DEFINE_GUID(DLSID_GSInHardware, 0x178f2f25, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12);
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
122 DEFINE_GUID(DLSID_XGInHardware, 0x178f2f26, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12);
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
123 DEFINE_GUID(DLSID_SupportsDLS1, 0x178f2f27, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12);
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
124 DEFINE_GUID(DLSID_SupportsDLS2, 0xf14599e5, 0x4689, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6);
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
125 DEFINE_GUID(DLSID_SampleMemorySize, 0x178f2f28, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12);
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
126 DEFINE_GUID(DLSID_ManufacturersID, 0xb03e1181, 0x8095, 0x11d2, 0xa1, 0xef, 0x0, 0x60, 0x8, 0x33, 0xdb, 0xd8);
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
127 DEFINE_GUID(DLSID_ProductID, 0xb03e1182, 0x8095, 0x11d2, 0xa1, 0xef, 0x0, 0x60, 0x8, 0x33, 0xdb, 0xd8);
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
128 DEFINE_GUID(DLSID_SamplePlaybackRate, 0x2a91f713, 0xa4bf, 0x11d2, 0xbb, 0xdf, 0x0, 0x60, 0x8, 0x33, 0xdb, 0xd8);
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
129
cbc2a4ffeeec * Added support for loading DLS format instruments:
hercules
parents:
diff changeset
130 #endif /* _INC_DLS2 */