1 /* DirectMusic DLS Download Definitions
3 * Copyright (C) 2003 Rok Mandeljc
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Library General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #ifndef __WINE_DMUSIC_DLS_H
21 #define __WINE_DMUSIC_DLS_H
25 typedef long PCENT, GCENT, TCENT, PERCENT;
26 typedef LONGLONG REFERENCE_TIME, *LPREFERENCE_TIME;
29 #define MAKEFOURCC(ch0, ch1, ch2, ch3) \
30 ((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \
31 ((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24 ))
35 /*****************************************************************************
38 #define DMUS_DOWNLOADINFO_INSTRUMENT 1
39 #define DMUS_DOWNLOADINFO_WAVE 2
40 #define DMUS_DOWNLOADINFO_INSTRUMENT2 3
41 #define DMUS_DOWNLOADINFO_WAVEARTICULATION 4
42 #define DMUS_DOWNLOADINFO_STREAMINGWAVE 5
43 #define DMUS_DOWNLOADINFO_ONESHOTWAVE 6
45 #define DMUS_DEFAULT_SIZE_OFFSETTABLE 1
47 #define DMUS_INSTRUMENT_GM_INSTRUMENT (1 << 0)
49 #define DMUS_MIN_DATA_SIZE 4
51 /*****************************************************************************
54 typedef struct _DMUS_DOWNLOADINFO
58 DWORD dwNumOffsetTableEntries;
62 typedef struct _DMUS_OFFSETTABLE
64 ULONG ulOffsetTable[DMUS_DEFAULT_SIZE_OFFSETTABLE];
67 typedef struct _DMUS_INSTRUMENT
70 ULONG ulFirstRegionIdx;
72 ULONG ulFirstExtCkIdx;
77 typedef struct _DMUS_REGION
80 RGNRANGE RangeVelocity;
84 ULONG ulNextRegionIdx;
85 ULONG ulFirstExtCkIdx;
91 typedef struct _DMUS_LFOPARAMS
101 typedef struct _DMUS_VEGPARAMS
111 typedef struct _DMUS_PEGPARAMS
122 typedef struct _DMUS_MSCPARAMS
124 PERCENT ptDefaultPan;
127 typedef struct _DMUS_ARTICPARAMS
130 DMUS_VEGPARAMS VolEG;
131 DMUS_PEGPARAMS PitchEG;
135 typedef struct _DMUS_ARTICULATION
138 ULONG ulFirstExtCkIdx;
141 typedef struct _DMUS_ARTICULATION2
144 ULONG ulFirstExtCkIdx;
146 } DMUS_ARTICULATION2;
148 typedef struct _DMUS_EXTENSIONCHUNK
151 ULONG ulNextExtCkIdx;
153 BYTE byExtCk[DMUS_MIN_DATA_SIZE];
154 } DMUS_EXTENSIONCHUNK;
157 typedef struct _DMUS_COPYRIGHT
160 BYTE byCopyright[DMUS_MIN_DATA_SIZE];
163 typedef struct _DMUS_WAVEDATA
166 BYTE byData[DMUS_MIN_DATA_SIZE];
169 typedef struct _DMUS_WAVE
171 ULONG ulFirstExtCkIdx;
172 ULONG ulCopyrightIdx;
174 WAVEFORMATEX WaveformatEx;
177 typedef struct _DMUS_NOTERANGE
181 } DMUS_NOTERANGE, *LPDMUS_NOTERANGE;
183 typedef struct _DMUS_WAVEARTDL
185 ULONG ulDownloadIdIdx;
190 } DMUS_WAVEARTDL, *LPDMUS_WAVEARTDL;
192 typedef struct _DMUS_WAVEDL
195 } DMUS_WAVEDL, *LPDMUS_WAVEDL;
197 #endif /* __WINE_DMUSIC_DLS_H */