We don't need to dlopen the app module before the LoadLibrary().
[wine/multimedia.git] / include / dmusici.h
blob4afd3302614fbaede507989ddb801a889e201386
1 /*
2 * DirectMusic Performance API
4 * Copyright (C) 2003 Rok Mandeljc
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Library General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 #ifndef __WINE_DMUSIC_PERFORMANCE_H
22 #define __WINE_DMUSIC_PERFORMANCE_H
24 #include "objbase.h"
25 #include "mmsystem.h"
27 #include "oleauto.h"
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
34 /*****************************************************************************
35 * Types
37 typedef WORD TRANSITION_TYPE;
38 /* Already defined somewhere? */
39 /* typedef __int64 REFERENCE_TIME; */
40 typedef long MUSIC_TIME;
42 /*****************************************************************************
43 * Predeclare the interfaces
45 DEFINE_GUID(CLSID_DirectMusicPerformance, 0xd2ac2881,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
46 DEFINE_GUID(CLSID_DirectMusicSegment, 0xd2ac2882,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
47 DEFINE_GUID(CLSID_DirectMusicSegmentState, 0xd2ac2883,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
48 DEFINE_GUID(CLSID_DirectMusicGraph, 0xd2ac2884,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
49 DEFINE_GUID(CLSID_DirectMusicStyle, 0xd2ac288a,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
50 DEFINE_GUID(CLSID_DirectMusicChordMap, 0xd2ac288f,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
51 DEFINE_GUID(CLSID_DirectMusicComposer, 0xd2ac2890,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
52 DEFINE_GUID(CLSID_DirectMusicLoader, 0xd2ac2892,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
53 DEFINE_GUID(CLSID_DirectMusicBand, 0x79ba9e00,0xb6ee,0x11d1,0x86,0xbe,0x0,0xc0,0x4f,0xbf,0x8f,0xef);
54 DEFINE_GUID(CLSID_DirectMusicPatternTrack, 0xd2ac2897,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
55 DEFINE_GUID(CLSID_DirectMusicScript, 0x810b5013,0xe88d,0x11d2,0x8b,0xc1,0x0,0x60,0x8,0x93,0xb1,0xb6);
56 DEFINE_GUID(CLSID_DirectMusicContainer, 0x9301e380,0x1f22,0x11d3,0x82,0x26,0xd2,0xfa,0x76,0x25,0x5d,0x47);
57 DEFINE_GUID(CLSID_DirectSoundWave, 0x8a667154,0xf9cb,0x11d2,0xad,0x8a,0x0,0x60,0xb0,0x57,0x5a,0xbc);
58 DEFINE_GUID(CLSID_DirectMusicSong, 0xaed5f0a5,0xd972,0x483d,0xa3,0x84,0x64,0x9d,0xfe,0xb9,0xc1,0x81);
59 DEFINE_GUID(CLSID_DirectMusicAudioPathConfig, 0xee0b9ca0,0xa81e,0x11d3,0x9b,0xd1,0x0,0x80,0xc7,0x15,0xa,0x74);
61 DEFINE_GUID(IID_IDirectMusicLoader, 0x2ffaaca2,0x5dca,0x11d2,0xaf,0xa6,0x0,0xaa,0x0,0x24,0xd8,0xb6);
62 typedef struct IDirectMusicLoader IDirectMusicLoader, *LPDIRECTMUSICLOADER, *LPDMUS_LOADER;
63 DEFINE_GUID(IID_IDirectMusicGetLoader, 0x68a04844,0xd13d,0x11d1,0xaf,0xa6,0x0,0xaa,0x0,0x24,0xd8,0xb6);
64 #define IID_IDirectMusicGetLoader8 IID_IDirectMusicGetLoader
65 typedef struct IDirectMusicGetLoader IDirectMusicGetLoader, *LPDIRECTMUSICGETLOADER, IDirectMusicGetLoader8, *LPDIRECTMUSICGETLOADER8;
66 DEFINE_GUID(IID_IDirectMusicObject, 0xd2ac28b5,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
67 #define IID_IDirectMusicObject8 IID_IDirectMusicObject
68 typedef struct IDirectMusicObject IDirectMusicObject, *LPDIRECTMUSICOBJECT, IDirectMusicObject8, *LPDIRECTMUSICOBJECT8, *LPDMUS_OBJECT;
69 DEFINE_GUID(IID_IDirectMusicSegment, 0xf96029a2,0x4282,0x11d2,0x87,0x17,0x0,0x60,0x8,0x93,0xb1,0xbd);
70 typedef struct IDirectMusicSegment IDirectMusicSegment, *LPDIRECTMUSICSEGMENT;
71 DEFINE_GUID(IID_IDirectMusicSegmentState, 0xa3afdcc7,0xd3ee,0x11d1,0xbc,0x8d,0x0,0xa0,0xc9,0x22,0xe6,0xeb);
72 typedef struct IDirectMusicSegmentState IDirectMusicSegmentState, *LPDIRECTMUSICSEGMENTSTATE;
73 DEFINE_GUID(IID_IDirectMusicPerformance, 0x7d43d03,0x6523,0x11d2,0x87,0x1d,0x0,0x60,0x8,0x93,0xb1,0xbd);
74 typedef struct IDirectMusicPerformance IDirectMusicPerformance, *LPDIRECTMUSICPERFORMANCE;
75 DEFINE_GUID(IID_IDirectMusicGraph, 0x2befc277,0x5497,0x11d2,0xbc,0xcb,0x0,0xa0,0xc9,0x22,0xe6,0xeb);
76 #define IID_IDirectMusicGraph8 IID_IDirectMusicGraph
77 typedef struct IDirectMusicGraph IDirectMusicGraph, *LPDIRECTMUSICGRAPH, IDirectMusicGraph8, *LPDIRECTMUSICGRAPH8;
78 DEFINE_GUID(IID_IDirectMusicStyle, 0xd2ac28bd,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
79 typedef struct IDirectMusicStyle IDirectMusicStyle, *LPDIRECTMUSICSTYLE;
80 DEFINE_GUID(IID_IDirectMusicChordMap, 0xd2ac28be,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
81 #define IID_IDirectMusicChordMap8 IID_IDirectMusicChordMap
82 typedef struct IDirectMusicChordMap IDirectMusicChordMap, *LPDIRECTMUSICCHORDMAP, IDirectMusicChordMap8, *LPDIRECTMUSICCHORDMAP8;
83 DEFINE_GUID(IID_IDirectMusicComposer, 0xd2ac28bf,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
84 #define IID_IDirectMusicComposer8 IID_IDirectMusicComposer
85 typedef struct IDirectMusicComposer IDirectMusicComposer, *LPDIRECTMUSICCOMPOSER;
86 DEFINE_GUID(IID_IDirectMusicBand, 0xd2ac28c0,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
87 #define IID_IDirectMusicBand8 IID_IDirectMusicBand
88 typedef struct IDirectMusicBand IDirectMusicBand, *LPDIRECTMUSICBAND, IDirectMusicBand8, *LPDIRECTMUSICBAND8, *LPDMUS_BAND;
89 DEFINE_GUID(IID_IDirectMusicPerformance2, 0x6fc2cae0,0xbc78,0x11d2,0xaf,0xa6,0x0,0xaa,0x0,0x24,0xd8,0xb6);
90 typedef struct IDirectMusicPerformance2 IDirectMusicPerformance2, *LPDIRECTMUSICPERFORMANCE2;
91 DEFINE_GUID(IID_IDirectMusicSegment2, 0xd38894d1,0xc052,0x11d2,0x87,0x2f,0x0,0x60,0x8,0x93,0xb1,0xbd);
92 typedef struct IDirectMusicSegment2 IDirectMusicSegment2, *LPDIRECTMUSICSEGMENT2;
93 DEFINE_GUID(IID_IDirectMusicLoader8, 0x19e7c08c,0xa44,0x4e6a,0xa1,0x16,0x59,0x5a,0x7c,0xd5,0xde,0x8c);
94 typedef struct IDirectMusicLoader8 IDirectMusicLoader8, *LPDIRECTMUSICLOADER8;
95 DEFINE_GUID(IID_IDirectMusicPerformance8, 0x679c4137,0xc62e,0x4147,0xb2,0xb4,0x9d,0x56,0x9a,0xcb,0x25,0x4c);
96 typedef struct IDirectMusicPerformance8 IDirectMusicPerformance8, *LPDIRECTMUSICPERFORMANCE8;
97 DEFINE_GUID(IID_IDirectMusicSegment8, 0xc6784488,0x41a3,0x418f,0xaa,0x15,0xb3,0x50,0x93,0xba,0x42,0xd4);
98 typedef struct IDirectMusicSegment8 IDirectMusicSegment8, *LPDIRECTMUSICSEGMENT8;
99 DEFINE_GUID(IID_IDirectMusicSegmentState8, 0xa50e4730,0xae4,0x48a7,0x98,0x39,0xbc,0x4,0xbf,0xe0,0x77,0x72);
100 typedef struct IDirectMusicSegmentState8 IDirectMusicSegmentState8, *LPDIRECTMUSICSEGMENTSTATE8;
101 DEFINE_GUID(IID_IDirectMusicStyle8, 0xfd24ad8a,0xa260,0x453d,0xbf,0x50,0x6f,0x93,0x84,0xf7,0x9,0x85);
102 typedef struct IDirectMusicStyle8 IDirectMusicStyle8, *LPDIRECTMUSICSTYLE8;
103 DEFINE_GUID(IID_IDirectMusicPatternTrack, 0x51c22e10,0xb49f,0x46fc,0xbe,0xc2,0xe6,0x28,0x8f,0xb9,0xed,0xe6);
104 #define IID_IDirectMusicPatternTrack8 IID_IDirectMusicPatternTrack
105 typedef struct IDirectMusicPatternTrack IDirectMusicPatternTrack, *LPDIRECTMUSICPATTERNTRACK, IDirectMusicPatternTrack8, *LPDIRECTMUSICPATTERNTRACK8;
106 DEFINE_GUID(IID_IDirectMusicScript, 0x2252373a,0x5814,0x489b,0x82,0x9,0x31,0xfe,0xde,0xba,0xf1,0x37);
107 #define IID_IDirectMusicScript8 IID_IDirectMusicScript
108 typedef struct IDirectMusicScript IDirectMusicScript, *LPDIRECTMUSICSCRIPT, IDirectMusicScript8, *LPDIRECTMUSICSCRIPT8;
109 DEFINE_GUID(IID_IDirectMusicContainer, 0x9301e386,0x1f22,0x11d3,0x82,0x26,0xd2,0xfa,0x76,0x25,0x5d,0x47);
110 #define IID_IDirectMusicContainer8 IID_IDirectMusicContainer
111 typedef struct IDirectMusicContainer IDirectMusicContainer, *LPDIRECTMUSICCONTAINER, IDirectMusicContainer8, *LPDIRECTMUSICCONTAINER8;
112 DEFINE_GUID(IID_IDirectMusicSong, 0xa862b2ec,0x3676,0x4982,0x85,0xa,0x78,0x42,0x77,0x5e,0x1d,0x86);
113 #define IID_IDirectMusicSong8 IID_IDirectMusicSong
114 typedef struct IDirectMusicSong IDirectMusicSong, *LPDIRECTMUSICSONG, IDirectMusicSong8, *LPDIRECTMUSICSONG8;
115 DEFINE_GUID(IID_IDirectMusicAudioPath, 0xc87631f5,0x23be,0x4986,0x88,0x36,0x5,0x83,0x2f,0xcc,0x48,0xf9);
116 #define IID_IDirectMusicAudioPath8 IID_IDirectMusicAudioPath
117 typedef struct IDirectMusicAudioPath IDirectMusicAudioPath, *LPDIRECTMUSICAUDIOPATH, IDirectMusicAudioPath8, *LPDIRECTMUSICAUDIOPATH8;
119 /* Imported from dmplugin.h */
120 typedef struct IDirectMusicTrack IDirectMusicTrack, *LPDIRECTMUSICTRACK;
121 typedef struct IDirectMusicTool IDirectMusicTool, *LPDIRECTMUSICTOOL;
122 typedef struct IDirectMusicTool8 IDirectMusicTool8, *LPDIRECTMUSICTOOL8;
123 typedef struct IDirectMusicTrack8 IDirectMusicTrack8, *LPDIRECTMUSICTRACK8;
125 DEFINE_GUID(GUID_DirectMusicAllTypes, 0xd2ac2893,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
127 DEFINE_GUID(GUID_NOTIFICATION_SEGMENT, 0xd2ac2899,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
128 DEFINE_GUID(GUID_NOTIFICATION_PERFORMANCE, 0x81f75bc5,0x4e5d,0x11d2,0xbc,0xc7,0x0,0xa0,0xc9,0x22,0xe6,0xeb);
129 DEFINE_GUID(GUID_NOTIFICATION_MEASUREANDBEAT, 0xd2ac289a,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
130 DEFINE_GUID(GUID_NOTIFICATION_CHORD, 0xd2ac289b,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
131 DEFINE_GUID(GUID_NOTIFICATION_COMMAND, 0xd2ac289c,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
132 DEFINE_GUID(GUID_NOTIFICATION_RECOMPOSE, 0xd348372b,0x945b,0x45ae,0xa5,0x22,0x45,0xf,0x12,0x5b,0x84,0xa5);
134 DEFINE_GUID(GUID_CommandParam, 0xd2ac289d,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
135 DEFINE_GUID(GUID_CommandParam2, 0x28f97ef7,0x9538,0x11d2,0x97,0xa9,0x0,0xc0,0x4f,0xa3,0x6e,0x58);
136 DEFINE_GUID(GUID_CommandParamNext, 0x472afe7a,0x281b,0x11d3,0x81,0x7d,0x0,0xc0,0x4f,0xa3,0x6e,0x58);
137 DEFINE_GUID(GUID_ChordParam, 0xd2ac289e,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
138 DEFINE_GUID(GUID_RhythmParam, 0xd2ac289f,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
139 DEFINE_GUID(GUID_IDirectMusicStyle, 0xd2ac28a1,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
140 DEFINE_GUID(GUID_TimeSignature, 0xd2ac28a4,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
141 DEFINE_GUID(GUID_TempoParam, 0xd2ac28a5,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
142 DEFINE_GUID(GUID_Valid_Start_Time, 0x7f6b1760,0x1fdb,0x11d3,0x82,0x26,0x44,0x45,0x53,0x54,0x0,0x0);
143 DEFINE_GUID(GUID_Play_Marker, 0xd8761a41,0x801a,0x11d3,0x9b,0xd1,0xda,0xf7,0xe1,0xc3,0xd8,0x34);
144 DEFINE_GUID(GUID_BandParam, 0x2bb1938,0xcb8b,0x11d2,0x8b,0xb9,0x0,0x60,0x8,0x93,0xb1,0xb6);
145 DEFINE_GUID(GUID_IDirectMusicBand, 0xd2ac28ac,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
146 DEFINE_GUID(GUID_IDirectMusicChordMap, 0xd2ac28ad,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
147 DEFINE_GUID(GUID_MuteParam, 0xd2ac28af,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
149 DEFINE_GUID(GUID_Download, 0xd2ac28a7,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
150 DEFINE_GUID(GUID_Unload, 0xd2ac28a8,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
151 DEFINE_GUID(GUID_ConnectToDLSCollection, 0x1db1ae6b,0xe92e,0x11d1,0xa8,0xc5,0x0,0xc0,0x4f,0xa3,0x72,0x6e);
152 DEFINE_GUID(GUID_Enable_Auto_Download, 0xd2ac28a9,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
153 DEFINE_GUID(GUID_Disable_Auto_Download, 0xd2ac28aa,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
154 DEFINE_GUID(GUID_Clear_All_Bands, 0xd2ac28ab,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
155 DEFINE_GUID(GUID_StandardMIDIFile, 0x6621075,0xe92e,0x11d1,0xa8,0xc5,0x0,0xc0,0x4f,0xa3,0x72,0x6e);
156 #define GUID_IgnoreBankSelectForGM GUID_StandardMIDIFile
158 DEFINE_GUID(GUID_DisableTimeSig, 0x45fc707b,0x1db4,0x11d2,0xbc,0xac,0x0,0xa0,0xc9,0x22,0xe6,0xeb);
159 DEFINE_GUID(GUID_EnableTimeSig, 0x45fc707c,0x1db4,0x11d2,0xbc,0xac,0x0,0xa0,0xc9,0x22,0xe6,0xeb);
160 DEFINE_GUID(GUID_DisableTempo, 0x45fc707d,0x1db4,0x11d2,0xbc,0xac,0x0,0xa0,0xc9,0x22,0xe6,0xeb);
161 DEFINE_GUID(GUID_EnableTempo, 0x45fc707e,0x1db4,0x11d2,0xbc,0xac,0x0,0xa0,0xc9,0x22,0xe6,0xeb);
163 DEFINE_GUID(GUID_SeedVariations, 0x65b76fa5,0xff37,0x11d2,0x81,0x4e,0x0,0xc0,0x4f,0xa3,0x6e,0x58);
164 DEFINE_GUID(GUID_MelodyFragment, 0xb291c7f2,0xb616,0x11d2,0x97,0xfa,0x0,0xc0,0x4f,0xa3,0x6e,0x58);
165 DEFINE_GUID(GUID_Clear_All_MelodyFragments, 0x8509fee6,0xb617,0x11d2,0x97,0xfa,0x0,0xc0,0x4f,0xa3,0x6e,0x58);
166 DEFINE_GUID(GUID_Variations, 0x11f72cce,0x26e6,0x4ecd,0xaf,0x2e,0xd6,0x68,0xe6,0x67,0x7,0xd8);
167 DEFINE_GUID(GUID_DownloadToAudioPath, 0x9f2c0341,0xc5c4,0x11d3,0x9b,0xd1,0x44,0x45,0x53,0x54,0x0,0x0);
168 DEFINE_GUID(GUID_UnloadFromAudioPath, 0x9f2c0342,0xc5c4,0x11d3,0x9b,0xd1,0x44,0x45,0x53,0x54,0x0,0x0);
170 DEFINE_GUID(GUID_PerfMasterTempo, 0xd2ac28b0,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
171 DEFINE_GUID(GUID_PerfMasterVolume, 0xd2ac28b1,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
172 DEFINE_GUID(GUID_PerfMasterGrooveLevel, 0xd2ac28b2,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
173 DEFINE_GUID(GUID_PerfAutoDownload, 0xfb09565b,0x3631,0x11d2,0xbc,0xb8,0x0,0xa0,0xc9,0x22,0xe6,0xeb);
175 DEFINE_GUID(GUID_DefaultGMCollection, 0xf17e8673,0xc3b4,0x11d1,0x87,0xb,0x0,0x60,0x8,0x93,0xb1,0xbd);
177 DEFINE_GUID(GUID_Synth_Default, 0x26bb9432,0x45fe,0x48d3,0xa3,0x75,0x24,0x72,0xc5,0xe3,0xe7,0x86);
179 DEFINE_GUID(GUID_Buffer_Reverb, 0x186cc541,0xdb29,0x11d3,0x9b,0xd1,0x0,0x80,0xc7,0x15,0xa,0x74);
180 DEFINE_GUID(GUID_Buffer_EnvReverb, 0x186cc542,0xdb29,0x11d3,0x9b,0xd1,0x0,0x80,0xc7,0x15,0xa,0x74);
181 DEFINE_GUID(GUID_Buffer_Stereo, 0x186cc545,0xdb29,0x11d3,0x9b,0xd1,0x0,0x80,0xc7,0x15,0xa,0x74);
182 DEFINE_GUID(GUID_Buffer_3D_Dry, 0x186cc546,0xdb29,0x11d3,0x9b,0xd1,0x0,0x80,0xc7,0x15,0xa,0x74);
183 DEFINE_GUID(GUID_Buffer_Mono, 0x186cc547,0xdb29,0x11d3,0x9b,0xd1,0x0,0x80,0xc7,0x15,0xa,0x74);
186 /*****************************************************************************
187 * Definitions
189 #define MT_MIN 0x80000000
190 #define MT_MAX 0x7FFFFFFF
192 #define DMUS_PPQ 768
194 #define DMUS_PMSG_PART \
195 DWORD dwSize; \
196 REFERENCE_TIME rtTime; \
197 MUSIC_TIME mtTime; \
198 DWORD dwFlags; \
199 DWORD dwPChannel; \
200 DWORD dwVirtualTrackID; \
201 IDirectMusicTool* pTool; \
202 IDirectMusicGraph* pGraph; \
203 DWORD dwType; \
204 DWORD dwVoiceID; \
205 DWORD dwGroupID; \
206 IUnknown* punkUser;
208 #define DMUS_PCHANNEL_BROADCAST_PERFORMANCE 0xFFFFFFFF
209 #define DMUS_PCHANNEL_BROADCAST_AUDIOPATH 0xFFFFFFFE
210 #define DMUS_PCHANNEL_BROADCAST_SEGMENT 0xFFFFFFFD
211 #define DMUS_PCHANNEL_BROADCAST_GROUPS 0xFFFFFFFC
212 #define DMUS_PCHANNEL_ALL 0xFFFFFFFB
214 #define DMUS_PATH_SEGMENT 0x1000
215 #define DMUS_PATH_SEGMENT_TRACK 0x1100
216 #define DMUS_PATH_SEGMENT_GRAPH 0x1200
217 #define DMUS_PATH_SEGMENT_TOOL 0x1300
218 #define DMUS_PATH_AUDIOPATH 0x2000
219 #define DMUS_PATH_AUDIOPATH_GRAPH 0x2200
220 #define DMUS_PATH_AUDIOPATH_TOOL 0x2300
221 #define DMUS_PATH_PERFORMANCE 0x3000
222 #define DMUS_PATH_PERFORMANCE_GRAPH 0x3200
223 #define DMUS_PATH_PERFORMANCE_TOOL 0x3300
224 #define DMUS_PATH_PORT 0x4000
225 #define DMUS_PATH_BUFFER 0x6000
226 #define DMUS_PATH_BUFFER_DMO 0x6100
227 #define DMUS_PATH_MIXIN_BUFFER 0x7000
228 #define DMUS_PATH_MIXIN_BUFFER_DMO 0x7100
229 #define DMUS_PATH_PRIMARY_BUFFER 0x8000
231 #define DMUS_APATH_SHARED_STEREOPLUSREVERB 0x1
232 #define DMUS_APATH_DYNAMIC_3D 0x6
233 #define DMUS_APATH_DYNAMIC_MONO 0x7
234 #define DMUS_APATH_DYNAMIC_STEREO 0x8
236 #define DMUS_AUDIOF_3D 0x1
237 #define DMUS_AUDIOF_ENVIRON 0x2
238 #define DMUS_AUDIOF_EAX 0x4
239 #define DMUS_AUDIOF_DMOS 0x8
240 #define DMUS_AUDIOF_STREAMING 0x10
241 #define DMUS_AUDIOF_BUFFERS 0x20
242 #define DMUS_AUDIOF_ALL 0x3F
244 #define DMUS_AUDIOPARAMS_FEATURES 0x00000001
245 #define DMUS_AUDIOPARAMS_VOICES 0x00000002
246 #define DMUS_AUDIOPARAMS_SAMPLERATE 0x00000004
247 #define DMUS_AUDIOPARAMS_DEFAULTSYNTH 0x00000008
249 #define DMUS_SEG_REPEAT_INFINITE 0xFFFFFFFF
250 #define DMUS_SEG_ALLTRACKS 0x80000000
251 #define DMUS_SEG_ANYTRACK 0x80000000
253 #define DMUS_MAXSUBCHORD 8
255 #define DMUS_PLAYMODE_FIXED 0
256 #define DMUS_PLAYMODE_FIXEDTOKEY DMUS_PLAYMODE_KEY_ROOT
257 #define DMUS_PLAYMODE_FIXEDTOCHORD DMUS_PLAYMODE_CHORD_ROOT
258 #define DMUS_PLAYMODE_PEDALPOINT (DMUS_PLAYMODE_KEY_ROOT | DMUS_PLAYMODE_SCALE_INTERVALS)
259 #define DMUS_PLAYMODE_MELODIC (DMUS_PLAYMODE_CHORD_ROOT | DMUS_PLAYMODE_SCALE_INTERVALS)
260 #define DMUS_PLAYMODE_NORMALCHORD (DMUS_PLAYMODE_CHORD_ROOT | DMUS_PLAYMODE_CHORD_INTERVALS)
261 #define DMUS_PLAYMODE_ALWAYSPLAY (DMUS_PLAYMODE_MELODIC | DMUS_PLAYMODE_NORMALCHORD)
262 #define DMUS_PLAYMODE_PEDALPOINTCHORD (DMUS_PLAYMODE_KEY_ROOT | DMUS_PLAYMODE_CHORD_INTERVALS)
263 #define DMUS_PLAYMODE_PEDALPOINTALWAYS (DMUS_PLAYMODE_PEDALPOINT | DMUS_PLAYMODE_PEDALPOINTCHORD)
264 #define DMUS_PLAYMODE_PURPLEIZED DMUS_PLAYMODE_ALWAYSPLAY
265 #define DMUS_PLAYMODE_SCALE_ROOT DMUS_PLAYMODE_KEY_ROOT
266 #define DMUS_PLAYMODE_FIXEDTOSCALE DMUS_PLAYMODE_FIXEDTOKEY
268 #define DMUS_TEMPO_MAX 1000
269 #define DMUS_TEMPO_MIN 1
271 #define DMUS_MASTERTEMPO_MAX 100.0f
272 #define DMUS_MASTERTEMPO_MIN 0.01f
274 #define DMUS_CURVET_PBCURVE 0x03
275 #define DMUS_CURVET_CCCURVE 0x04
276 #define DMUS_CURVET_MATCURVE 0x05
277 #define DMUS_CURVET_PATCURVE 0x06
278 #define DMUS_CURVET_RPNCURVE 0x07
279 #define DMUS_CURVET_NRPNCURVE 0x08
281 #define DMUS_NOTIFICATION_SEGSTART 0x0
282 #define DMUS_NOTIFICATION_SEGEND 0x1
283 #define DMUS_NOTIFICATION_SEGALMOSTEND 0x2
284 #define DMUS_NOTIFICATION_SEGLOOP 0x3
285 #define DMUS_NOTIFICATION_SEGABORT 0x4
287 #define DMUS_NOTIFICATION_MUSICSTARTED 0x0
288 #define DMUS_NOTIFICATION_MUSICSTOPPED 0x1
289 #define DMUS_NOTIFICATION_MUSICALMOSTEND 0x2
291 #define DMUS_NOTIFICATION_MEASUREBEAT 0x0
293 #define DMUS_NOTIFICATION_CHORD 0x0
295 #define DMUS_NOTIFICATION_GROOVE 0x0
296 #define DMUS_NOTIFICATION_EMBELLISHMENT 0x1
298 #define DMUS_NOTIFICATION_RECOMPOSE 0x0
300 #define DMUS_WAVEF_OFF 0x1
301 #define DMUS_WAVEF_STREAMING 0x2
302 #define DMUS_WAVEF_NOINVALIDATE 0x4
303 #define DMUS_WAVEF_NOPREROLL 0x8
305 #define DMUS_MAX_NAME 0x40
306 #define DMUS_MAX_CATEGORY 0x40
307 #define DMUS_MAX_FILENAME MAX_PATH
309 #define DMUS_OBJ_OBJECT 0x001
310 #define DMUS_OBJ_CLASS 0x002
311 #define DMUS_OBJ_NAME 0x004
312 #define DMUS_OBJ_CATEGORY 0x008
313 #define DMUS_OBJ_FILENAME 0x010
314 #define DMUS_OBJ_FULLPATH 0x020
315 #define DMUS_OBJ_URL 0x040
316 #define DMUS_OBJ_VERSION 0x080
317 #define DMUS_OBJ_DATE 0x100
318 #define DMUS_OBJ_LOADED 0x200
319 #define DMUS_OBJ_MEMORY 0x400
320 #define DMUS_OBJ_STREAM 0x800
322 #define DMUS_TRACKCONFIG_OVERRIDE_ALL 0x00001
323 #define DMUS_TRACKCONFIG_OVERRIDE_PRIMARY 0x00002
324 #define DMUS_TRACKCONFIG_FALLBACK 0x00004
325 #define DMUS_TRACKCONFIG_CONTROL_ENABLED 0x00008
326 #define DMUS_TRACKCONFIG_PLAY_ENABLED 0x00010
327 #define DMUS_TRACKCONFIG_NOTIFICATION_ENABLED 0x00020
328 #define DMUS_TRACKCONFIG_PLAY_CLOCKTIME 0x00040
329 #define DMUS_TRACKCONFIG_PLAY_COMPOSE 0x00080
330 #define DMUS_TRACKCONFIG_LOOP_COMPOSE 0x00100
331 #define DMUS_TRACKCONFIG_COMPOSING 0x00200
332 #define DMUS_TRACKCONFIG_TRANS1_FROMSEGSTART 0x00400
333 #define DMUS_TRACKCONFIG_TRANS1_FROMSEGCURRENT 0x00800
334 #define DMUS_TRACKCONFIG_TRANS1_TOSEGSTART 0x01000
335 #define DMUS_TRACKCONFIG_CONTROL_PLAY 0x10000
336 #define DMUS_TRACKCONFIG_CONTROL_NOTIFICATION 0x20000
337 #define DMUS_TRACKCONFIG_DEFAULT (DMUS_TRACKCONFIG_CONTROL_ENABLED | DMUS_TRACKCONFIG_PLAY_ENABLED | DMUS_TRACKCONFIG_NOTIFICATION_ENABLED)
339 #define DMUS_MAX_FRAGMENTLABEL 20
341 #define DMUS_FRAGMENTF_USE_REPEAT 0x1
342 #define DMUS_FRAGMENTF_REJECT_REPEAT 0x2
343 #define DMUS_FRAGMENTF_USE_LABEL 0x4
345 #define DMUS_CONNECTIONF_INTERVALS 0x2
346 #define DMUS_CONNECTIONF_OVERLAP 0x4
348 #define DMUSB_LOADED 0x1
349 #define DMUSB_DEFAULT 0x2
351 /*****************************************************************************
352 * Structures
354 typedef enum enumDMUS_STYLET_TYPES
356 DMUS_STYLET_PATTERN = 0,
357 DMUS_STYLET_MOTIF = 1,
358 DMUS_STYLET_FRAGMENT = 2,
359 } DMUS_STYLET_TYPES;
361 typedef enum enumDMUS_COMMANDT_TYPES
363 DMUS_COMMANDT_GROOVE = 0,
364 DMUS_COMMANDT_FILL = 1,
365 DMUS_COMMANDT_INTRO = 2,
366 DMUS_COMMANDT_BREAK = 3,
367 DMUS_COMMANDT_END = 4,
368 DMUS_COMMANDT_ENDANDINTRO = 5
369 } DMUS_COMMANDT_TYPES;
371 typedef enum enumDMUS_SHAPET_TYPES
373 DMUS_SHAPET_FALLING = 0,
374 DMUS_SHAPET_LEVEL = 1,
375 DMUS_SHAPET_LOOPABLE = 2,
376 DMUS_SHAPET_LOUD = 3,
377 DMUS_SHAPET_QUIET = 4,
378 DMUS_SHAPET_PEAKING = 5,
379 DMUS_SHAPET_RANDOM = 6,
380 DMUS_SHAPET_RISING = 7,
381 DMUS_SHAPET_SONG = 8
382 } DMUS_SHAPET_TYPES;
384 typedef enum enumDMUS_COMPOSEF_FLAGS
386 DMUS_COMPOSEF_NONE = 0x00000,
387 DMUS_COMPOSEF_ALIGN = 0x00001,
388 DMUS_COMPOSEF_OVERLAP = 0x00002,
389 DMUS_COMPOSEF_IMMEDIATE = 0x00004,
390 DMUS_COMPOSEF_GRID = 0x00008,
391 DMUS_COMPOSEF_BEAT = 0x00010,
392 DMUS_COMPOSEF_MEASURE = 0x00020,
393 DMUS_COMPOSEF_AFTERPREPARETIME = 0x00040,
394 DMUS_COMPOSEF_VALID_START_BEAT = 0x00080,
395 DMUS_COMPOSEF_VALID_START_GRID = 0x00100,
396 DMUS_COMPOSEF_VALID_START_TICK = 0x00200,
397 DMUS_COMPOSEF_SEGMENTEND = 0x00400,
398 DMUS_COMPOSEF_MARKER = 0x00800,
399 DMUS_COMPOSEF_MODULATE = 0x01000,
400 DMUS_COMPOSEF_LONG = 0x02000,
401 DMUS_COMPOSEF_ENTIRE_TRANSITION = 0x04000,
402 DMUS_COMPOSEF_1BAR_TRANSITION = 0x08000,
403 DMUS_COMPOSEF_ENTIRE_ADDITION = 0x10000,
404 DMUS_COMPOSEF_1BAR_ADDITION = 0x20000,
405 DMUS_COMPOSEF_VALID_START_MEASURE = 0x40000,
406 DMUS_COMPOSEF_DEFAULT = 0x80000,
407 DMUS_COMPOSEF_NOINVALIDATE = 0x100000,
408 DMUS_COMPOSEF_USE_AUDIOPATH = 0x200000,
409 DMUS_COMPOSEF_INVALIDATE_PRI = 0x400000
410 } DMUS_COMPOSEF_FLAGS;
412 typedef struct _DMUS_PMSG
414 DMUS_PMSG_PART
415 } DMUS_PMSG;
417 typedef struct _DMUS_AUDIOPARAMS
419 DWORD dwSize;
420 BOOL fInitNow;
421 DWORD dwValidData;
422 DWORD dwFeatures;
423 DWORD dwVoices;
424 DWORD dwSampleRate;
425 CLSID clsidDefaultSynth;
426 } DMUS_AUDIOPARAMS;
428 typedef enum enumDMUS_PMSGF_FLAGS
430 DMUS_PMSGF_REFTIME = 0x01,
431 DMUS_PMSGF_MUSICTIME = 0x02,
432 DMUS_PMSGF_TOOL_IMMEDIATE = 0x04,
433 DMUS_PMSGF_TOOL_QUEUE = 0x08,
434 DMUS_PMSGF_TOOL_ATTIME = 0x10,
435 DMUS_PMSGF_TOOL_FLUSH = 0x20,
436 DMUS_PMSGF_LOCKTOREFTIME = 0x40,
437 DMUS_PMSGF_DX8 = 0x80
438 } DMUS_PMSGF_FLAGS;
440 typedef enum enumDMUS_PMSGT_TYPES
442 DMUS_PMSGT_MIDI = 0,
443 DMUS_PMSGT_NOTE = 1,
444 DMUS_PMSGT_SYSEX = 2,
445 DMUS_PMSGT_NOTIFICATION = 3,
446 DMUS_PMSGT_TEMPO = 4,
447 DMUS_PMSGT_CURVE = 5,
448 DMUS_PMSGT_TIMESIG = 6,
449 DMUS_PMSGT_PATCH = 7,
450 DMUS_PMSGT_TRANSPOSE = 8,
451 DMUS_PMSGT_CHANNEL_PRIORITY = 9,
452 DMUS_PMSGT_STOP = 10,
453 DMUS_PMSGT_DIRTY = 11,
454 DMUS_PMSGT_WAVE = 12,
455 DMUS_PMSGT_LYRIC = 13,
456 DMUS_PMSGT_SCRIPTLYRIC = 14,
457 DMUS_PMSGT_USER = 255
458 } DMUS_PMSGT_TYPES;
460 typedef enum enumDMUS_SEGF_FLAGS
462 DMUS_SEGF_REFTIME = 0x00000040,
463 DMUS_SEGF_SECONDARY = 0x00000080,
464 DMUS_SEGF_QUEUE = 0x00000100,
465 DMUS_SEGF_CONTROL = 0x00000200,
466 DMUS_SEGF_AFTERPREPARETIME = 0x00000400,
467 DMUS_SEGF_GRID = 0x00000800,
468 DMUS_SEGF_BEAT = 0x00001000,
469 DMUS_SEGF_MEASURE = 0x00002000,
470 DMUS_SEGF_DEFAULT = 0x00004000,
471 DMUS_SEGF_NOINVALIDATE = 0x00008000,
472 DMUS_SEGF_ALIGN = 0x00010000,
473 DMUS_SEGF_VALID_START_BEAT = 0x00020000,
474 DMUS_SEGF_VALID_START_GRID = 0x00040000,
475 DMUS_SEGF_VALID_START_TICK = 0x00080000,
476 DMUS_SEGF_AUTOTRANSITION = 0x00100000,
477 DMUS_SEGF_AFTERQUEUETIME = 0x00200000,
478 DMUS_SEGF_AFTERLATENCYTIME = 0x00400000,
479 DMUS_SEGF_SEGMENTEND = 0x00800000,
480 DMUS_SEGF_MARKER = 0x01000000,
481 DMUS_SEGF_TIMESIG_ALWAYS = 0x02000000,
482 DMUS_SEGF_USE_AUDIOPATH = 0x04000000,
483 DMUS_SEGF_VALID_START_MEASURE = 0x08000000,
484 DMUS_SEGF_INVALIDATE_PRI = 0x10000000
485 } DMUS_SEGF_FLAGS;
487 typedef enum enumDMUS_TIME_RESOLVE_FLAGS
489 DMUS_TIME_RESOLVE_AFTERPREPARETIME = DMUS_SEGF_AFTERPREPARETIME,
490 DMUS_TIME_RESOLVE_AFTERQUEUETIME = DMUS_SEGF_AFTERQUEUETIME,
491 DMUS_TIME_RESOLVE_AFTERLATENCYTIME = DMUS_SEGF_AFTERLATENCYTIME,
492 DMUS_TIME_RESOLVE_GRID = DMUS_SEGF_GRID,
493 DMUS_TIME_RESOLVE_BEAT = DMUS_SEGF_BEAT,
494 DMUS_TIME_RESOLVE_MEASURE = DMUS_SEGF_MEASURE,
495 DMUS_TIME_RESOLVE_MARKER = DMUS_SEGF_MARKER,
496 DMUS_TIME_RESOLVE_SEGMENTEND = DMUS_SEGF_SEGMENTEND,
497 } DMUS_TIME_RESOLVE_FLAGS;
499 typedef enum enumDMUS_CHORDKEYF_FLAGS
501 DMUS_CHORDKEYF_SILENT = 1,
502 } DMUS_CHORDKEYF_FLAGS;
504 typedef struct _DMUS_SUBCHORD
506 DWORD dwChordPattern;
507 DWORD dwScalePattern;
508 DWORD dwInversionPoints;
509 DWORD dwLevels;
510 BYTE bChordRoot;
511 BYTE bScaleRoot;
512 } DMUS_SUBCHORD;
514 typedef struct _DMUS_CHORD_KEY
516 WCHAR wszName[16];
517 WORD wMeasure;
518 BYTE bBeat;
519 BYTE bSubChordCount;
520 DMUS_SUBCHORD SubChordList[DMUS_MAXSUBCHORD];
521 DWORD dwScale;
522 BYTE bKey;
523 BYTE bFlags;
524 } DMUS_CHORD_KEY;
526 typedef struct _DMUS_NOTE_PMSG
528 DMUS_PMSG_PART
530 MUSIC_TIME mtDuration;
531 WORD wMusicValue;
532 WORD wMeasure;
533 short nOffset;
534 BYTE bBeat;
535 BYTE bGrid;
536 BYTE bVelocity;
537 BYTE bFlags;
538 BYTE bTimeRange;
539 BYTE bDurRange;
540 BYTE bVelRange;
541 BYTE bPlayModeFlags;
542 BYTE bSubChordLevel;
543 BYTE bMidiValue;
544 char cTranspose;
545 } DMUS_NOTE_PMSG;
547 typedef enum enumDMUS_NOTEF_FLAGS
549 DMUS_NOTEF_NOTEON = 0x01,
550 DMUS_NOTEF_NOINVALIDATE = 0x02,
551 DMUS_NOTEF_NOINVALIDATE_INSCALE = 0x04,
552 DMUS_NOTEF_NOINVALIDATE_INCHORD = 0x08,
553 DMUS_NOTEF_REGENERATE = 0x10,
554 } DMUS_NOTEF_FLAGS;
556 typedef enum enumDMUS_PLAYMODE_FLAGS
558 DMUS_PLAYMODE_KEY_ROOT = 0x01,
559 DMUS_PLAYMODE_CHORD_ROOT = 0x02,
560 DMUS_PLAYMODE_SCALE_INTERVALS = 0x04,
561 DMUS_PLAYMODE_CHORD_INTERVALS = 0x08,
562 DMUS_PLAYMODE_NONE = 0x10,
563 } DMUS_PLAYMODE_FLAGS;
565 typedef struct _DMUS_MIDI_PMSG
567 DMUS_PMSG_PART
569 BYTE bStatus;
570 BYTE bByte1;
571 BYTE bByte2;
572 BYTE bPad[1];
573 } DMUS_MIDI_PMSG;
575 typedef struct _DMUS_PATCH_PMSG
577 DMUS_PMSG_PART
579 BYTE byInstrument;
580 BYTE byMSB;
581 BYTE byLSB;
582 BYTE byPad[1];
583 } DMUS_PATCH_PMSG;
585 typedef struct _DMUS_TRANSPOSE_PMSG
587 DMUS_PMSG_PART
589 short nTranspose;
590 WORD wMergeIndex;
591 } DMUS_TRANSPOSE_PMSG;
593 typedef struct _DMUS_CHANNEL_PRIORITY_PMSG
595 DMUS_PMSG_PART
597 DWORD dwChannelPriority;
598 } DMUS_CHANNEL_PRIORITY_PMSG;
600 typedef struct _DMUS_TEMPO_PMSG
602 DMUS_PMSG_PART
604 double dblTempo;
605 } DMUS_TEMPO_PMSG;
607 typedef struct _DMUS_SYSEX_PMSG
609 DMUS_PMSG_PART
611 DWORD dwLen;
612 BYTE abData[1];
613 } DMUS_SYSEX_PMSG;
615 typedef struct _DMUS_CURVE_PMSG
617 DMUS_PMSG_PART
619 MUSIC_TIME mtDuration;
620 MUSIC_TIME mtOriginalStart;
621 MUSIC_TIME mtResetDuration;
622 short nStartValue;
623 short nEndValue;
624 short nResetValue;
625 WORD wMeasure;
626 short nOffset;
627 BYTE bBeat;
628 BYTE bGrid;
629 BYTE bType;
630 BYTE bCurveShape;
631 BYTE bCCData;
632 BYTE bFlags;
633 WORD wParamType;
634 WORD wMergeIndex;
635 } DMUS_CURVE_PMSG;
637 typedef enum enumDMUS_CURVE_FLAGS
639 DMUS_CURVE_RESET = 1,
640 DMUS_CURVE_START_FROM_CURRENT = 2
641 } DMUS_CURVE_FLAGS;
643 #define DMUS_CURVE_RESET 0x01
645 enum
647 DMUS_CURVES_LINEAR = 0x0,
648 DMUS_CURVES_INSTANT = 0x1,
649 DMUS_CURVES_EXP = 0x2,
650 DMUS_CURVES_LOG = 0x3,
651 DMUS_CURVES_SINE = 0x4
654 typedef struct _DMUS_TIMESIG_PMSG
656 DMUS_PMSG_PART
658 BYTE bBeatsPerMeasure;
659 BYTE bBeat;
660 WORD wGridsPerBeat;
661 } DMUS_TIMESIG_PMSG;
663 typedef struct _DMUS_NOTIFICATION_PMSG
665 DMUS_PMSG_PART
667 GUID guidNotificationType;
668 DWORD dwNotificationOption;
669 DWORD dwField1;
670 DWORD dwField2;
671 } DMUS_NOTIFICATION_PMSG;
673 typedef struct _DMUS_WAVE_PMSG
675 DMUS_PMSG_PART
677 REFERENCE_TIME rtStartOffset;
678 REFERENCE_TIME rtDuration;
679 long lOffset;
680 long lVolume;
681 long lPitch;
682 BYTE bFlags;
683 } DMUS_WAVE_PMSG;
685 typedef struct _DMUS_LYRIC_PMSG
687 DMUS_PMSG_PART
689 WCHAR wszString[1];
690 } DMUS_LYRIC_PMSG;
692 typedef struct _DMUS_VERSION {
693 DWORD dwVersionMS;
694 DWORD dwVersionLS;
695 } DMUS_VERSION, *LPDMUS_VERSION;
697 typedef struct _DMUS_TIMESIGNATURE
699 MUSIC_TIME mtTime;
700 BYTE bBeatsPerMeasure;
701 BYTE bBeat;
702 WORD wGridsPerBeat;
703 } DMUS_TIMESIGNATURE;
705 typedef struct _DMUS_VALID_START_PARAM
707 MUSIC_TIME mtTime;
708 } DMUS_VALID_START_PARAM;
710 typedef struct _DMUS_PLAY_MARKER_PARAM
712 MUSIC_TIME mtTime;
713 } DMUS_PLAY_MARKER_PARAM;
715 typedef struct _DMUS_OBJECTDESC
717 DWORD dwSize;
718 DWORD dwValidData;
719 GUID guidObject;
720 GUID guidClass;
721 FILETIME ftDate;
722 DMUS_VERSION vVersion;
723 WCHAR wszName[DMUS_MAX_NAME];
724 WCHAR wszCategory[DMUS_MAX_CATEGORY];
725 WCHAR wszFileName[DMUS_MAX_FILENAME];
726 LONGLONG llMemLength;
727 LPBYTE pbMemData;
728 IStream * pStream;
729 } DMUS_OBJECTDESC, *LPDMUS_OBJECTDESC;
731 typedef struct _DMUS_SCRIPT_ERRORINFO
733 DWORD dwSize;
734 HRESULT hr;
735 ULONG ulLineNumber;
736 LONG ichCharPosition;
737 WCHAR wszSourceFile[DMUS_MAX_FILENAME];
738 WCHAR wszSourceComponent[DMUS_MAX_FILENAME];
739 WCHAR wszDescription[DMUS_MAX_FILENAME];
740 WCHAR wszSourceLineText[DMUS_MAX_FILENAME];
741 } DMUS_SCRIPT_ERRORINFO;
743 typedef struct _DMUS_COMMAND_PARAM
745 BYTE bCommand;
746 BYTE bGrooveLevel;
747 BYTE bGrooveRange;
748 BYTE bRepeatMode;
749 } DMUS_COMMAND_PARAM;
751 typedef struct _DMUS_COMMAND_PARAM_2
753 MUSIC_TIME mtTime;
754 BYTE bCommand;
755 BYTE bGrooveLevel;
756 BYTE bGrooveRange;
757 BYTE bRepeatMode;
758 } DMUS_COMMAND_PARAM_2;
760 typedef struct _DMUS_CONNECTION_RULE
762 DWORD dwFlags;
763 DWORD dwIntervals;
764 } DMUS_CONNECTION_RULE;
766 typedef struct _DMUS_MELODY_FRAGMENT
768 MUSIC_TIME mtTime;
769 DWORD dwID;
770 WCHAR wszVariationLabel[DMUS_MAX_FRAGMENTLABEL];
771 DWORD dwVariationFlags;
772 DWORD dwRepeatFragmentID;
773 DWORD dwFragmentFlags;
774 DWORD dwPlayModeFlags;
775 DWORD dwTransposeIntervals;
776 DMUS_COMMAND_PARAM Command;
777 DMUS_CONNECTION_RULE ConnectionArc;
778 } DMUS_MELODY_FRAGMENT;
780 typedef struct _DMUS_BAND_PARAM
782 MUSIC_TIME mtTimePhysical;
783 IDirectMusicBand *pBand;
784 } DMUS_BAND_PARAM;
787 typedef struct _DMUS_VARIATIONS_PARAM
789 DWORD dwPChannelsUsed;
790 DWORD* padwPChannels;
791 DWORD* padwVariations;
792 } DMUS_VARIATIONS_PARAM;
794 /*****************************************************************************
795 * IDirectMusicBand interface
797 #undef ICOM_INTERFACE
798 #define ICOM_INTERFACE IDirectMusicBand
799 #define IDirectMusicBand_METHODS \
800 /*** IDirectMusicBand methods ***/ \
801 ICOM_METHOD1(HRESULT, CreateSegment, IDirectMusicSegment**,ppSegment) \
802 ICOM_METHOD1(HRESULT, Download, IDirectMusicPerformance*,pPerformance) \
803 ICOM_METHOD1(HRESULT, Unload, IDirectMusicPerformance*,pPerformance)
805 /*** IDirectMusicBand methods ***/
806 #define IDirectMusicBand_IMETHODS \
807 IUnknown_IMETHODS \
808 IDirectMusicBand_METHODS
809 ICOM_DEFINE(IDirectMusicBand,IUnknown)
810 #undef ICOM_INTERFACE
812 /*** IUnknown methods ***/
813 #define IDirectMusicBand_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
814 #define IDirectMusicBand_AddRef(p) ICOM_CALL (AddRef,p)
815 #define IDirectMusicBand_Release(p) ICOM_CALL (Release,p)
816 /*** IDirectMusicBand methods ***/
817 #define IDirectMusicBand_CreateSegment(p,a) ICOM_CALL1(CreateSegment,p,a)
818 #define IDirectMusicBand_Download(p,a) ICOM_CALL1(Download,p,a)
819 #define IDirectMusicBand_Unload(p,a) ICOM_CALL1(Unload,p,a)
822 /*****************************************************************************
823 * IDirectMusicObject interface
825 #undef ICOM_INTERFACE
826 #define ICOM_INTERFACE IDirectMusicObject
827 #define IDirectMusicObject_METHODS \
828 /*** IDirectMusicObject methods ***/ \
829 ICOM_METHOD1(HRESULT, GetDescriptor, LPDMUS_OBJECTDESC,pDesc) \
830 ICOM_METHOD1(HRESULT, SetDescriptor, LPDMUS_OBJECTDESC,pDesc) \
831 ICOM_METHOD2(HRESULT, ParseDescriptor, LPSTREAM,pStream, LPDMUS_OBJECTDESC,pDesc)
833 /*** IDirectMusicObject methods ***/
834 #define IDirectMusicObject_IMETHODS \
835 IUnknown_IMETHODS \
836 IDirectMusicObject_METHODS
837 ICOM_DEFINE(IDirectMusicObject,IUnknown)
838 #undef ICOM_INTERFACE
840 /*** IUnknown methods ***/
841 #define IDirectMusicObject_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
842 #define IDirectMusicObject_AddRef(p) ICOM_CALL (AddRef,p)
843 #define IDirectMusicObject_Release(p) ICOM_CALL (Release,p)
844 /*** IDirectMusicObject methods ***/
845 #define IDirectMusicObject_GetDescriptor(p,a) ICOM_CALL1(GetDescriptor,p,a)
846 #define IDirectMusicObject_SetDescriptor(p,a) ICOM_CALL1(SetDescriptor,p,a)
847 #define IDirectMusicObject_ParseDescriptor(p,a,b) ICOM_CALL2(ParseDescriptor,p,a,b)
850 /*****************************************************************************
851 * IDirectMusicLoader interface
853 #undef ICOM_INTERFACE
854 #define ICOM_INTERFACE IDirectMusicLoader
855 #define IDirectMusicLoader_METHODS \
856 /*** IDirectMusicLoader methods ***/ \
857 ICOM_METHOD3(HRESULT, _GetObject, LPDMUS_OBJECTDESC,pDesc, REFIID,riid, LPVOID*,ppv) \
858 ICOM_METHOD1(HRESULT, SetObject, LPDMUS_OBJECTDESC,pDesc) \
859 ICOM_METHOD3(HRESULT, SetSearchDirectory, REFGUID,rguidClass, WCHAR*,pwzPath, BOOL,fClear) \
860 ICOM_METHOD3(HRESULT, ScanDirectory, REFGUID,rguidClass, WCHAR*,pwzFileExtension, WCHAR*,pwzScanFileName) \
861 ICOM_METHOD1(HRESULT, CacheObject, IDirectMusicObject*,pObject) \
862 ICOM_METHOD1(HRESULT, ReleaseObject, IDirectMusicObject*,pObject) \
863 ICOM_METHOD1(HRESULT, ClearCache, REFGUID,rguidClass) \
864 ICOM_METHOD2(HRESULT, EnableCache, REFGUID,rguidClass, BOOL,fEnable) \
865 ICOM_METHOD3(HRESULT, EnumObject, REFGUID,rguidClass, DWORD,dwIndex, LPDMUS_OBJECTDESC,pDesc)
867 /*** IDirectMusicLoader methods ***/
868 #define IDirectMusicLoader_IMETHODS \
869 IUnknown_IMETHODS \
870 IDirectMusicLoader_METHODS
871 ICOM_DEFINE(IDirectMusicLoader,IUnknown)
872 #undef ICOM_INTERFACE
874 /*** IUnknown methods ***/
875 #define IDirectMusicLoader_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
876 #define IDirectMusicLoader_AddRef(p) ICOM_CALL (AddRef,p)
877 #define IDirectMusicLoader_Release(p) ICOM_CALL (Release,p)
878 /*** IDirectMusicLoader methods ***/
879 #define IDirectMusicLoader_GetObject(p,a,b,c) ICOM_CALL3(_GetObject,p,a,b,c)
880 #define IDirectMusicLoader_SetObject(p,a) ICOM_CALL1(SetObject,p,a)
881 #define IDirectMusicLoader_SetSearchDirectory(p,a,b,c) ICOM_CALL3(SetSearchDirectory,p,a,b,c)
882 #define IDirectMusicLoader_ScanDirectory(p,a,b,c) ICOM_CALL3(ScanDirectory,p,a,b,c)
883 #define IDirectMusicLoader_CacheObject(p,a) ICOM_CALL1(CacheObject,p,a)
884 #define IDirectMusicLoader_ReleaseObject(p,a) ICOM_CALL1(ReleaseObject,p,a)
885 #define IDirectMusicLoader_ClearCache(p,a) ICOM_CALL1(ClearCache,p,a)
886 #define IDirectMusicLoader_EnableCache(p,a,b) ICOM_CALL2(EnableCache,p,a,b)
887 #define IDirectMusicLoader_EnumObject(p,a,b,c) ICOM_CALL3(EnumObject,p,a,b,c)
890 /*****************************************************************************
891 * IDirectMusicLoader8 interface
893 #undef ICOM_INTERFACE
894 #define ICOM_INTERFACE IDirectMusicLoader8
895 #define IDirectMusicLoader8_METHODS \
896 /*** IDirectMusicLoader8 methods ***/ \
897 ICOM_METHOD (void, CollectGarbage) \
898 ICOM_METHOD1(HRESULT, ReleaseObjectByUnknown, IUnknown*,pObject) \
899 ICOM_METHOD4(HRESULT, LoadObjectFromFile, REFGUID,rguidClassID, REFIID,iidInterfaceID, WCHAR*,pwzFilePath, void**,ppObject)
901 /*** IDirectMusicLoader8 methods ***/
902 #define IDirectMusicLoader8_IMETHODS \
903 IUnknown_IMETHODS \
904 IDirectMusicLoader_METHODS \
905 IDirectMusicLoader8_METHODS
906 ICOM_DEFINE(IDirectMusicLoader8,IDirectMusicLoader)
907 #undef ICOM_INTERFACE
909 /*** IUnknown methods ***/
910 #define IDirectMusicLoader8_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
911 #define IDirectMusicLoader8_AddRef(p) ICOM_CALL (AddRef,p)
912 #define IDirectMusicLoader8_Release(p) ICOM_CALL (Release,p)
913 /*** IDirectMusicLoader methods ***/
914 #define IDirectMusicLoader8_GetObject(p,a,b,c) ICOM_CALL3(_GetObject,p,a,b,c)
915 #define IDirectMusicLoader8_SetObject(p,a) ICOM_CALL1(SetObject,p,a)
916 #define IDirectMusicLoader8_SetSearchDirectory(p,a,b,c) ICOM_CALL3(SetSearchDirectory,p,a,b,c)
917 #define IDirectMusicLoader8_ScanDirectory(p,a,b,c) ICOM_CALL3(ScanDirectory,p,a,b,c)
918 #define IDirectMusicLoader8_CacheObject(p,a) ICOM_CALL1(CacheObject,p,a)
919 #define IDirectMusicLoader8_ReleaseObject(p,a) ICOM_CALL1(ReleaseObject,p,a)
920 #define IDirectMusicLoader8_ClearCache(p,a) ICOM_CALL1(ClearCache,p,a)
921 #define IDirectMusicLoader8_EnableCache(p,a,b) ICOM_CALL2(EnableCache,p,a,b)
922 #define IDirectMusicLoader8_EnumObject(p,a,b,c) ICOM_CALL3(EnumObject,p,a,b,c)
923 /*** IDirectMusicLoader8 methods ***/
924 #define IDirectMusicLoader8_CollectGarbage(p) ICOM_CALL (CollectGarbage,p)
925 #define IDirectMusicLoader8_ReleaseObjectByUnknown(p,a) ICOM_CALL1(ReleaseObjectByUnknown,p,a)
926 #define IDirectMusicLoader8_LoadObjectFromFile(p,a,b,c,d) ICOM_CALL4(LoadObjectFromFile,p,a,b,c,d)
929 /*****************************************************************************
930 * IDirectMusicGetLoader interface
932 #undef ICOM_INTERFACE
933 #define ICOM_INTERFACE IDirectMusicGetLoader
934 #define IDirectMusicGetLoader_METHODS \
935 /*** IDirectMusicGetLoader methods ***/ \
936 ICOM_METHOD1(HRESULT, GetLoader, IDirectMusicLoader**,ppLoader)
938 /*** IDirectMusicGetLoader methods ***/
939 #define IDirectMusicGetLoader_IMETHODS \
940 IUnknown_IMETHODS \
941 IDirectMusicGetLoader_METHODS
942 ICOM_DEFINE(IDirectMusicGetLoader,IUnknown)
943 #undef ICOM_INTERFACE
945 /*** IUnknown methods ***/
946 #define IDirectMusicGetLoader_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
947 #define IDirectMusicGetLoader_AddRef(p) ICOM_CALL (AddRef,p)
948 #define IDirectMusicGetLoader_Release(p) ICOM_CALL (Release,p)
949 /*** IDirectMusicGetLoader methods ***/
950 #define IDirectMusicGetLoader_GetLoader(p,a) ICOM_CALL1(GetLoader,p,a)
953 /*****************************************************************************
954 * IDirectMusicSegment interface
956 #undef ICOM_INTERFACE
957 #define ICOM_INTERFACE IDirectMusicSegment
958 #define IDirectMusicSegment_METHODS \
959 /*** IDirectMusicSegment methods ***/ \
960 ICOM_METHOD1(HRESULT, GetLength, MUSIC_TIME*,pmtLength) \
961 ICOM_METHOD1(HRESULT, SetLength, MUSIC_TIME,mtLength) \
962 ICOM_METHOD1(HRESULT, GetRepeats, DWORD*,pdwRepeats) \
963 ICOM_METHOD1(HRESULT, SetRepeats, DWORD,dwRepeats) \
964 ICOM_METHOD1(HRESULT, GetDefaultResolution, DWORD*,pdwResolution) \
965 ICOM_METHOD1(HRESULT, SetDefaultResolution, DWORD,dwResolution) \
966 ICOM_METHOD4(HRESULT, GetTrack, REFGUID,rguidType, DWORD,dwGroupBits, DWORD,dwIndex, IDirectMusicTrack**,ppTrack) \
967 ICOM_METHOD2(HRESULT, GetTrackGroup, IDirectMusicTrack*,pTrack, DWORD*,pdwGroupBits) \
968 ICOM_METHOD2(HRESULT, InsertTrack, IDirectMusicTrack*,pTrack, DWORD,dwGroupBits) \
969 ICOM_METHOD1(HRESULT, RemoveTrack, IDirectMusicTrack*,pTrack) \
970 ICOM_METHOD3(HRESULT, InitPlay, IDirectMusicSegmentState**,ppSegState, IDirectMusicPerformance*,pPerformance, DWORD, dwFlags) \
971 ICOM_METHOD1(HRESULT, GetGraph, IDirectMusicGraph**,ppGraph) \
972 ICOM_METHOD1(HRESULT, SetGraph, IDirectMusicGraph*,pGraph) \
973 ICOM_METHOD1(HRESULT, AddNotificationType, REFGUID,rguidNotificationType) \
974 ICOM_METHOD1(HRESULT, RemoveNotificationType, REFGUID,rguidNotificationType) \
975 ICOM_METHOD6(HRESULT, GetParam, REFGUID,rguidType, DWORD,dwGroupBits, DWORD,dwIndex, MUSIC_TIME,mtTime, MUSIC_TIME*,pmtNext, void*,pParam) \
976 ICOM_METHOD5(HRESULT, SetParam, REFGUID,rguidType, DWORD,dwGroupBits, DWORD,dwIndex, MUSIC_TIME,mtTime, void*,pParam) \
977 ICOM_METHOD3(HRESULT, Clone, MUSIC_TIME,mtStart, MUSIC_TIME,mtEnd, IDirectMusicSegment**,ppSegment) \
978 ICOM_METHOD1(HRESULT, SetStartPoint, MUSIC_TIME,mtStart) \
979 ICOM_METHOD1(HRESULT, GetStartPoint, MUSIC_TIME*,pmtStart) \
980 ICOM_METHOD2(HRESULT, SetLoopPoints, MUSIC_TIME,mtStart, MUSIC_TIME,mtEnd) \
981 ICOM_METHOD2(HRESULT, GetLoopPoints, MUSIC_TIME*,pmtStart, MUSIC_TIME*,pmtEnd) \
982 ICOM_METHOD2(HRESULT, SetPChannelsUsed, DWORD,dwNumPChannels, DWORD*,paPChannels)
984 /*** IDirectMusicSegment methods ***/
985 #define IDirectMusicSegment_IMETHODS \
986 IUnknown_IMETHODS \
987 IDirectMusicSegment_METHODS
988 ICOM_DEFINE(IDirectMusicSegment,IUnknown)
989 #undef ICOM_INTERFACE
991 /*** IUnknown methods ***/
992 #define IDirectMusicSegment_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
993 #define IDirectMusicSegment_AddRef(p) ICOM_CALL (AddRef,p)
994 #define IDirectMusicSegment_Release(p) ICOM_CALL (Release,p)
995 /*** IDirectMusicSegment methods ***/
996 #define IDirectMusicSegment_GetLength(p,a) ICOM_CALL1(GetLength,p,a)
997 #define IDirectMusicSegment_SetLength(p,a) ICOM_CALL1(SetLength,p,a)
998 #define IDirectMusicSegment_GetRepeats(p,a) ICOM_CALL1(GetRepeats,p,a)
999 #define IDirectMusicSegment_SetRepeats(p,a) ICOM_CALL1(SetRepeats,p,a)
1000 #define IDirectMusicSegment_GetDefaultResolution(p,a) ICOM_CALL1(GetDefaultResolution,p,a)
1001 #define IDirectMusicSegment_SetDefaultResolution(p,a) ICOM_CALL1(SetDefaultResolution,p,a)
1002 #define IDirectMusicSegment_GetTrack(p,a,b,c,d) ICOM_CALL4(GetTrack,p,a,b,c,d)
1003 #define IDirectMusicSegment_GetTrackGroup(p,a,b) ICOM_CALL2(GetTrackGroup,p,a,b)
1004 #define IDirectMusicSegment_InsertTrack(p,a,b) ICOM_CALL2(InsertTrack,p,a,b)
1005 #define IDirectMusicSegment_RemoveTrack(p,a) ICOM_CALL1(RemoveTrack,p,a)
1006 #define IDirectMusicSegment_InitPlay(p,a,b,c) ICOM_CALL3(InitPlay,p,a,b,c)
1007 #define IDirectMusicSegment_GetGraph(p,a) ICOM_CALL1(GetGraph,p,a)
1008 #define IDirectMusicSegment_SetGraph(p,a) ICOM_CALL1(SetGraph,p,a)
1009 #define IDirectMusicSegment_AddNotificationType(p,a) ICOM_CALL1(AddNotificationType,p,a)
1010 #define IDirectMusicSegment_RemoveNotificationType(p,a) ICOM_CALL1(RemoveNotificationType,p,a)
1011 #define IDirectMusicSegment_GetParam(p,a,b,c,d,e,f) ICOM_CALL6(GetParam,p,a,b,c,d,e,f)
1012 #define IDirectMusicSegment_SetParam(p,a,b,c,d,e) ICOM_CALL5(SetParam,p,a,b,c,d,e)
1013 #define IDirectMusicSegment_Clone(p,a,b,c) ICOM_CALL3(Clone,p,a,b,c)
1014 #define IDirectMusicSegment_SetStartPoint(p,a) ICOM_CALL1(SetStartPoint,p,a)
1015 #define IDirectMusicSegment_GetStartPoint(p,a) ICOM_CALL1(GetStartPoint,p,a)
1016 #define IDirectMusicSegment_SetLoopPoints(p,a,b) ICOM_CALL2(SetLoopPoints,p,a,b)
1017 #define IDirectMusicSegment_GetLoopPoints(p,a,b) ICOM_CALL2(GetLoopPoints,p,a,b)
1018 #define IDirectMusicSegment_SetPChannelsUsed(p,a,b) ICOM_CALL2(SetPChannelsUsed,p,a,b)
1021 /*****************************************************************************
1022 * IDirectMusicSegment8 interface
1024 #undef ICOM_INTERFACE
1025 #define ICOM_INTERFACE IDirectMusicSegment8
1026 #define IDirectMusicSegment8_METHODS \
1027 /*** IDirectMusicSegment8 methods ***/ \
1028 ICOM_METHOD5(HRESULT, SetTrackConfig, REFGUID,rguidTrackClassID, DWORD,dwGroupBits, DWORD,dwIndex, DWORD,dwFlagsOn, DWORD,dwFlagsOff) \
1029 ICOM_METHOD1(HRESULT, GetAudioPathConfig, IUnknown**,ppAudioPathConfig) \
1030 ICOM_METHOD4(HRESULT, Compose, MUSIC_TIME,mtTime, IDirectMusicSegment*,pFromSegment, IDirectMusicSegment*,pToSegment, IDirectMusicSegment**,ppComposedSegment) \
1031 ICOM_METHOD1(HRESULT, Download, IUnknown,*pAudioPath) \
1032 ICOM_METHOD1(HRESULT, Unload, IUnknown,*pAudioPath)
1034 /*** IDirectMusicSegment8 methods ***/
1035 #define IDirectMusicSegment8_IMETHODS \
1036 IUnknown_IMETHODS \
1037 IDirectMusicSegment_METHODS \
1038 IDirectMusicSegment8_METHODS
1039 ICOM_DEFINE(IDirectMusicSegment8,IDirectMusicSegment)
1040 #undef ICOM_INTERFACE
1042 /*** IUnknown methods ***/
1043 #define IDirectMusicSegment8_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
1044 #define IDirectMusicSegment8_AddRef(p) ICOM_CALL (AddRef,p)
1045 #define IDirectMusicSegment8_Release(p) ICOM_CALL (Release,p)
1046 /*** IDirectMusicSegment methods ***/
1047 #define IDirectMusicSegment8_GetLength(p,a) ICOM_CALL1(GetLength,p,a)
1048 #define IDirectMusicSegment8_SetLength(p,a) ICOM_CALL1(SetLength,p,a)
1049 #define IDirectMusicSegment8_GetRepeats(p,a) ICOM_CALL1(GetRepeats,p,a)
1050 #define IDirectMusicSegment8_SetRepeats(p,a) ICOM_CALL1(SetRepeats,p,a)
1051 #define IDirectMusicSegment8_GetDefaultResolution(p,a) ICOM_CALL1(GetDefaultResolution,p,a)
1052 #define IDirectMusicSegment8_SetDefaultResolution(p,a) ICOM_CALL1(SetDefaultResolution,p,a)
1053 #define IDirectMusicSegment8_GetTrack(p,a,b,c,d) ICOM_CALL4(GetTrack,p,a,b,c,d)
1054 #define IDirectMusicSegment8_GetTrackGroup(p,a,b) ICOM_CALL2(GetTrackGroup,p,a,b)
1055 #define IDirectMusicSegment8_InsertTrack(p,a,b) ICOM_CALL2(InsertTrack,p,a,b)
1056 #define IDirectMusicSegment8_RemoveTrack(p,a) ICOM_CALL1(RemoveTrack,p,a)
1057 #define IDirectMusicSegment8_InitPlay(p,a,b,c) ICOM_CALL3(InitPlay,p,a,b,c)
1058 #define IDirectMusicSegment8_GetGraph(p,a) ICOM_CALL1(GetGraph,p,a)
1059 #define IDirectMusicSegment8_SetGraph(p,a) ICOM_CALL1(SetGraph,p,a)
1060 #define IDirectMusicSegment8_AddNotificationType(p,a) ICOM_CALL1(AddNotificationType,p,a)
1061 #define IDirectMusicSegment8_RemoveNotificationType(p,a) ICOM_CALL1(RemoveNotificationType,p,a)
1062 #define IDirectMusicSegment8_GetParam(p,a,b,c,d,e,f) ICOM_CALL6(GetParam,p,a,b,c,d,e,f)
1063 #define IDirectMusicSegment8_SetParam(p,a,b,c,d,e) ICOM_CALL5(SetParam,p,a,b,c,d,e)
1064 #define IDirectMusicSegment8_Clone(p,a,b,c) ICOM_CALL3(Clone,p,a,b,c)
1065 #define IDirectMusicSegment8_SetStartPoint(p,a) ICOM_CALL1(SetStartPoint,p,a)
1066 #define IDirectMusicSegment8_GetStartPoint(p,a) ICOM_CALL1(GetStartPoint,p,a)
1067 #define IDirectMusicSegment8_SetLoopPoints(p,a,b) ICOM_CALL2(SetLoopPoints,p,a,b)
1068 #define IDirectMusicSegment8_GetLoopPoints(p,a,b) ICOM_CALL2(GetLoopPoints,p,a,b)
1069 #define IDirectMusicSegment8_SetPChannelsUsed(p,a,b) ICOM_CALL2(SetPChannelsUsed,p,a,b)
1070 /*** IDirectMusicSegment8 methods ***/
1071 #define IDirectMusicSegment8_SetTrackConfig(p,a,b,c,d,e) ICOM_CALL5(SetTrackConfig,p,a,b,c,d,e)
1072 #define IDirectMusicSegment8_GetAudioPathConfig(p,a) ICOM_CALL1(GetAudioPathConfig,p,a)
1073 #define IDirectMusicSegment8_Compose(p,a,b,c,d) ICOM_CALL4(Compose,p,a,b,c,d)
1074 #define IDirectMusicSegment8_Download(p,a) ICOM_CALL1(Download,p,a)
1075 #define IDirectMusicSegment8_Unload(p,a) ICOM_CALL1(Unload,p,a)
1078 /*****************************************************************************
1079 * IDirectMusicSegmentState interface
1081 #undef ICOM_INTERFACE
1082 #define ICOM_INTERFACE IDirectMusicSegmentState
1083 #define IDirectMusicSegmentState_METHODS \
1084 /*** IDirectMusicSegmentState methods ***/ \
1085 ICOM_METHOD1(HRESULT, GetRepeats, DWORD*,pdwRepeats) \
1086 ICOM_METHOD1(HRESULT, GetSegment, IDirectMusicSegment**,ppSegment) \
1087 ICOM_METHOD1(HRESULT, GetStartTime, MUSIC_TIME*,pmtStart) \
1088 ICOM_METHOD1(HRESULT, GetSeek, MUSIC_TIME*,pmtSeek) \
1089 ICOM_METHOD1(HRESULT, GetStartPoint, MUSIC_TIME*,pmtStart)
1091 /*** IDirectMusicSegmentState methods ***/
1092 #define IDirectMusicSegmentState_IMETHODS \
1093 IUnknown_IMETHODS \
1094 IDirectMusicSegmentState_METHODS
1095 ICOM_DEFINE(IDirectMusicSegmentState,IUnknown)
1096 #undef ICOM_INTERFACE
1098 /*** IUnknown methods ***/
1099 #define IDirectMusicSegmentState_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
1100 #define IDirectMusicSegmentState_AddRef(p) ICOM_CALL (AddRef,p)
1101 #define IDirectMusicSegmentState_Release(p) ICOM_CALL (Release,p)
1102 /*** IDirectMusicSegmentState methods ***/
1103 #define IDirectMusicSegmentState_GetRepeats(p,a) ICOM_CALL1(GetRepeats,p,a)
1104 #define IDirectMusicSegmentState_GetSegment(p,a) ICOM_CALL1(GetSegment,p,a)
1105 #define IDirectMusicSegmentState_GetStartTime(p,a) ICOM_CALL1(GetStartTime,p,a)
1106 #define IDirectMusicSegmentState_GetSeek(p,a) ICOM_CALL1(GetSeek,p,a)
1107 #define IDirectMusicSegmentState_GetStartPoint(p,a) ICOM_CALL1(GetStartPoint,p,a)
1110 /*****************************************************************************
1111 * IDirectMusicSegmentState8 interface
1113 #undef ICOM_INTERFACE
1114 #define ICOM_INTERFACE IDirectMusicSegmentState8
1115 #define IDirectMusicSegmentState8_METHODS \
1116 /*** IDirectMusicSegmentState8 methods ***/ \
1117 ICOM_METHOD5(HRESULT, SetTrackConfig, REFGUID,rguidTrackClassID, DWORD,dwGroupBits, DWORD,dwIndex, DWORD,dwFlagsOn, DWORD,dwFlagsOff) \
1118 ICOM_METHOD7(HRESULT, GetObjectInPath, DWORD,dwPChannel, DWORD,dwStage, DWORD,dwBuffer, REFGUID,guidObject, DWORD,dwIndex, REFGUID,iidInterface, void**,ppObject)
1120 /*** IDirectMusicSegmentState8 methods ***/
1121 #define IDirectMusicSegmentState8_IMETHODS \
1122 IUnknown_IMETHODS \
1123 IDirectMusicSegmentState_METHODS \
1124 IDirectMusicSegmentState8_METHODS
1125 ICOM_DEFINE(IDirectMusicSegmentState8,IDirectMusicSegmentState)
1126 #undef ICOM_INTERFACE
1128 /*** IUnknown methods ***/
1129 #define IDirectMusicSegmentState8_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
1130 #define IDirectMusicSegmentState8_AddRef(p) ICOM_CALL (AddRef,p)
1131 #define IDirectMusicSegmentState8_Release(p) ICOM_CALL (Release,p)
1132 /*** IDirectMusicSegmentState methods ***/
1133 #define IDirectMusicSegmentState8_GetRepeats(p,a) ICOM_CALL1(GetRepeats,p,a)
1134 #define IDirectMusicSegmentState8_GetSegment(p,a) ICOM_CALL1(GetSegment,p,a)
1135 #define IDirectMusicSegmentState8_GetStartTime(p,a) ICOM_CALL1(GetStartTime,p,a)
1136 #define IDirectMusicSegmentState8_GetSeek(p,a) ICOM_CALL1(GetSeek,p,a)
1137 #define IDirectMusicSegmentState8_GetStartPoint(p,a) ICOM_CALL1(GetStartPoint,p,a)
1138 /*** IDirectMusicSegmentState8 methods ***/
1139 #define IDirectMusicSegmentState8_SetTrackConfig(p,a,b,c,d,e) ICOM_CALL5(SetTrackConfig,p,a,b,c,d,e)
1140 #define IDirectMusicSegmentState8_GetObjectInPath(p,a,b,c,d,e,f,g) ICOM_CALL7(GetObjectInPath,p,a,b,c,d,e,f,g)
1143 /*****************************************************************************
1144 * IDirectMusicAudioPath interface
1146 #undef ICOM_INTERFACE
1147 #define ICOM_INTERFACE IDirectMusicAudioPath
1148 #define IDirectMusicAudioPath_METHODS \
1149 /*** IDirectMusicAudioPath methods ***/ \
1150 ICOM_METHOD7(HRESULT, GetObjectInPath, DWORD,dwPChannel, DWORD,dwStage, DWORD,dwBuffer, REFGUID,guidObject, WORD,dwIndex, REFGUID,iidInterface, void**,ppObject) \
1151 ICOM_METHOD1(HRESULT, Activate, BOOL,fActivate) \
1152 ICOM_METHOD2(HRESULT, SetVolume, long,lVolume, DWORD,dwDuration) \
1153 ICOM_METHOD2(HRESULT, ConvertPChannel, DWORD,dwPChannelIn, DWORD*,pdwPChannelOut)
1155 /*** IDirectMusicAudioPath methods ***/
1156 #define IDirectMusicAudioPath_IMETHODS \
1157 IUnknown_IMETHODS \
1158 IDirectMusicAudioPath_METHODS
1159 ICOM_DEFINE(IDirectMusicAudioPath,IUnknown)
1160 #undef ICOM_INTERFACE
1162 /*** IUnknown methods ***/
1163 #define IDirectMusicAudioPath_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
1164 #define IDirectMusicAudioPath_AddRef(p) ICOM_CALL (AddRef,p)
1165 #define IDirectMusicAudioPath_Release(p) ICOM_CALL (Release,p)
1166 /*** IDirectMusicAudioPath methods ***/
1167 #define IDirectMusicAudioPath_GetObjectInPath(p,a,b,c,d,e,f,g) ICOM_CALL7(GetObjectInPath,p,a,b,c,d,e,f,g)
1168 #define IDirectMusicAudioPath_Activate(p,a) ICOM_CALL1(Activate,p,a)
1169 #define IDirectMusicAudioPath_SetVolume(p,a,b) ICOM_CALL2(SetVolume,p,a,b)
1170 #define IDirectMusicAudioPath_ConvertPChannel(p,a,b) ICOM_CALL2(ConvertPChannel,p,a,b)
1173 /*****************************************************************************
1174 * IDirectMusicPerformance interface
1176 #undef ICOM_INTERFACE
1177 #define ICOM_INTERFACE IDirectMusicPerformance
1178 #define IDirectMusicPerformance_METHODS \
1179 /*** IDirectMusicPerformance methods ***/ \
1180 ICOM_METHOD3(HRESULT, Init, IDirectMusic**,ppDirectMusic, LPDIRECTSOUND,pDirectSound, HWND,hWnd) \
1181 ICOM_METHOD4(HRESULT, PlaySegment, IDirectMusicSegment*,pSegment, DWORD,dwFlags, __int64,i64StartTime, IDirectMusicSegmentState**,ppSegmentState) \
1182 ICOM_METHOD4(HRESULT, Stop, IDirectMusicSegment*,pSegment, IDirectMusicSegmentState*,pSegmentState, MUSIC_TIME,mtTime, DWORD,dwFlags) \
1183 ICOM_METHOD2(HRESULT, GetSegmentState, IDirectMusicSegmentState**,ppSegmentState, MUSIC_TIME,mtTime) \
1184 ICOM_METHOD1(HRESULT, SetPrepareTime, DWORD,dwMilliSeconds) \
1185 ICOM_METHOD1(HRESULT, GetPrepareTime, DWORD*,pdwMilliSeconds) \
1186 ICOM_METHOD1(HRESULT, SetBumperLength, DWORD,dwMilliSeconds) \
1187 ICOM_METHOD1(HRESULT, GetBumperLength, DWORD*,pdwMilliSeconds) \
1188 ICOM_METHOD1(HRESULT, SendPMsg, DMUS_PMSG*,pPMSG) \
1189 ICOM_METHOD2(HRESULT, MusicToReferenceTime, MUSIC_TIME,mtTime, REFERENCE_TIME*,prtTime) \
1190 ICOM_METHOD2(HRESULT, ReferenceToMusicTime, REFERENCE_TIME,rtTime, MUSIC_TIME*,pmtTime) \
1191 ICOM_METHOD2(HRESULT, IsPlaying, IDirectMusicSegment*,pSegment, IDirectMusicSegmentState*,pSegState) \
1192 ICOM_METHOD2(HRESULT, GetTime, REFERENCE_TIME*,prtNow, MUSIC_TIME*,pmtNow) \
1193 ICOM_METHOD2(HRESULT, AllocPMsg, ULONG,cb, DMUS_PMSG**,ppPMSG) \
1194 ICOM_METHOD1(HRESULT, FreePMsg, DMUS_PMSG*,pPMSG) \
1195 ICOM_METHOD1(HRESULT, GetGraph, IDirectMusicGraph**,ppGraph) \
1196 ICOM_METHOD1(HRESULT, SetGraph, IDirectMusicGraph*,pGraph) \
1197 ICOM_METHOD2(HRESULT, SetNotificationHandle, HANDLE,hNotification, REFERENCE_TIME,rtMinimum) \
1198 ICOM_METHOD1(HRESULT, GetNotificationPMsg, DMUS_NOTIFICATION_PMSG**,ppNotificationPMsg) \
1199 ICOM_METHOD1(HRESULT, AddNotificationType, REFGUID,rguidNotificationType) \
1200 ICOM_METHOD1(HRESULT, RemoveNotificationType, REFGUID,rguidNotificationType) \
1201 ICOM_METHOD1(HRESULT, AddPort, IDirectMusicPort*,pPort) \
1202 ICOM_METHOD1(HRESULT, RemovePort, IDirectMusicPort*,pPort) \
1203 ICOM_METHOD3(HRESULT, AssignPChannelBlock, DWORD,dwBlockNum, IDirectMusicPort*,pPort, DWORD,dwGroup) \
1204 ICOM_METHOD4(HRESULT, AssignPChannel, DWORD,dwPChannel, IDirectMusicPort*,pPort, DWORD,dwGroup, DWORD,dwMChannel) \
1205 ICOM_METHOD4(HRESULT, PChannelInfo, DWORD,dwPChannel, IDirectMusicPort**,ppPort, DWORD*,pdwGroup, DWORD*,pdwMChannel) \
1206 ICOM_METHOD8(HRESULT, DownloadInstrument, IDirectMusicInstrument*,pInst, DWORD,dwPChannel, IDirectMusicDownloadedInstrument**,ppDownInst, DMUS_NOTERANGE*,pNoteRanges, DWORD,dwNumNoteRanges, IDirectMusicPort**,ppPort, DWORD*,pdwGroup, DWORD*,pdwMChannel) \
1207 ICOM_METHOD2(HRESULT, Invalidate, MUSIC_TIME,mtTime, DWORD,dwFlags) \
1208 ICOM_METHOD6(HRESULT, GetParam, REFGUID,rguidType, DWORD,dwGroupBits, DWORD,dwIndex, MUSIC_TIME,mtTime, MUSIC_TIME*,pmtNext, void*,pParam) \
1209 ICOM_METHOD5(HRESULT, SetParam, REFGUID,rguidType, DWORD,dwGroupBits, DWORD,dwIndex, MUSIC_TIME,mtTime, void*,pParam) \
1210 ICOM_METHOD3(HRESULT, GetGlobalParam, REFGUID,rguidType, void*,pParam, DWORD,dwSize) \
1211 ICOM_METHOD3(HRESULT, SetGlobalParam, REFGUID,rguidType, void*,pParam, DWORD,dwSize) \
1212 ICOM_METHOD1(HRESULT, GetLatencyTime, REFERENCE_TIME*,prtTime) \
1213 ICOM_METHOD1(HRESULT, GetQueueTime, REFERENCE_TIME*,prtTime) \
1214 ICOM_METHOD1(HRESULT, AdjustTime, REFERENCE_TIME,rtAmount) \
1215 ICOM_METHOD (HRESULT, CloseDown) \
1216 ICOM_METHOD3(HRESULT, GetResolvedTime, REFERENCE_TIME,rtTime, REFERENCE_TIME*,prtResolved, DWORD,dwTimeResolveFlags) \
1217 ICOM_METHOD5(HRESULT, MIDIToMusic, BYTE,bMIDIValue, DMUS_CHORD_KEY*,pChord, BYTE,bPlayMode, BYTE,bChordLevel, WORD*,pwMusicValue) \
1218 ICOM_METHOD5(HRESULT, MusicToMIDI, WORD,wMusicValue, DMUS_CHORD_KEY*,pChord, BYTE,bPlayMode, BYTE,bChordLevel, BYTE*,pbMIDIValue) \
1219 ICOM_METHOD6(HRESULT, TimeToRhythm, MUSIC_TIME,mtTime, DMUS_TIMESIGNATURE*,pTimeSig, WORD*,pwMeasure, BYTE*,pbBeat, BYTE*,pbGrid, short*,pnOffset) \
1220 ICOM_METHOD6(HRESULT, RhythmToTime, WORD,wMeasure, BYTE,bBeat, BYTE,bGrid, short,nOffset, DMUS_TIMESIGNATURE*,pTimeSig, MUSIC_TIME*,pmtTime)
1222 /*** IDirectMusicPerformance methods ***/
1223 #define IDirectMusicPerformance_IMETHODS \
1224 IUnknown_IMETHODS \
1225 IDirectMusicPerformance_METHODS
1226 ICOM_DEFINE(IDirectMusicPerformance,IUnknown)
1227 #undef ICOM_INTERFACE
1229 /*** IUnknown methods ***/
1230 #define IDirectMusicPerformance_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
1231 #define IDirectMusicPerformance_AddRef(p) ICOM_CALL (AddRef,p)
1232 #define IDirectMusicPerformance_Release(p) ICOM_CALL (Release,p)
1233 /*** IDirectMusicPerformance methods ***/
1234 #define IDirectMusicPerformance_Init(p,a,b,c) ICOM_CALL3(Init,p,a,b,c)
1235 #define IDirectMusicPerformance_PlaySegment(p,a,b,c,d) ICOM_CALL4(PlaySegment,p,a,b,c,d)
1236 #define IDirectMusicPerformance_Stop(p,a,b,c,d) ICOM_CALL4(Stop,p,a,b,c,d)
1237 #define IDirectMusicPerformance_GetSegmentState(p,a,b) ICOM_CALL2(GetSegmentState,p,a,b)
1238 #define IDirectMusicPerformance_SetPrepareTime(p,a) ICOM_CALL1(SetPrepareTime,p,a)
1239 #define IDirectMusicPerformance_GetPrepareTime(p,a) ICOM_CALL1(GetPrepareTime,p,a)
1240 #define IDirectMusicPerformance_SetBumperLength(p,a) ICOM_CALL1(SetBumperLength,p,a)
1241 #define IDirectMusicPerformance_GetBumperLength(p,a) ICOM_CALL1(GetBumperLength,p,a)
1242 #define IDirectMusicPerformance_SendPMsg(p,a) ICOM_CALL1(SendPMsg,p,a)
1243 #define IDirectMusicPerformance_MusicToReferenceTime(p,a,b) ICOM_CALL2(MusicToReferenceTime,p,a,b)
1244 #define IDirectMusicPerformance_ReferenceToMusicTime(p,a,b) ICOM_CALL2(ReferenceToMusicTime,p,a,b)
1245 #define IDirectMusicPerformance_IsPlaying(p,a,b) ICOM_CALL2(IsPlaying,p,a,b)
1246 #define IDirectMusicPerformance_GetTime(p,a,b) ICOM_CALL2(GetTime,p,a,b)
1247 #define IDirectMusicPerformance_AllocPMsg(p,a,b) ICOM_CALL2(AllocPMsg,p,a,b)
1248 #define IDirectMusicPerformance_FreePMsg(p,a) ICOM_CALL1(FreePMsg,p,a)
1249 #define IDirectMusicPerformance_GetGraph(p,a) ICOM_CALL1(GetGraph,p,a)
1250 #define IDirectMusicPerformance_SetGraph(p,a) ICOM_CALL1(SetGraph,p,a)
1251 #define IDirectMusicPerformance_SetNotificationHandle(p,a,b) ICOM_CALL2(SetNotificationHandle,p,a,b)
1252 #define IDirectMusicPerformance_GetNotificationPMsg(p,a) ICOM_CALL1(GetNotificationPMsg,p,a)
1253 #define IDirectMusicPerformance_AddNotificationType(p,a) ICOM_CALL1(AddNotificationType,p,a)
1254 #define IDirectMusicPerformance_RemoveNotificationType(p,a) ICOM_CALL1(RemoveNotificationType,p,a)
1255 #define IDirectMusicPerformance_AddPort(p,a) ICOM_CALL1(AddPort,p,a)
1256 #define IDirectMusicPerformance_RemovePort(p,a) ICOM_CALL1(RemovePort,p,a)
1257 #define IDirectMusicPerformance_AssignPChannelBlock(p,a,b,c) ICOM_CALL3(AssignPChannelBlock,p,a,b,c)
1258 #define IDirectMusicPerformance_AssignPChannel(p,a,b,c,d) ICOM_CALL4(AssignPChannel,p,a,b,c,d)
1259 #define IDirectMusicPerformance_PChannelInfo(p,a,b,c,d) ICOM_CALL4(PChannelInfo,p,a,b,c,d)
1260 #define IDirectMusicPerformance_DownloadInstrument(p,a,b,c,d,e,f,g,h) ICOM_CALL8(DownloadInstrument,p,a,b,c,d,e,f,g,h)
1261 #define IDirectMusicPerformance_Invalidate(p,a,b) ICOM_CALL2(Invalidate,p,a,b)
1262 #define IDirectMusicPerformance_GetParam(p,a,b,c,d,e,f) ICOM_CALL6(GetParam,p,a,b,c,d,e,f)
1263 #define IDirectMusicPerformance_SetParam(p,a,b,c,d,e) ICOM_CALL5(SetParam,p,a,b,c,d,e)
1264 #define IDirectMusicPerformance_GetGlobalParam(p,a,b,c) ICOM_CALL3(GetGlobalParam,p,a,b,c)
1265 #define IDirectMusicPerformance_SetGlobalParam(p,a,b,c) ICOM_CALL3(SetGlobalParam,p,a,b,c)
1266 #define IDirectMusicPerformance_GetLatencyTime(p,a) ICOM_CALL1(GetLatencyTime,p,a)
1267 #define IDirectMusicPerformance_GetQueueTime(p,a) ICOM_CALL1(GetQueueTime,p,a)
1268 #define IDirectMusicPerformance_AdjustTime(p,a) ICOM_CALL1(AdjustTime,p,a)
1269 #define IDirectMusicPerformance_CloseDown(p) ICOM_CALL (CloseDown,p)
1270 #define IDirectMusicPerformance_GetResolvedTime(p,a,b,c) ICOM_CALL3(GetResolvedTime,p,a,b,c)
1271 #define IDirectMusicPerformance_MIDIToMusic(p,a,b,c,d,e) ICOM_CALL5(MIDIToMusic,p,a,b,c,d,e)
1272 #define IDirectMusicPerformance_MusicToMIDI(p,a,b,c,d,e) ICOM_CALL5(MusicToMIDI,p,a,b,c,d,e)
1273 #define IDirectMusicPerformance_TimeToRhythm(p,a,b,c,d,e,f) ICOM_CALL6(TimeToRhythm,p,a,b,c,d,e,f)
1274 #define IDirectMusicPerformance_RhythmToTime(p,a,b,c,d,e,f) ICOM_CALL6(RhythmToTime,p,a,b,c,d,e,f)
1277 /*****************************************************************************
1278 * IDirectMusicPerformance8 interface
1280 #undef ICOM_INTERFACE
1281 #define ICOM_INTERFACE IDirectMusicPerformance8
1282 #define IDirectMusicPerformance8_METHODS \
1283 /*** IDirectMusicPerformance8 methods ***/ \
1284 ICOM_METHOD7(HRESULT, InitAudio, IDirectMusic**,ppDirectMusic, IDirectSound**,ppDirectSound, HWND,hWnd, DWORD,dwDefaultPathType, DWORD,dwPChannelCount, DWORD,dwFlags, DMUS_AUDIOPARAMS*,pParams) \
1285 ICOM_METHOD8(HRESULT, PlaySegmentEx, IUnknown*,pSource, WCHAR*,pwzSegmentName, IUnknown*,pTransition, DWORD,dwFlags, __int64,i64StartTime, IDirectMusicSegmentState**,ppSegmentState, IUnknown*,pFrom, IUnknown*,pAudioPath) \
1286 ICOM_METHOD3(HRESULT, StopEx, IUnknown*,pObjectToStop, __int64,i64StopTime, DWORD,dwFlags) \
1287 ICOM_METHOD2(HRESULT, ClonePMsg, DMUS_PMSG*,pSourcePMSG, DMUS_PMSG**,ppCopyPMSG) \
1288 ICOM_METHOD3(HRESULT, CreateAudioPath, IUnknown*,pSourceConfig, BOOL,fActivate, IDirectMusicAudioPath**,ppNewPath) \
1289 ICOM_METHOD4(HRESULT, CreateStandardAudioPath, DWORD,dwType, DWORD,dwPChannelCount, BOOL,fActivate, IDirectMusicAudioPath**,ppNewPath) \
1290 ICOM_METHOD1(HRESULT, SetDefaultAudioPath, IDirectMusicAudioPath*,pAudioPath) \
1291 ICOM_METHOD1(HRESULT, GetDefaultAudioPath, IDirectMusicAudioPath**,ppAudioPath) \
1292 ICOM_METHOD7(HRESULT, GetParamEx, REFGUID,rguidType, DWORD,dwTrackID, DWORD,dwGroupBits, DWORD,dwIndex, MUSIC_TIME,mtTime, MUSIC_TIME*,pmtNext, void*,pParam)
1294 /*** IDirectMusicPerformance8 methods ***/
1295 #define IDirectMusicPerformance8_IMETHODS \
1296 IUnknown_IMETHODS \
1297 IDirectMusicPerformance_METHODS \
1298 IDirectMusicPerformance8_METHODS
1299 ICOM_DEFINE(IDirectMusicPerformance8,IDirectMusicPerformance)
1300 #undef ICOM_INTERFACE
1302 /*** IUnknown methods ***/
1303 #define IDirectMusicPerformance8_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
1304 #define IDirectMusicPerformance8_AddRef(p) ICOM_CALL (AddRef,p)
1305 #define IDirectMusicPerformance8_Release(p) ICOM_CALL (Release,p)
1306 /*** IDirectMusicPerformance methods ***/
1307 #define IDirectMusicPerformance8_Init(p,a,b,c) ICOM_CALL3(Init,p,a,b,c)
1308 #define IDirectMusicPerformance8_PlaySegment(p,a,b,c,d) ICOM_CALL4(PlaySegment,p,a,b,c,d)
1309 #define IDirectMusicPerformance8_Stop(p,a,b,c,d) ICOM_CALL4(Stop,p,a,b,c,d)
1310 #define IDirectMusicPerformance8_GetSegmentState(p,a,b) ICOM_CALL2(GetSegmentState,p,a,b)
1311 #define IDirectMusicPerformance8_SetPrepareTime(p,a) ICOM_CALL1(SetPrepareTime,p,a)
1312 #define IDirectMusicPerformance8_GetPrepareTime(p,a) ICOM_CALL1(GetPrepareTime,p,a)
1313 #define IDirectMusicPerformance8_SetBumperLength(p,a) ICOM_CALL1(SetBumperLength,p,a)
1314 #define IDirectMusicPerformance8_GetBumperLength(p,a) ICOM_CALL1(GetBumperLength,p,a)
1315 #define IDirectMusicPerformance8_SendPMsg(p,a) ICOM_CALL1(SendPMsg,p,a)
1316 #define IDirectMusicPerformance8_MusicToReferenceTime(p,a,b) ICOM_CALL2(MusicToReferenceTime,p,a,b)
1317 #define IDirectMusicPerformance8_ReferenceToMusicTime(p,a,b) ICOM_CALL2(ReferenceToMusicTime,p,a,b)
1318 #define IDirectMusicPerformance8_IsPlaying(p,a,b) ICOM_CALL2(IsPlaying,p,a,b)
1319 #define IDirectMusicPerformance8_GetTime(p,a,b) ICOM_CALL2(GetTime,p,a,b)
1320 #define IDirectMusicPerformance8_AllocPMsg(p,a,b) ICOM_CALL2(AllocPMsg,p,a,b)
1321 #define IDirectMusicPerformance8_FreePMsg(p,a) ICOM_CALL1(FreePMsg,p,a)
1322 #define IDirectMusicPerformance8_GetGraph(p,a) ICOM_CALL1(GetGraph,p,a)
1323 #define IDirectMusicPerformance8_SetGraph(p,a) ICOM_CALL1(SetGraph,p,a)
1324 #define IDirectMusicPerformance8_SetNotificationHandle(p,a,b) ICOM_CALL2(SetNotificationHandle,p,a,b)
1325 #define IDirectMusicPerformance8_GetNotificationPMsg(p,a) ICOM_CALL1(GetNotificationPMsg,p,a)
1326 #define IDirectMusicPerformance8_AddNotificationType(p,a) ICOM_CALL1(AddNotificationType,p,a)
1327 #define IDirectMusicPerformance8_RemoveNotificationType(p,a) ICOM_CALL1(RemoveNotificationType,p,a)
1328 #define IDirectMusicPerformance8_AddPort(p,a) ICOM_CALL1(AddPort,p,a)
1329 #define IDirectMusicPerformance8_RemovePort(p,a) ICOM_CALL1(RemovePort,p,a)
1330 #define IDirectMusicPerformance8_AssignPChannelBlock(p,a,b,c) ICOM_CALL3(AssignPChannelBlock,p,a,b,c)
1331 #define IDirectMusicPerformance8_AssignPChannel(p,a,b,c,d) ICOM_CALL4(AssignPChannel,p,a,b,c,d)
1332 #define IDirectMusicPerformance8_PChannelInfo(p,a,b,c,d) ICOM_CALL4(PChannelInfo,p,a,b,c,d)
1333 #define IDirectMusicPerformance8_DownloadInstrument(p,a,b,c,d,e,f,g,h) ICOM_CALL8(DownloadInstrument,p,a,b,c,d,e,f,g,h)
1334 #define IDirectMusicPerformance8_Invalidate(p,a,b) ICOM_CALL2(Invalidate,p,a,b)
1335 #define IDirectMusicPerformance8_GetParam(p,a,b,c,d,e,f) ICOM_CALL6(GetParam,p,a,b,c,d,e,f)
1336 #define IDirectMusicPerformance8_SetParam(p,a,b,c,d,e) ICOM_CALL5(SetParam,p,a,b,c,d,e)
1337 #define IDirectMusicPerformance8_GetGlobalParam(p,a,b,c) ICOM_CALL3(GetGlobalParam,p,a,b,c)
1338 #define IDirectMusicPerformance8_SetGlobalParam(p,a,b,c) ICOM_CALL3(SetGlobalParam,p,a,b,c)
1339 #define IDirectMusicPerformance8_GetLatencyTime(p,a) ICOM_CALL1(GetLatencyTime,p,a)
1340 #define IDirectMusicPerformance8_GetQueueTime(p,a) ICOM_CALL1(GetQueueTime,p,a)
1341 #define IDirectMusicPerformance8_AdjustTime(p,a) ICOM_CALL1(AdjustTime,p,a)
1342 #define IDirectMusicPerformance8_CloseDown(p) ICOM_CALL (CloseDown,p)
1343 #define IDirectMusicPerformance8_GetResolvedTime(p,a,b,c) ICOM_CALL3(GetResolvedTime,p,a,b,c)
1344 #define IDirectMusicPerformance8_MIDIToMusic(p,a,b,c,d,e) ICOM_CALL5(MIDIToMusic,p,a,b,c,d,e)
1345 #define IDirectMusicPerformance8_MusicToMIDI(p,a,b,c,d,e) ICOM_CALL5(MusicToMIDI,p,a,b,c,d,e)
1346 #define IDirectMusicPerformance8_TimeToRhythm(p,a,b,c,d,e,f) ICOM_CALL6(TimeToRhythm,p,a,b,c,d,e,f)
1347 #define IDirectMusicPerformance8_RhythmToTime(p,a,b,c,d,e,f) ICOM_CALL6(RhythmToTime,p,a,b,c,d,e,f)
1348 /* IDirectMusicPerformance8 methods*/
1349 #define IDirectMusicPerformance8_InitAudio(p,a,b,c,d,e,f,g) ICOM_CALL7(InitAudio,p,a,b,c,d,e,f,g)
1350 #define IDirectMusicPerformance8_PlaySegmentEx(p,a,b,c,d,e,f,g,h) ICOM_CALL8(PlaySegmentEx,p,a,b,c,d,e,f,g,h)
1351 #define IDirectMusicPerformance8_StopEx(p,a,b,c) ICOM_CALL3(StopEx,p,a,b,c)
1352 #define IDirectMusicPerformance8_ClonePMsg(p,a,b) ICOM_CALL2(ClonePMsg,p,a,b)
1353 #define IDirectMusicPerformance8_CreateAudioPath(p,a,b,c) ICOM_CALL3(CreateAudioPath,p,a,b,c)
1354 #define IDirectMusicPerformance8_CreateStandardAudioPath(p,a,b,c,d) ICOM_CALL4(CreateStandardAudioPath,p,a,b,c,d)
1355 #define IDirectMusicPerformance8_SetDefaultAudioPath(p,a) ICOM_CALL1(SetDefaultAudioPath,p,a)
1356 #define IDirectMusicPerformance8_GetDefaultAudioPath(p,a) ICOM_CALL1(GetDefaultAudioPath,p,a)
1357 #define IDirectMusicPerformance8_GetParamEx(p,a,b,c,d,e,f,g) ICOM_CALL7(GetParamEx,p,a,b,c,d,e,f,g)
1360 /*****************************************************************************
1361 * IDirectMusicGraph interface
1363 #undef ICOM_INTERFACE
1364 #define ICOM_INTERFACE IDirectMusicGraph
1365 #define IDirectMusicGraph_METHODS \
1366 /*** IDirectMusicGraph methods ***/ \
1367 ICOM_METHOD1(HRESULT, StampPMsg, DMUS_PMSG*,pPMSG) \
1368 ICOM_METHOD4(HRESULT, InsertTool, IDirectMusicTool*,pTool, DWORD*,pdwPChannels, DWORD,cPChannels, LONG,lIndex) \
1369 ICOM_METHOD2(HRESULT, GetTool, DWORD,dwIndex, IDirectMusicTool**,ppTool) \
1370 ICOM_METHOD1(HRESULT, RemoveTool, IDirectMusicTool*,pTool)
1372 /*** IDirectMusicGraph methods ***/
1373 #define IDirectMusicGraph_IMETHODS \
1374 IUnknown_IMETHODS \
1375 IDirectMusicGraph_METHODS
1376 ICOM_DEFINE(IDirectMusicGraph,IUnknown)
1377 #undef ICOM_INTERFACE
1379 /*** IUnknown methods ***/
1380 #define IDirectMusicGraph_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
1381 #define IDirectMusicGraph_AddRef(p) ICOM_CALL (AddRef,p)
1382 #define IDirectMusicGraph_Release(p) ICOM_CALL (Release,p)
1383 /*** IDirectMusicGraph methods ***/
1384 #define IDirectMusicGraph_StampPMsg(p,a) ICOM_CALL1(StampPMsg,p,a)
1385 #define IDirectMusicGraph_InsertTool(p,a,b,c,d) ICOM_CALL4(InsertTool,p,a,b,c,d)
1386 #define IDirectMusicGraph_GetTool(p,a,b) ICOM_CALL2(GetTool,p,a,b)
1387 #define IDirectMusicGraph_RemoveTool(p,a) ICOM_CALL1(RemoveTool,p,a)
1390 /*****************************************************************************
1391 * IDirectMusicStyle interface
1393 #undef ICOM_INTERFACE
1394 #define ICOM_INTERFACE IDirectMusicStyle
1395 #define IDirectMusicStyle_METHODS \
1396 /*** IDirectMusicStyle methods ***/ \
1397 ICOM_METHOD2(HRESULT, GetBand, WCHAR*,pwszName, IDirectMusicBand**,ppBand) \
1398 ICOM_METHOD2(HRESULT, EnumBand, DWORD,dwIndex, WCHAR*,pwszName) \
1399 ICOM_METHOD1(HRESULT, GetDefaultBand, IDirectMusicBand**,ppBand) \
1400 ICOM_METHOD2(HRESULT, EnumMotif, DWORD,dwIndex, WCHAR*,pwszName) \
1401 ICOM_METHOD2(HRESULT, GetMotif, WCHAR*,pwszName, IDirectMusicSegment**,ppSegment) \
1402 ICOM_METHOD1(HRESULT, GetDefaultChordMap, IDirectMusicChordMap**,ppChordMap) \
1403 ICOM_METHOD2(HRESULT, EnumChordMap, DWORD,dwIndex, WCHAR*,pwszName) \
1404 ICOM_METHOD2(HRESULT, GetChordMap, WCHAR*,pwszName, IDirectMusicChordMap**,ppChordMap) \
1405 ICOM_METHOD1(HRESULT, GetTimeSignature, DMUS_TIMESIGNATURE*,pTimeSig) \
1406 ICOM_METHOD4(HRESULT, GetEmbellishmentLength, DWORD,dwType, DWORD,dwLevel, DWORD*,pdwMin, DWORD*,pdwMax) \
1407 ICOM_METHOD1(HRESULT, GetTempo, double*,pTempo)
1409 /*** IDirectMusicStyle methods ***/
1410 #define IDirectMusicStyle_IMETHODS \
1411 IUnknown_IMETHODS \
1412 IDirectMusicStyle_METHODS
1413 ICOM_DEFINE(IDirectMusicStyle,IUnknown)
1414 #undef ICOM_INTERFACE
1416 /*** IUnknown methods ***/
1417 #define IDirectMusicStyle_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
1418 #define IDirectMusicStyle_AddRef(p) ICOM_CALL (AddRef,p)
1419 #define IDirectMusicStyle_Release(p) ICOM_CALL (Release,p)
1420 /*** IDirectMusicStyle methods ***/
1421 #define IDirectMusicStyle_GetBand(p,a,b) ICOM_CALL2(GetBand,p,a,b)
1422 #define IDirectMusicStyle_EnumBand(p,a,b) ICOM_CALL2(EnumBand,p,a,b)
1423 #define IDirectMusicStyle_GetDefaultBand(p,a) ICOM_CALL1(GetDefaultBand,p,a)
1424 #define IDirectMusicStyle_EnumMotif(p,a,b) ICOM_CALL2(EnumMotif,p,a,b)
1425 #define IDirectMusicStyle_GetMotif(p,a,b) ICOM_CALL2(GetMotif,p,a,b)
1426 #define IDirectMusicStyle_GetDefaultChordMap(p,a) ICOM_CALL1(GetDefaultChordMap,p,a)
1427 #define IDirectMusicStyle_EnumChordMap(p,a,b) ICOM_CALL2(EnumChordMap,p,a,b)
1428 #define IDirectMusicStyle_GetChordMap(p,a,b) ICOM_CALL2(GetChordMap,p,a,b)
1429 #define IDirectMusicStyle_GetTimeSignature(p,a) ICOM_CALL1(GetTimeSignature,p,a)
1430 #define IDirectMusicStyle_GetEmbellishmentLength(p,a,b,c,d) ICOM_CALL4GetEmbellishmentLength(,p,a,b,c,d)
1431 #define IDirectMusicStyle_GetTempo(p,a) ICOM_CALL1(GetTempo,p,a)
1434 /*****************************************************************************
1435 * IDirectMusicStyle8 interface
1437 #undef ICOM_INTERFACE
1438 #define ICOM_INTERFACE IDirectMusicStyle8
1439 #define IDirectMusicStyle8_METHODS \
1440 /*** IDirectMusicStyle8 methods ***/ \
1441 ICOM_METHOD3(HRESULT, EnumPattern, DWORD,dwIndex, DWORD,dwPatternType, WCHAR*,pwszName)
1443 /*** IDirectMusicStyle8 methods ***/
1444 #define IDirectMusicStyle8_IMETHODS \
1445 IUnknown_IMETHODS \
1446 IDirectMusicStyle_METHODS \
1447 IDirectMusicStyle8_METHODS
1448 ICOM_DEFINE(IDirectMusicStyle8,IDirectMusicStyle)
1449 #undef ICOM_INTERFACE
1451 /*** IUnknown methods ***/
1452 #define IDirectMusicStyle8_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
1453 #define IDirectMusicStyle8_AddRef(p) ICOM_CALL (AddRef,p)
1454 #define IDirectMusicStyle8_Release(p) ICOM_CALL (Release,p)
1455 /*** IDirectMusicStyle methods ***/
1456 #define IDirectMusicStyle8_GetBand(p,a,b) ICOM_CALL2(GetBand,p,a,b)
1457 #define IDirectMusicStyle8_EnumBand(p,a,b) ICOM_CALL2(EnumBand,p,a,b)
1458 #define IDirectMusicStyle8_GetDefaultBand(p,a) ICOM_CALL1(GetDefaultBand,p,a)
1459 #define IDirectMusicStyle8_EnumMotif(p,a,b) ICOM_CALL2(EnumMotif,p,a,b)
1460 #define IDirectMusicStyle8_GetMotif(p,a,b) ICOM_CALL2(GetMotif,p,a,b)
1461 #define IDirectMusicStyle8_GetDefaultChordMap(p,a) ICOM_CALL1(GetDefaultChordMap,p,a)
1462 #define IDirectMusicStyle8_EnumChordMap(p,a,b) ICOM_CALL2(EnumChordMap,p,a,b)
1463 #define IDirectMusicStyle8_GetChordMap(p,a,b) ICOM_CALL2(GetChordMap,p,a,b)
1464 #define IDirectMusicStyle8_GetTimeSignature(p,a) ICOM_CALL1(GetTimeSignature,p,a)
1465 #define IDirectMusicStyle8_GetEmbellishmentLength(p,a,b,c,d) ICOM_CALL4GetEmbellishmentLength(,p,a,b,c,d)
1466 #define IDirectMusicStyle8_GetTempo(p,a) ICOM_CALL1(GetTempo,p,a)
1467 /*** IDirectMusicStyle8 methods ***/
1468 #define IDirectMusicStyle8_EnumPattern(p,a,b,c) ICOM_CALL3(EnumPattern,p,a,b,c)
1471 /*****************************************************************************
1472 * IDirectMusicChordMap interface
1474 #undef ICOM_INTERFACE
1475 #define ICOM_INTERFACE IDirectMusicChordMap
1476 #define IDirectMusicChordMap_METHODS \
1477 /*** IDirectMusicChordMap methods ***/ \
1478 ICOM_METHOD1(HRESULT, GetScale, DWORD*,pdwScale)
1480 /*** IDirectMusicChordMap methods ***/
1481 #define IDirectMusicChordMap_IMETHODS \
1482 IUnknown_IMETHODS \
1483 IDirectMusicChordMap_METHODS
1484 ICOM_DEFINE(IDirectMusicChordMap,IUnknown)
1485 #undef ICOM_INTERFACE
1487 /*** IUnknown methods ***/
1488 #define IDirectMusicChordMap_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
1489 #define IDirectMusicChordMap_AddRef(p) ICOM_CALL (AddRef,p)
1490 #define IDirectMusicChordMap_Release(p) ICOM_CALL (Release,p)
1491 /*** IDirectMusicChordMap methods ***/
1492 #define IDirectMusicChordMap_GetScale(p,a) ICOM_CALL1(GetScale,p,a)
1495 /*****************************************************************************
1496 * IDirectMusicComposer interface
1498 #undef ICOM_INTERFACE
1499 #define ICOM_INTERFACE IDirectMusicComposer
1500 #define IDirectMusicComposer_METHODS \
1501 /*** IDirectMusicComposer methods ***/ \
1502 ICOM_METHOD5(HRESULT, ComposeSegmentFromTemplate, IDirectMusicStyle*,pStyle, IDirectMusicSegment*,pTemplate, WORD,wActivity, IDirectMusicChordMap*,pChordMap, IDirectMusicSegment**,ppSegment) \
1503 ICOM_METHOD8(HRESULT, ComposeSegmentFromShape, IDirectMusicStyle*,pStyle, WORD,wNumMeasures, WORD,wShape, WORD,wActivity, BOOL,fIntro, BOOL,fEnd, IDirectMusicChordMap*,pChordMap, IDirectMusicSegment**,ppSegment) \
1504 ICOM_METHOD7(HRESULT, ComposeTransition, IDirectMusicSegment*,pFromSeg, IDirectMusicSegment*,pToSeg, MUSIC_TIME,mtTime, WORD,wCommand, DWORD,dwFlags, IDirectMusicChordMap*,pChordMap, IDirectMusicSegment**,ppTransSeg) \
1505 ICOM_METHOD8(HRESULT, AutoTransition, IDirectMusicPerformance*,pPerformance, IDirectMusicSegment*,pToSeg, WORD,wCommand, DWORD,dwFlags, IDirectMusicChordMap*,pChordMap, IDirectMusicSegment**,ppTransSeg, IDirectMusicSegmentState**,ppToSegState, IDirectMusicSegmentState**,ppTransSegState) \
1506 ICOM_METHOD6(HRESULT, ComposeTemplateFromShape, WORD,wNumMeasures, WORD,wShape, BOOL,fIntro, BOOL,fEnd, WORD,wEndLength, IDirectMusicSegment**,ppTemplate) \
1507 ICOM_METHOD3(HRESULT, ChangeChordMap, IDirectMusicSegment*,pSegment, BOOL,fTrackScale, IDirectMusicChordMap*,pChordMap)
1509 /*** IDirectMusicComposer methods ***/
1510 #define IDirectMusicComposer_IMETHODS \
1511 IUnknown_IMETHODS \
1512 IDirectMusicComposer_METHODS
1513 ICOM_DEFINE(IDirectMusicComposer,IUnknown)
1514 #undef ICOM_INTERFACE
1516 /*** IUnknown methods ***/
1517 #define IDirectMusicComposer_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
1518 #define IDirectMusicComposer_AddRef(p) ICOM_CALL (AddRef,p)
1519 #define IDirectMusicComposer_Release(p) ICOM_CALL (Release,p)
1520 /*** IDirectMusicComposer methods ***/
1521 #define IDirectMusicComposer_ComposeSegmentFromTemplate(p,a,b,c,d,e) ICOM_CALL5(ComposeSegmentFromTemplate,p,a,b,c,d,e)
1522 #define IDirectMusicComposer_ComposeSegmentFromShape(p,a,b,c,d,e,f,g,h) ICOM_CALL8(ComposeSegmentFromShape,p,a,b,c,d,e,f,g,h)
1523 #define IDirectMusicComposer_ComposeTransition(p,a,b,c,d,e,f,g) ICOM_CALL7(ComposeTransition,p,a,b,c,d,e,f,g)
1524 #define IDirectMusicComposer_AutoTransition(p,a,b,c,d,e,f,g,h) ICOM_CALL8(AutoTransition,p,a,b,c,d,e,f,g,h)
1525 #define IDirectMusicComposer_ComposeTemplateFromShape(p,a,b,c,d,e,f) ICOM_CALL6(ComposeTemplateFromShape,p,a,b,c,d,e,f)
1526 #define IDirectMusicComposer_ChangeChordMap(p,a,b,c) ICOM_CALL3(ChangeChordMap,p,a,b,c)
1529 /*****************************************************************************
1530 * IDirectMusicPatternTrack interface
1532 #undef ICOM_INTERFACE
1533 #define ICOM_INTERFACE IDirectMusicPatternTrack
1534 #define IDirectMusicPatternTrack_METHODS \
1535 /*** IDirectMusicPatternTrack methods ***/ \
1536 ICOM_METHOD2(HRESULT, CreateSegment, IDirectMusicStyle*,pStyle, IDirectMusicSegment**,ppSegment) \
1537 ICOM_METHOD3(HRESULT, SetVariation, IDirectMusicSegmentState*,pSegState, DWORD,dwVariationFlags, DWORD,dwPart) \
1538 ICOM_METHOD5(HRESULT, SetPatternByName, IDirectMusicSegmentState*,pSegState, WCHAR*,wszName, IDirectMusicStyle*,pStyle, DWORD,dwPatternType, DWORD*,pdwLength)
1540 /*** IDirectMusicPatternTrack methods ***/
1541 #define IDirectMusicPatternTrack_IMETHODS \
1542 IUnknown_IMETHODS \
1543 IDirectMusicPatternTrack_METHODS
1544 ICOM_DEFINE(IDirectMusicPatternTrack,IUnknown)
1545 #undef ICOM_INTERFACE
1547 /*** IUnknown methods ***/
1548 #define IDirectMusicPatternTrack_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
1549 #define IDirectMusicPatternTrack_AddRef(p) ICOM_CALL (AddRef,p)
1550 #define IDirectMusicPatternTrack_Release(p) ICOM_CALL (Release,p)
1551 /*** IDirectMusicPatternTrack methods ***/
1552 #define IDirectMusicPatternTrack_CreateSegment(p,a,b) ICOM_CALL2(CreateSegment,p,a,b)
1553 #define IDirectMusicPatternTrack_SetVariation(p,a,b,c) ICOM_CALL3(SetVariation,p,a,b,c)
1554 #define IDirectMusicPatternTrack_SetPatternByName(p,a,b,c,d,e) ICOM_CALL5(SetPatternByName,p,a,b,c,d,e)
1557 /*****************************************************************************
1558 * IDirectMusicScript interface
1560 #undef ICOM_INTERFACE
1561 #define ICOM_INTERFACE IDirectMusicScript
1562 #define IDirectMusicScript_METHODS \
1563 /*** IDirectMusicScript methods ***/ \
1564 ICOM_METHOD2(HRESULT, Init, IDirectMusicPerformance*,pPerformance, DMUS_SCRIPT_ERRORINFO*,pErrorInfo) \
1565 ICOM_METHOD2(HRESULT, CallRoutine, WCHAR*,pwszRoutineName, DMUS_SCRIPT_ERRORINFO*,pErrorInfo) \
1566 ICOM_METHOD4(HRESULT, SetVariableVariant, WCHAR*,pwszVariableName, VARIANT,varValue, BOOL,fSetRef, DMUS_SCRIPT_ERRORINFO*,pErrorInfo) \
1567 ICOM_METHOD3(HRESULT, GetVariableVariant, WCHAR*,pwszVariableName, VARIANT*,pvarValue, DMUS_SCRIPT_ERRORINFO*,pErrorInfo) \
1568 ICOM_METHOD3(HRESULT, SetVariableNumber, WCHAR*,pwszVariableName, LONG,lValue, DMUS_SCRIPT_ERRORINFO*,pErrorInfo) \
1569 ICOM_METHOD3(HRESULT, GetVariableNumber, WCHAR*,pwszVariableName, LONG*,plValue, DMUS_SCRIPT_ERRORINFO*,pErrorInfo) \
1570 ICOM_METHOD3(HRESULT, SetVariableObject, WCHAR*,pwszVariableName, IUnknown*,punkValue, DMUS_SCRIPT_ERRORINFO*,pErrorInfo) \
1571 ICOM_METHOD4(HRESULT, GetVariableObject, WCHAR*,pwszVariableName, REFIID,riid, LPVOID*,ppv, DMUS_SCRIPT_ERRORINFO*,pErrorInfo) \
1572 ICOM_METHOD2(HRESULT, EnumRoutine, DWORD,dwIndex, WCHAR*,pwszName) \
1573 ICOM_METHOD2(HRESULT, EnumVariable, DWORD,dwIndex, WCHAR*,pwszName)
1575 /*** IDirectMusicScript methods ***/
1576 #define IDirectMusicScript_IMETHODS \
1577 IUnknown_IMETHODS \
1578 IDirectMusicScript_METHODS
1579 ICOM_DEFINE(IDirectMusicScript,IUnknown)
1580 #undef ICOM_INTERFACE
1582 /*** IUnknown methods ***/
1583 #define IDirectMusicScript_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
1584 #define IDirectMusicScript_AddRef(p) ICOM_CALL (AddRef,p)
1585 #define IDirectMusicScript_Release(p) ICOM_CALL (Release,p)
1586 /*** IDirectMusicScript methods ***/
1587 #define IDirectMusicPatternTrack_Init(p,a,b) ICOM_CALL2(Init,p,a,b)
1588 #define IDirectMusicPatternTrack_CallRoutine(p,a,b) ICOM_CALL2(CallRoutine,p,a,b)
1589 #define IDirectMusicPatternTrack_SetVariableVariant(p,a,b,c,d) ICOM_CALL4(SetVariableVariant,p,a,b,c,d)
1590 #define IDirectMusicPatternTrack_GetVariableVariant(p,a,b,c) ICOM_CALL3(GetVariableVariant,p,a,b,c)
1591 #define IDirectMusicPatternTrack_SetVariableNumber(p,a,b,c) ICOM_CALL3(SetVariableNumber,p,a,b,c)
1592 #define IDirectMusicPatternTrack_GetVariableNumber(p,a,b,c) ICOM_CALL3(GetVariableNumber,p,a,b,c)
1593 #define IDirectMusicPatternTrack_SetVariableObject(p,a,b,c) ICOM_CALL3(SetVariableObject,p,a,b,c)
1594 #define IDirectMusicPatternTrack_GetVariableObject(p,a,b,c,d) ICOM_CALL4(GetVariableObject,p,a,b,c,d)
1595 #define IDirectMusicPatternTrack_EnumRoutine(p,a,b) ICOM_CALL2(EnumRoutine,p,a,b)
1596 #define IDirectMusicPatternTrack_EnumVariable(p,a,b) ICOM_CALL2(EnumVariable,p,a,b)
1599 /*****************************************************************************
1600 * IDirectMusicContainer interface
1602 #undef ICOM_INTERFACE
1603 #define ICOM_INTERFACE IDirectMusicContainer
1604 #define IDirectMusicContainer_METHODS \
1605 /*** IDirectMusicContainer methods ***/ \
1606 ICOM_METHOD4(HRESULT, EnumObject, REFGUID,rguidClass, DWORD,dwIndex, LPDMUS_OBJECTDESC,pDesc, WCHAR*,pwszAlias)
1608 /*** IDirectMusicContainer methods ***/
1609 #define IDirectMusicContainer_IMETHODS \
1610 IUnknown_IMETHODS \
1611 IDirectMusicContainer_METHODS
1612 ICOM_DEFINE(IDirectMusicContainer,IUnknown)
1613 #undef ICOM_INTERFACE
1615 /*** IUnknown methods ***/
1616 #define IDirectMusicContainer_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
1617 #define IDirectMusicContainer_AddRef(p) ICOM_CALL (AddRef,p)
1618 #define IDirectMusicContainer_Release(p) ICOM_CALL (Release,p)
1619 /*** IDirectMusicContainer methods ***/
1620 #define IDirectMusicContainer_EnumObject(p,a,b,c,d) ICOM_CALL4(EnumObject,p,a,b,c,d)
1623 /*****************************************************************************
1624 * IDirectMusicSong interface
1626 #undef ICOM_INTERFACE
1627 #define ICOM_INTERFACE IDirectMusicSong
1628 #define IDirectMusicSong_METHODS \
1629 /*** IDirectMusicSong methods ***/ \
1630 ICOM_METHOD (HRESULT, Compose) \
1631 ICOM_METHOD6(HRESULT, GetParam, REFGUID,rguidType, DWORD,dwGroupBits, DWORD,dwIndex, MUSIC_TIME,mtTime, MUSIC_TIME*,pmtNext, void*,pParam) \
1632 ICOM_METHOD2(HRESULT, GetSegment, WCHAR*,pwzName, IDirectMusicSegment**,ppSegment) \
1633 ICOM_METHOD1(HRESULT, GetAudioPathConfig, IUnknown**,ppAudioPathConfig) \
1634 ICOM_METHOD1(HRESULT, Download, IUnknown*,pAudioPath) \
1635 ICOM_METHOD1(HRESULT, Unload, IUnknown*,pAudioPath) \
1636 ICOM_METHOD2(HRESULT, EnumSegment, DWORD,dwIndex, IDirectMusicSegment**,ppSegment)
1638 /*** IDirectMusicSong methods ***/
1639 #define IDirectMusicSong_IMETHODS \
1640 IUnknown_IMETHODS \
1641 IDirectMusicSong_METHODS
1642 ICOM_DEFINE(IDirectMusicSong,IUnknown)
1643 #undef ICOM_INTERFACE
1645 /*** IUnknown methods ***/
1646 #define IDirectMusicSong_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
1647 #define IDirectMusicSong_AddRef(p) ICOM_CALL (AddRef,p)
1648 #define IDirectMusicSong_Release(p) ICOM_CALL (Release,p)
1649 /*** IDirectMusicSong methods ***/
1650 #define IDirectMusicSong_Compose(p) ICOM_CALL (Compose,p)
1651 #define IDirectMusicSong_GetParam(p,a,b,c,d,e,f) ICOM_CALL6(GetParam,p,a,b,c,d,e,f)
1652 #define IDirectMusicSong_GetSegment(p,a,b) ICOM_CALL2(GetSegment,p,a,b)
1653 #define IDirectMusicSong_GetAudioPathConfig(p,a) ICOM_CALL1(GetAudioPathConfig,p,a)
1654 #define IDirectMusicSong_Download(p,a) ICOM_CALL1(Download,p,a)
1655 #define IDirectMusicSong_Unload(p,a) ICOM_CALL1(Unload,p,a)
1656 #define IDirectMusicSong_EnumSegment(p,a,b) ICOM_CALL2(EnumSegment,p,a,b)
1658 #ifdef __cplusplus
1660 #endif
1662 #endif /* __WINE_DMUSIC_PERFORMANCE_H */