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