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
34 /*****************************************************************************
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 /*****************************************************************************
189 #define MT_MIN 0x80000000
190 #define MT_MAX 0x7FFFFFFF
194 #define DMUS_PMSG_PART \
196 REFERENCE_TIME rtTime; \
200 DWORD dwVirtualTrackID; \
201 IDirectMusicTool* pTool; \
202 IDirectMusicGraph* pGraph; \
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 /*****************************************************************************
354 typedef enum enumDMUS_STYLET_TYPES
356 DMUS_STYLET_PATTERN
= 0,
357 DMUS_STYLET_MOTIF
= 1,
358 DMUS_STYLET_FRAGMENT
= 2,
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,
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
417 typedef struct _DMUS_AUDIOPARAMS
425 CLSID clsidDefaultSynth
;
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
440 typedef enum enumDMUS_PMSGT_TYPES
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
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
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
;
514 typedef struct _DMUS_CHORD_KEY
520 DMUS_SUBCHORD SubChordList
[DMUS_MAXSUBCHORD
];
526 typedef struct _DMUS_NOTE_PMSG
530 MUSIC_TIME mtDuration
;
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,
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
575 typedef struct _DMUS_PATCH_PMSG
585 typedef struct _DMUS_TRANSPOSE_PMSG
591 } DMUS_TRANSPOSE_PMSG
;
593 typedef struct _DMUS_CHANNEL_PRIORITY_PMSG
597 DWORD dwChannelPriority
;
598 } DMUS_CHANNEL_PRIORITY_PMSG
;
600 typedef struct _DMUS_TEMPO_PMSG
607 typedef struct _DMUS_SYSEX_PMSG
615 typedef struct _DMUS_CURVE_PMSG
619 MUSIC_TIME mtDuration
;
620 MUSIC_TIME mtOriginalStart
;
621 MUSIC_TIME mtResetDuration
;
637 typedef enum enumDMUS_CURVE_FLAGS
639 DMUS_CURVE_RESET
= 1,
640 DMUS_CURVE_START_FROM_CURRENT
= 2
643 #define DMUS_CURVE_RESET 0x01
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
658 BYTE bBeatsPerMeasure
;
663 typedef struct _DMUS_NOTIFICATION_PMSG
667 GUID guidNotificationType
;
668 DWORD dwNotificationOption
;
671 } DMUS_NOTIFICATION_PMSG
;
673 typedef struct _DMUS_WAVE_PMSG
677 REFERENCE_TIME rtStartOffset
;
678 REFERENCE_TIME rtDuration
;
685 typedef struct _DMUS_LYRIC_PMSG
692 typedef struct _DMUS_VERSION
{
695 } DMUS_VERSION
, *LPDMUS_VERSION
;
697 typedef struct _DMUS_TIMESIGNATURE
700 BYTE bBeatsPerMeasure
;
703 } DMUS_TIMESIGNATURE
;
705 typedef struct _DMUS_VALID_START_PARAM
708 } DMUS_VALID_START_PARAM
;
710 typedef struct _DMUS_PLAY_MARKER_PARAM
713 } DMUS_PLAY_MARKER_PARAM
;
715 typedef struct _DMUS_OBJECTDESC
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
;
729 } DMUS_OBJECTDESC
, *LPDMUS_OBJECTDESC
;
731 typedef struct _DMUS_SCRIPT_ERRORINFO
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
749 } DMUS_COMMAND_PARAM
;
751 typedef struct _DMUS_COMMAND_PARAM_2
758 } DMUS_COMMAND_PARAM_2
;
760 typedef struct _DMUS_CONNECTION_RULE
764 } DMUS_CONNECTION_RULE
;
766 typedef struct _DMUS_MELODY_FRAGMENT
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
;
787 typedef struct _DMUS_VARIATIONS_PARAM
789 DWORD dwPChannelsUsed
;
790 DWORD
* padwPChannels
;
791 DWORD
* padwVariations
;
792 } DMUS_VARIATIONS_PARAM
;
794 /*****************************************************************************
795 * IDirectMusicBand interface
798 #define INTERFACE IDirectMusicBand
799 #define IDirectMusicBand_METHODS \
801 STDMETHOD(CreateSegment)(THIS_ IDirectMusicSegment **ppSegment) PURE; \
802 STDMETHOD(Download)(THIS_ IDirectMusicPerformance *pPerformance) PURE; \
803 STDMETHOD(Unload)(THIS_ IDirectMusicPerformance *pPerformance) PURE;
804 ICOM_DEFINE(IDirectMusicBand
,IUnknown
)
808 /*** IUnknown methods ***/
809 #define IDirectMusicBand_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
810 #define IDirectMusicBand_AddRef(p) (p)->lpVtbl->AddRef(p)
811 #define IDirectMusicBand_Release(p) (p)->lpVtbl->Release(p)
812 /*** IDirectMusicBand methods ***/
813 #define IDirectMusicBand_CreateSegment(p,a) (p)->lpVtbl->CreateSegment(p,a)
814 #define IDirectMusicBand_Download(p,a) (p)->lpVtbl->Download(p,a)
815 #define IDirectMusicBand_Unload(p,a) (p)->lpVtbl->Unload(p,a)
819 /*****************************************************************************
820 * IDirectMusicObject interface
823 #define INTERFACE IDirectMusicObject
824 #define IDirectMusicObject_METHODS \
826 STDMETHOD(GetDescriptor)(THIS_ LPDMUS_OBJECTDESC pDesc) PURE; \
827 STDMETHOD(SetDescriptor)(THIS_ LPDMUS_OBJECTDESC pDesc) PURE; \
828 STDMETHOD(ParseDescriptor)(THIS_ LPSTREAM pStream, LPDMUS_OBJECTDESC pDesc) PURE;
829 ICOM_DEFINE(IDirectMusicObject
,IUnknown
)
833 /*** IUnknown methods ***/
834 #define IDirectMusicObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
835 #define IDirectMusicObject_AddRef(p) (p)->lpVtbl->AddRef(p)
836 #define IDirectMusicObject_Release(p) (p)->lpVtbl->Release(p)
837 /*** IDirectMusicObject methods ***/
838 #define IDirectMusicObject_GetDescriptor(p,a) (p)->lpVtbl->GetDescriptor(p,a)
839 #define IDirectMusicObject_SetDescriptor(p,a) (p)->lpVtbl->SetDescriptor(p,a)
840 #define IDirectMusicObject_ParseDescriptor(p,a,b) (p)->lpVtbl->ParseDescriptor(p,a,b)
844 /*****************************************************************************
845 * IDirectMusicLoader interface
848 #define INTERFACE IDirectMusicLoader
849 #define IDirectMusicLoader_METHODS \
851 STDMETHOD(_GetObject)(THIS_ LPDMUS_OBJECTDESC pDesc, REFIID riid, LPVOID *ppv) PURE; \
852 STDMETHOD(SetObject)(THIS_ LPDMUS_OBJECTDESC pDesc) PURE; \
853 STDMETHOD(SetSearchDirectory)(THIS_ REFGUID rguidClass, WCHAR *pwzPath, BOOL fClear) PURE; \
854 STDMETHOD(ScanDirectory)(THIS_ REFGUID rguidClass, WCHAR *pwzFileExtension, WCHAR *pwzScanFileName) PURE; \
855 STDMETHOD(CacheObject)(THIS_ IDirectMusicObject *pObject) PURE; \
856 STDMETHOD(ReleaseObject)(THIS_ IDirectMusicObject *pObject) PURE; \
857 STDMETHOD(ClearCache)(THIS_ REFGUID rguidClass) PURE; \
858 STDMETHOD(EnableCache)(THIS_ REFGUID rguidClass, BOOL fEnable) PURE; \
859 STDMETHOD(EnumObject)(THIS_ REFGUID rguidClass, DWORD dwIndex, LPDMUS_OBJECTDESC pDesc) PURE;
860 ICOM_DEFINE(IDirectMusicLoader
,IUnknown
)
864 /*** IUnknown methods ***/
865 #define IDirectMusicLoader_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
866 #define IDirectMusicLoader_AddRef(p) (p)->lpVtbl->AddRef(p)
867 #define IDirectMusicLoader_Release(p) (p)->lpVtbl->Release(p)
868 /*** IDirectMusicLoader methods ***/
869 #define IDirectMusicLoader_GetObject(p,a,b,c) (p)->lpVtbl->_GetObject(p,a,b,c)
870 #define IDirectMusicLoader_SetObject(p,a) (p)->lpVtbl->SetObject(p,a)
871 #define IDirectMusicLoader_SetSearchDirectory(p,a,b,c) (p)->lpVtbl->SetSearchDirectory(p,a,b,c)
872 #define IDirectMusicLoader_ScanDirectory(p,a,b,c) (p)->lpVtbl->ScanDirectory(p,a,b,c)
873 #define IDirectMusicLoader_CacheObject(p,a) (p)->lpVtbl->CacheObject(p,a)
874 #define IDirectMusicLoader_ReleaseObject(p,a) (p)->lpVtbl->ReleaseObject(p,a)
875 #define IDirectMusicLoader_ClearCache(p,a) (p)->lpVtbl->ClearCache(p,a)
876 #define IDirectMusicLoader_EnableCache(p,a,b) (p)->lpVtbl->EnableCache(p,a,b)
877 #define IDirectMusicLoader_EnumObject(p,a,b,c) (p)->lpVtbl->EnumObject(p,a,b,c)
881 /*****************************************************************************
882 * IDirectMusicLoader8 interface
885 #define INTERFACE IDirectMusicLoader8
886 #define IDirectMusicLoader8_METHODS \
887 IDirectMusicLoader_METHODS \
888 STDMETHOD_(void,CollectGarbage)(THIS) PURE; \
889 STDMETHOD(ReleaseObjectByUnknown)(THIS_ IUnknown *pObject) PURE; \
890 STDMETHOD(LoadObjectFromFile)(THIS_ REFGUID rguidClassID, REFIID iidInterfaceID, WCHAR *pwzFilePath, void **ppObject) PURE;
891 ICOM_DEFINE(IDirectMusicLoader8
,IDirectMusicLoader
)
895 /*** IUnknown methods ***/
896 #define IDirectMusicLoader8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
897 #define IDirectMusicLoader8_AddRef(p) (p)->lpVtbl->AddRef(p)
898 #define IDirectMusicLoader8_Release(p) (p)->lpVtbl->Release(p)
899 /*** IDirectMusicLoader methods ***/
900 #define IDirectMusicLoader8_GetObject(p,a,b,c) (p)->lpVtbl->_GetObject(p,a,b,c)
901 #define IDirectMusicLoader8_SetObject(p,a) (p)->lpVtbl->SetObject(p,a)
902 #define IDirectMusicLoader8_SetSearchDirectory(p,a,b,c) (p)->lpVtbl->SetSearchDirectory(p,a,b,c)
903 #define IDirectMusicLoader8_ScanDirectory(p,a,b,c) (p)->lpVtbl->ScanDirectory(p,a,b,c)
904 #define IDirectMusicLoader8_CacheObject(p,a) (p)->lpVtbl->CacheObject(p,a)
905 #define IDirectMusicLoader8_ReleaseObject(p,a) (p)->lpVtbl->ReleaseObject(p,a)
906 #define IDirectMusicLoader8_ClearCache(p,a) (p)->lpVtbl->ClearCache(p,a)
907 #define IDirectMusicLoader8_EnableCache(p,a,b) (p)->lpVtbl->EnableCache(p,a,b)
908 #define IDirectMusicLoader8_EnumObject(p,a,b,c) (p)->lpVtbl->EnumObject(p,a,b,c)
909 /*** IDirectMusicLoader8 methods ***/
910 #define IDirectMusicLoader8_CollectGarbage(p) (p)->lpVtbl->CollectGarbage(p)
911 #define IDirectMusicLoader8_ReleaseObjectByUnknown(p,a) (p)->lpVtbl->ReleaseObjectByUnknown(p,a)
912 #define IDirectMusicLoader8_LoadObjectFromFile(p,a,b,c,d) (p)->lpVtbl->LoadObjectFromFile(p,a,b,c,d)
916 /*****************************************************************************
917 * IDirectMusicGetLoader interface
920 #define INTERFACE IDirectMusicGetLoader
921 #define IDirectMusicGetLoader_METHODS \
923 STDMETHOD(GetLoader)(THIS_ IDirectMusicLoader **ppLoader) PURE;
924 ICOM_DEFINE(IDirectMusicGetLoader
,IUnknown
)
928 /*** IUnknown methods ***/
929 #define IDirectMusicGetLoader_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
930 #define IDirectMusicGetLoader_AddRef(p) (p)->lpVtbl->AddRef(p)
931 #define IDirectMusicGetLoader_Release(p) (p)->lpVtbl->Release(p)
932 /*** IDirectMusicGetLoader methods ***/
933 #define IDirectMusicGetLoader_GetLoader(p,a) (p)->lpVtbl->GetLoader(p,a)
937 /*****************************************************************************
938 * IDirectMusicSegment interface
941 #define INTERFACE IDirectMusicSegment
942 #define IDirectMusicSegment_METHODS \
944 STDMETHOD(GetLength)(THIS_ MUSIC_TIME *pmtLength) PURE; \
945 STDMETHOD(SetLength)(THIS_ MUSIC_TIME mtLength) PURE; \
946 STDMETHOD(GetRepeats)(THIS_ DWORD *pdwRepeats) PURE; \
947 STDMETHOD(SetRepeats)(THIS_ DWORD dwRepeats) PURE; \
948 STDMETHOD(GetDefaultResolution)(THIS_ DWORD *pdwResolution) PURE; \
949 STDMETHOD(SetDefaultResolution)(THIS_ DWORD dwResolution) PURE; \
950 STDMETHOD(GetTrack)(THIS_ REFGUID rguidType, DWORD dwGroupBits, DWORD dwIndex, IDirectMusicTrack **ppTrack) PURE; \
951 STDMETHOD(GetTrackGroup)(THIS_ IDirectMusicTrack *pTrack, DWORD *pdwGroupBits) PURE; \
952 STDMETHOD(InsertTrack)(THIS_ IDirectMusicTrack *pTrack, DWORD dwGroupBits) PURE; \
953 STDMETHOD(RemoveTrack)(THIS_ IDirectMusicTrack *pTrack) PURE; \
954 STDMETHOD(InitPlay)(THIS_ IDirectMusicSegmentState **ppSegState, IDirectMusicPerformance *pPerformance, DWORD dwFlags) PURE; \
955 STDMETHOD(GetGraph)(THIS_ IDirectMusicGraph **ppGraph) PURE; \
956 STDMETHOD(SetGraph)(THIS_ IDirectMusicGraph *pGraph) PURE; \
957 STDMETHOD(AddNotificationType)(THIS_ REFGUID rguidNotificationType) PURE; \
958 STDMETHOD(RemoveNotificationType)(THIS_ REFGUID rguidNotificationType) PURE; \
959 STDMETHOD(GetParam)(THIS_ REFGUID rguidType, DWORD dwGroupBits, DWORD dwIndex, MUSIC_TIME mtTime, MUSIC_TIME *pmtNext, void *pParam) PURE; \
960 STDMETHOD(SetParam)(THIS_ REFGUID rguidType, DWORD dwGroupBits, DWORD dwIndex, MUSIC_TIME mtTime, void *pParam) PURE; \
961 STDMETHOD(Clone)(THIS_ MUSIC_TIME mtStart, MUSIC_TIME mtEnd, IDirectMusicSegment **ppSegment) PURE; \
962 STDMETHOD(SetStartPoint)(THIS_ MUSIC_TIME mtStart) PURE; \
963 STDMETHOD(GetStartPoint)(THIS_ MUSIC_TIME *pmtStart) PURE; \
964 STDMETHOD(SetLoopPoints)(THIS_ MUSIC_TIME mtStart, MUSIC_TIME mtEnd) PURE; \
965 STDMETHOD(GetLoopPoints)(THIS_ MUSIC_TIME *pmtStart, MUSIC_TIME *pmtEnd) PURE; \
966 STDMETHOD(SetPChannelsUsed)(THIS_ DWORD dwNumPChannels, DWORD *paPChannels) PURE;
967 ICOM_DEFINE(IDirectMusicSegment
,IUnknown
)
971 /*** IUnknown methods ***/
972 #define IDirectMusicSegment_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
973 #define IDirectMusicSegment_AddRef(p) (p)->lpVtbl->AddRef(p)
974 #define IDirectMusicSegment_Release(p) (p)->lpVtbl->Release(p)
975 /*** IDirectMusicSegment methods ***/
976 #define IDirectMusicSegment_GetLength(p,a) (p)->lpVtbl->GetLength(p,a)
977 #define IDirectMusicSegment_SetLength(p,a) (p)->lpVtbl->SetLength(p,a)
978 #define IDirectMusicSegment_GetRepeats(p,a) (p)->lpVtbl->GetRepeats(p,a)
979 #define IDirectMusicSegment_SetRepeats(p,a) (p)->lpVtbl->SetRepeats(p,a)
980 #define IDirectMusicSegment_GetDefaultResolution(p,a) (p)->lpVtbl->GetDefaultResolution(p,a)
981 #define IDirectMusicSegment_SetDefaultResolution(p,a) (p)->lpVtbl->SetDefaultResolution(p,a)
982 #define IDirectMusicSegment_GetTrack(p,a,b,c,d) (p)->lpVtbl->GetTrack(p,a,b,c,d)
983 #define IDirectMusicSegment_GetTrackGroup(p,a,b) (p)->lpVtbl->GetTrackGroup(p,a,b)
984 #define IDirectMusicSegment_InsertTrack(p,a,b) (p)->lpVtbl->InsertTrack(p,a,b)
985 #define IDirectMusicSegment_RemoveTrack(p,a) (p)->lpVtbl->RemoveTrack(p,a)
986 #define IDirectMusicSegment_InitPlay(p,a,b,c) (p)->lpVtbl->InitPlay(p,a,b,c)
987 #define IDirectMusicSegment_GetGraph(p,a) (p)->lpVtbl->GetGraph(p,a)
988 #define IDirectMusicSegment_SetGraph(p,a) (p)->lpVtbl->SetGraph(p,a)
989 #define IDirectMusicSegment_AddNotificationType(p,a) (p)->lpVtbl->AddNotificationType(p,a)
990 #define IDirectMusicSegment_RemoveNotificationType(p,a) (p)->lpVtbl->RemoveNotificationType(p,a)
991 #define IDirectMusicSegment_GetParam(p,a,b,c,d,e,f) (p)->lpVtbl->GetParam(p,a,b,c,d,e,f)
992 #define IDirectMusicSegment_SetParam(p,a,b,c,d,e) (p)->lpVtbl->SetParam(p,a,b,c,d,e)
993 #define IDirectMusicSegment_Clone(p,a,b,c) (p)->lpVtbl->Clone(p,a,b,c)
994 #define IDirectMusicSegment_SetStartPoint(p,a) (p)->lpVtbl->SetStartPoint(p,a)
995 #define IDirectMusicSegment_GetStartPoint(p,a) (p)->lpVtbl->GetStartPoint(p,a)
996 #define IDirectMusicSegment_SetLoopPoints(p,a,b) (p)->lpVtbl->SetLoopPoints(p,a,b)
997 #define IDirectMusicSegment_GetLoopPoints(p,a,b) (p)->lpVtbl->GetLoopPoints(p,a,b)
998 #define IDirectMusicSegment_SetPChannelsUsed(p,a,b) (p)->lpVtbl->SetPChannelsUsed(p,a,b)
1002 /*****************************************************************************
1003 * IDirectMusicSegment8 interface
1006 #define INTERFACE IDirectMusicSegment8
1007 #define IDirectMusicSegment8_METHODS \
1008 IDirectMusicSegment_METHODS \
1009 STDMETHOD(SetTrackConfig)(THIS_ REFGUID rguidTrackClassID, DWORD dwGroupBits, DWORD dwIndex, DWORD dwFlagsOn, DWORD dwFlagsOff) PURE; \
1010 STDMETHOD(GetAudioPathConfig)(THIS_ IUnknown **ppAudioPathConfig) PURE; \
1011 STDMETHOD(Compose)(THIS_ MUSIC_TIME mtTime, IDirectMusicSegment *pFromSegment, IDirectMusicSegment *pToSegment, IDirectMusicSegment **ppComposedSegment) PURE; \
1012 STDMETHOD(Download)(THIS_ IUnknown *pAudioPath) PURE; \
1013 STDMETHOD(Unload)(THIS_ IUnknown *pAudioPath) PURE;
1014 ICOM_DEFINE(IDirectMusicSegment8
,IDirectMusicSegment
)
1018 /*** IUnknown methods ***/
1019 #define IDirectMusicSegment8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1020 #define IDirectMusicSegment8_AddRef(p) (p)->lpVtbl->AddRef(p)
1021 #define IDirectMusicSegment8_Release(p) (p)->lpVtbl->Release(p)
1022 /*** IDirectMusicSegment methods ***/
1023 #define IDirectMusicSegment8_GetLength(p,a) (p)->lpVtbl->GetLength(p,a)
1024 #define IDirectMusicSegment8_SetLength(p,a) (p)->lpVtbl->SetLength(p,a)
1025 #define IDirectMusicSegment8_GetRepeats(p,a) (p)->lpVtbl->GetRepeats(p,a)
1026 #define IDirectMusicSegment8_SetRepeats(p,a) (p)->lpVtbl->SetRepeats(p,a)
1027 #define IDirectMusicSegment8_GetDefaultResolution(p,a) (p)->lpVtbl->GetDefaultResolution(p,a)
1028 #define IDirectMusicSegment8_SetDefaultResolution(p,a) (p)->lpVtbl->SetDefaultResolution(p,a)
1029 #define IDirectMusicSegment8_GetTrack(p,a,b,c,d) (p)->lpVtbl->GetTrack(p,a,b,c,d)
1030 #define IDirectMusicSegment8_GetTrackGroup(p,a,b) (p)->lpVtbl->GetTrackGroup(p,a,b)
1031 #define IDirectMusicSegment8_InsertTrack(p,a,b) (p)->lpVtbl->InsertTrack(p,a,b)
1032 #define IDirectMusicSegment8_RemoveTrack(p,a) (p)->lpVtbl->RemoveTrack(p,a)
1033 #define IDirectMusicSegment8_InitPlay(p,a,b,c) (p)->lpVtbl->InitPlay(p,a,b,c)
1034 #define IDirectMusicSegment8_GetGraph(p,a) (p)->lpVtbl->GetGraph(p,a)
1035 #define IDirectMusicSegment8_SetGraph(p,a) (p)->lpVtbl->SetGraph(p,a)
1036 #define IDirectMusicSegment8_AddNotificationType(p,a) (p)->lpVtbl->AddNotificationType(p,a)
1037 #define IDirectMusicSegment8_RemoveNotificationType(p,a) (p)->lpVtbl->RemoveNotificationType(p,a)
1038 #define IDirectMusicSegment8_GetParam(p,a,b,c,d,e,f) (p)->lpVtbl->GetParam(p,a,b,c,d,e,f)
1039 #define IDirectMusicSegment8_SetParam(p,a,b,c,d,e) (p)->lpVtbl->SetParam(p,a,b,c,d,e)
1040 #define IDirectMusicSegment8_Clone(p,a,b,c) (p)->lpVtbl->Clone(p,a,b,c)
1041 #define IDirectMusicSegment8_SetStartPoint(p,a) (p)->lpVtbl->SetStartPoint(p,a)
1042 #define IDirectMusicSegment8_GetStartPoint(p,a) (p)->lpVtbl->GetStartPoint(p,a)
1043 #define IDirectMusicSegment8_SetLoopPoints(p,a,b) (p)->lpVtbl->SetLoopPoints(p,a,b)
1044 #define IDirectMusicSegment8_GetLoopPoints(p,a,b) (p)->lpVtbl->GetLoopPoints(p,a,b)
1045 #define IDirectMusicSegment8_SetPChannelsUsed(p,a,b) (p)->lpVtbl->SetPChannelsUsed(p,a,b)
1046 /*** IDirectMusicSegment8 methods ***/
1047 #define IDirectMusicSegment8_SetTrackConfig(p,a,b,c,d,e) (p)->lpVtbl->SetTrackConfig(p,a,b,c,d,e)
1048 #define IDirectMusicSegment8_GetAudioPathConfig(p,a) (p)->lpVtbl->GetAudioPathConfig(p,a)
1049 #define IDirectMusicSegment8_Compose(p,a,b,c,d) (p)->lpVtbl->Compose(p,a,b,c,d)
1050 #define IDirectMusicSegment8_Download(p,a) (p)->lpVtbl->Download(p,a)
1051 #define IDirectMusicSegment8_Unload(p,a) (p)->lpVtbl->Unload(p,a)
1055 /*****************************************************************************
1056 * IDirectMusicSegmentState interface
1059 #define INTERFACE IDirectMusicSegmentState
1060 #define IDirectMusicSegmentState_METHODS \
1062 STDMETHOD(GetRepeats)(THIS_ DWORD *pdwRepeats) PURE; \
1063 STDMETHOD(GetSegment)(THIS_ IDirectMusicSegment **ppSegment) PURE; \
1064 STDMETHOD(GetStartTime)(THIS_ MUSIC_TIME *pmtStart) PURE; \
1065 STDMETHOD(GetSeek)(THIS_ MUSIC_TIME *pmtSeek) PURE; \
1066 STDMETHOD(GetStartPoint)(THIS_ MUSIC_TIME *pmtStart) PURE;
1067 ICOM_DEFINE(IDirectMusicSegmentState
,IUnknown
)
1071 /*** IUnknown methods ***/
1072 #define IDirectMusicSegmentState_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1073 #define IDirectMusicSegmentState_AddRef(p) (p)->lpVtbl->AddRef(p)
1074 #define IDirectMusicSegmentState_Release(p) (p)->lpVtbl->Release(p)
1075 /*** IDirectMusicSegmentState methods ***/
1076 #define IDirectMusicSegmentState_GetRepeats(p,a) (p)->lpVtbl->GetRepeats(p,a)
1077 #define IDirectMusicSegmentState_GetSegment(p,a) (p)->lpVtbl->GetSegment(p,a)
1078 #define IDirectMusicSegmentState_GetStartTime(p,a) (p)->lpVtbl->GetStartTime(p,a)
1079 #define IDirectMusicSegmentState_GetSeek(p,a) (p)->lpVtbl->GetSeek(p,a)
1080 #define IDirectMusicSegmentState_GetStartPoint(p,a) (p)->lpVtbl->GetStartPoint(p,a)
1084 /*****************************************************************************
1085 * IDirectMusicSegmentState8 interface
1088 #define INTERFACE IDirectMusicSegmentState8
1089 #define IDirectMusicSegmentState8_METHODS \
1090 IDirectMusicSegmentState_METHODS \
1091 STDMETHOD(SetTrackConfig)(THIS_ REFGUID rguidTrackClassID, DWORD dwGroupBits, DWORD dwIndex, DWORD dwFlagsOn, DWORD dwFlagsOff) PURE; \
1092 STDMETHOD(GetObjectInPath)(THIS_ DWORD dwPChannel, DWORD dwStage, DWORD dwBuffer, REFGUID guidObject, DWORD dwIndex, REFGUID iidInterface, void **ppObject) PURE;
1093 ICOM_DEFINE(IDirectMusicSegmentState8
,IDirectMusicSegmentState
)
1097 /*** IUnknown methods ***/
1098 #define IDirectMusicSegmentState8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1099 #define IDirectMusicSegmentState8_AddRef(p) (p)->lpVtbl->AddRef(p)
1100 #define IDirectMusicSegmentState8_Release(p) (p)->lpVtbl->Release(p)
1101 /*** IDirectMusicSegmentState methods ***/
1102 #define IDirectMusicSegmentState8_GetRepeats(p,a) (p)->lpVtbl->GetRepeats(p,a)
1103 #define IDirectMusicSegmentState8_GetSegment(p,a) (p)->lpVtbl->GetSegment(p,a)
1104 #define IDirectMusicSegmentState8_GetStartTime(p,a) (p)->lpVtbl->GetStartTime(p,a)
1105 #define IDirectMusicSegmentState8_GetSeek(p,a) (p)->lpVtbl->GetSeek(p,a)
1106 #define IDirectMusicSegmentState8_GetStartPoint(p,a) (p)->lpVtbl->GetStartPoint(p,a)
1107 /*** IDirectMusicSegmentState8 methods ***/
1108 #define IDirectMusicSegmentState8_SetTrackConfig(p,a,b,c,d,e) (p)->lpVtbl->SetTrackConfig(p,a,b,c,d,e)
1109 #define IDirectMusicSegmentState8_GetObjectInPath(p,a,b,c,d,e,f,g) (p)->lpVtbl->GetObjectInPath(p,a,b,c,d,e,f,g)
1113 /*****************************************************************************
1114 * IDirectMusicAudioPath interface
1117 #define INTERFACE IDirectMusicAudioPath
1118 #define IDirectMusicAudioPath_METHODS \
1120 STDMETHOD(GetObjectInPath)(THIS_ DWORD dwPChannel, DWORD dwStage, DWORD dwBuffer, REFGUID guidObject, WORD dwIndex, REFGUID iidInterface, void **ppObject) PURE; \
1121 STDMETHOD(Activate)(THIS_ BOOL fActivate) PURE; \
1122 STDMETHOD(SetVolume)(THIS_ long lVolume, DWORD dwDuration) PURE; \
1123 STDMETHOD(ConvertPChannel)(THIS_ DWORD dwPChannelIn, DWORD *pdwPChannelOut) PURE;
1124 ICOM_DEFINE(IDirectMusicAudioPath
,IUnknown
)
1128 /*** IUnknown methods ***/
1129 #define IDirectMusicAudioPath_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1130 #define IDirectMusicAudioPath_AddRef(p) (p)->lpVtbl->AddRef(p)
1131 #define IDirectMusicAudioPath_Release(p) (p)->lpVtbl->Release(p)
1132 /*** IDirectMusicAudioPath methods ***/
1133 #define IDirectMusicAudioPath_GetObjectInPath(p,a,b,c,d,e,f,g) (p)->lpVtbl->GetObjectInPath(p,a,b,c,d,e,f,g)
1134 #define IDirectMusicAudioPath_Activate(p,a) (p)->lpVtbl->Activate(p,a)
1135 #define IDirectMusicAudioPath_SetVolume(p,a,b) (p)->lpVtbl->SetVolume(p,a,b)
1136 #define IDirectMusicAudioPath_ConvertPChannel(p,a,b) (p)->lpVtbl->ConvertPChannel(p,a,b)
1140 /*****************************************************************************
1141 * IDirectMusicPerformance interface
1144 #define INTERFACE IDirectMusicPerformance
1145 #define IDirectMusicPerformance_METHODS \
1147 STDMETHOD(Init)(THIS_ IDirectMusic **ppDirectMusic, LPDIRECTSOUND pDirectSound, HWND hWnd) PURE; \
1148 STDMETHOD(PlaySegment)(THIS_ IDirectMusicSegment *pSegment, DWORD dwFlags, __int64 i64StartTime, IDirectMusicSegmentState **ppSegmentState) PURE; \
1149 STDMETHOD(Stop)(THIS_ IDirectMusicSegment *pSegment, IDirectMusicSegmentState *pSegmentState, MUSIC_TIME mtTime, DWORD dwFlags) PURE; \
1150 STDMETHOD(GetSegmentState)(THIS_ IDirectMusicSegmentState **ppSegmentState, MUSIC_TIME mtTime) PURE; \
1151 STDMETHOD(SetPrepareTime)(THIS_ DWORD dwMilliSeconds) PURE; \
1152 STDMETHOD(GetPrepareTime)(THIS_ DWORD *pdwMilliSeconds) PURE; \
1153 STDMETHOD(SetBumperLength)(THIS_ DWORD dwMilliSeconds) PURE; \
1154 STDMETHOD(GetBumperLength)(THIS_ DWORD *pdwMilliSeconds) PURE; \
1155 STDMETHOD(SendPMsg)(THIS_ DMUS_PMSG *pPMSG) PURE; \
1156 STDMETHOD(MusicToReferenceTime)(THIS_ MUSIC_TIME mtTime, REFERENCE_TIME *prtTime) PURE; \
1157 STDMETHOD(ReferenceToMusicTime)(THIS_ REFERENCE_TIME rtTime, MUSIC_TIME *pmtTime) PURE; \
1158 STDMETHOD(IsPlaying)(THIS_ IDirectMusicSegment *pSegment, IDirectMusicSegmentState *pSegState) PURE; \
1159 STDMETHOD(GetTime)(THIS_ REFERENCE_TIME *prtNow, MUSIC_TIME *pmtNow) PURE; \
1160 STDMETHOD(AllocPMsg)(THIS_ ULONG cb, DMUS_PMSG **ppPMSG) PURE; \
1161 STDMETHOD(FreePMsg)(THIS_ DMUS_PMSG *pPMSG) PURE; \
1162 STDMETHOD(GetGraph)(THIS_ IDirectMusicGraph **ppGraph) PURE; \
1163 STDMETHOD(SetGraph)(THIS_ IDirectMusicGraph *pGraph) PURE; \
1164 STDMETHOD(SetNotificationHandle)(THIS_ HANDLE hNotification, REFERENCE_TIME rtMinimum) PURE; \
1165 STDMETHOD(GetNotificationPMsg)(THIS_ DMUS_NOTIFICATION_PMSG **ppNotificationPMsg) PURE; \
1166 STDMETHOD(AddNotificationType)(THIS_ REFGUID rguidNotificationType) PURE; \
1167 STDMETHOD(RemoveNotificationType)(THIS_ REFGUID rguidNotificationType) PURE; \
1168 STDMETHOD(AddPort)(THIS_ IDirectMusicPort *pPort) PURE; \
1169 STDMETHOD(RemovePort)(THIS_ IDirectMusicPort *pPort) PURE; \
1170 STDMETHOD(AssignPChannelBlock)(THIS_ DWORD dwBlockNum, IDirectMusicPort *pPort, DWORD dwGroup) PURE; \
1171 STDMETHOD(AssignPChannel)(THIS_ DWORD dwPChannel, IDirectMusicPort *pPort, DWORD dwGroup, DWORD dwMChannel) PURE; \
1172 STDMETHOD(PChannelInfo)(THIS_ DWORD dwPChannel, IDirectMusicPort **ppPort, DWORD *pdwGroup, DWORD *pdwMChannel) PURE; \
1173 STDMETHOD(DownloadInstrument)(THIS_ IDirectMusicInstrument *pInst, DWORD dwPChannel, IDirectMusicDownloadedInstrument **ppDownInst, DMUS_NOTERANGE *pNoteRanges, DWORD dwNumNoteRanges, IDirectMusicPort **ppPort, DWORD *pdwGroup, DWORD *pdwMChannel) PURE; \
1174 STDMETHOD(Invalidate)(THIS_ MUSIC_TIME mtTime, DWORD dwFlags) PURE; \
1175 STDMETHOD(GetParam)(THIS_ REFGUID rguidType, DWORD dwGroupBits, DWORD dwIndex, MUSIC_TIME mtTime, MUSIC_TIME *pmtNext, void *pParam) PURE; \
1176 STDMETHOD(SetParam)(THIS_ REFGUID rguidType, DWORD dwGroupBits, DWORD dwIndex, MUSIC_TIME mtTime, void *pParam) PURE; \
1177 STDMETHOD(GetGlobalParam)(THIS_ REFGUID rguidType, void *pParam, DWORD dwSize) PURE; \
1178 STDMETHOD(SetGlobalParam)(THIS_ REFGUID rguidType, void *pParam, DWORD dwSize) PURE; \
1179 STDMETHOD(GetLatencyTime)(THIS_ REFERENCE_TIME *prtTime) PURE; \
1180 STDMETHOD(GetQueueTime)(THIS_ REFERENCE_TIME *prtTime) PURE; \
1181 STDMETHOD(AdjustTime)(THIS_ REFERENCE_TIME rtAmount) PURE; \
1182 STDMETHOD(CloseDown)(THIS) PURE; \
1183 STDMETHOD(GetResolvedTime)(THIS_ REFERENCE_TIME rtTime, REFERENCE_TIME *prtResolved, DWORD dwTimeResolveFlags) PURE; \
1184 STDMETHOD(MIDIToMusic)(THIS_ BYTE bMIDIValue, DMUS_CHORD_KEY *pChord, BYTE bPlayMode, BYTE bChordLevel, WORD *pwMusicValue) PURE; \
1185 STDMETHOD(MusicToMIDI)(THIS_ WORD wMusicValue, DMUS_CHORD_KEY *pChord, BYTE bPlayMode, BYTE bChordLevel, BYTE *pbMIDIValue) PURE; \
1186 STDMETHOD(TimeToRhythm)(THIS_ MUSIC_TIME mtTime, DMUS_TIMESIGNATURE *pTimeSig, WORD *pwMeasure, BYTE *pbBeat, BYTE *pbGrid, short *pnOffset) PURE; \
1187 STDMETHOD(RhythmToTime)(THIS_ WORD wMeasure, BYTE bBeat, BYTE bGrid, short nOffset, DMUS_TIMESIGNATURE *pTimeSig, MUSIC_TIME *pmtTime) PURE;
1188 ICOM_DEFINE(IDirectMusicPerformance
,IUnknown
)
1192 /*** IUnknown methods ***/
1193 #define IDirectMusicPerformance_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1194 #define IDirectMusicPerformance_AddRef(p) (p)->lpVtbl->AddRef(p)
1195 #define IDirectMusicPerformance_Release(p) (p)->lpVtbl->Release(p)
1196 /*** IDirectMusicPerformance methods ***/
1197 #define IDirectMusicPerformance_Init(p,a,b,c) (p)->lpVtbl->Init(p,a,b,c)
1198 #define IDirectMusicPerformance_PlaySegment(p,a,b,c,d) (p)->lpVtbl->PlaySegment(p,a,b,c,d)
1199 #define IDirectMusicPerformance_Stop(p,a,b,c,d) (p)->lpVtbl->Stop(p,a,b,c,d)
1200 #define IDirectMusicPerformance_GetSegmentState(p,a,b) (p)->lpVtbl->GetSegmentState(p,a,b)
1201 #define IDirectMusicPerformance_SetPrepareTime(p,a) (p)->lpVtbl->SetPrepareTime(p,a)
1202 #define IDirectMusicPerformance_GetPrepareTime(p,a) (p)->lpVtbl->GetPrepareTime(p,a)
1203 #define IDirectMusicPerformance_SetBumperLength(p,a) (p)->lpVtbl->SetBumperLength(p,a)
1204 #define IDirectMusicPerformance_GetBumperLength(p,a) (p)->lpVtbl->GetBumperLength(p,a)
1205 #define IDirectMusicPerformance_SendPMsg(p,a) (p)->lpVtbl->SendPMsg(p,a)
1206 #define IDirectMusicPerformance_MusicToReferenceTime(p,a,b) (p)->lpVtbl->MusicToReferenceTime(p,a,b)
1207 #define IDirectMusicPerformance_ReferenceToMusicTime(p,a,b) (p)->lpVtbl->ReferenceToMusicTime(p,a,b)
1208 #define IDirectMusicPerformance_IsPlaying(p,a,b) (p)->lpVtbl->IsPlaying(p,a,b)
1209 #define IDirectMusicPerformance_GetTime(p,a,b) (p)->lpVtbl->GetTime(p,a,b)
1210 #define IDirectMusicPerformance_AllocPMsg(p,a,b) (p)->lpVtbl->AllocPMsg(p,a,b)
1211 #define IDirectMusicPerformance_FreePMsg(p,a) (p)->lpVtbl->FreePMsg(p,a)
1212 #define IDirectMusicPerformance_GetGraph(p,a) (p)->lpVtbl->GetGraph(p,a)
1213 #define IDirectMusicPerformance_SetGraph(p,a) (p)->lpVtbl->SetGraph(p,a)
1214 #define IDirectMusicPerformance_SetNotificationHandle(p,a,b) (p)->lpVtbl->SetNotificationHandle(p,a,b)
1215 #define IDirectMusicPerformance_GetNotificationPMsg(p,a) (p)->lpVtbl->GetNotificationPMsg(p,a)
1216 #define IDirectMusicPerformance_AddNotificationType(p,a) (p)->lpVtbl->AddNotificationType(p,a)
1217 #define IDirectMusicPerformance_RemoveNotificationType(p,a) (p)->lpVtbl->RemoveNotificationType(p,a)
1218 #define IDirectMusicPerformance_AddPort(p,a) (p)->lpVtbl->AddPort(p,a)
1219 #define IDirectMusicPerformance_RemovePort(p,a) (p)->lpVtbl->RemovePort(p,a)
1220 #define IDirectMusicPerformance_AssignPChannelBlock(p,a,b,c) (p)->lpVtbl->AssignPChannelBlock(p,a,b,c)
1221 #define IDirectMusicPerformance_AssignPChannel(p,a,b,c,d) (p)->lpVtbl->AssignPChannel(p,a,b,c,d)
1222 #define IDirectMusicPerformance_PChannelInfo(p,a,b,c,d) (p)->lpVtbl->PChannelInfo(p,a,b,c,d)
1223 #define IDirectMusicPerformance_DownloadInstrument(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DownloadInstrument(p,a,b,c,d,e,f,g,h)
1224 #define IDirectMusicPerformance_Invalidate(p,a,b) (p)->lpVtbl->Invalidate(p,a,b)
1225 #define IDirectMusicPerformance_GetParam(p,a,b,c,d,e,f) (p)->lpVtbl->GetParam(p,a,b,c,d,e,f)
1226 #define IDirectMusicPerformance_SetParam(p,a,b,c,d,e) (p)->lpVtbl->SetParam(p,a,b,c,d,e)
1227 #define IDirectMusicPerformance_GetGlobalParam(p,a,b,c) (p)->lpVtbl->GetGlobalParam(p,a,b,c)
1228 #define IDirectMusicPerformance_SetGlobalParam(p,a,b,c) (p)->lpVtbl->SetGlobalParam(p,a,b,c)
1229 #define IDirectMusicPerformance_GetLatencyTime(p,a) (p)->lpVtbl->GetLatencyTime(p,a)
1230 #define IDirectMusicPerformance_GetQueueTime(p,a) (p)->lpVtbl->GetQueueTime(p,a)
1231 #define IDirectMusicPerformance_AdjustTime(p,a) (p)->lpVtbl->AdjustTime(p,a)
1232 #define IDirectMusicPerformance_CloseDown(p) (p)->lpVtbl->CloseDown(p)
1233 #define IDirectMusicPerformance_GetResolvedTime(p,a,b,c) (p)->lpVtbl->GetResolvedTime(p,a,b,c)
1234 #define IDirectMusicPerformance_MIDIToMusic(p,a,b,c,d,e) (p)->lpVtbl->MIDIToMusic(p,a,b,c,d,e)
1235 #define IDirectMusicPerformance_MusicToMIDI(p,a,b,c,d,e) (p)->lpVtbl->MusicToMIDI(p,a,b,c,d,e)
1236 #define IDirectMusicPerformance_TimeToRhythm(p,a,b,c,d,e,f) (p)->lpVtbl->TimeToRhythm(p,a,b,c,d,e,f)
1237 #define IDirectMusicPerformance_RhythmToTime(p,a,b,c,d,e,f) (p)->lpVtbl->RhythmToTime(p,a,b,c,d,e,f)
1241 /*****************************************************************************
1242 * IDirectMusicPerformance8 interface
1245 #define INTERFACE IDirectMusicPerformance8
1246 #define IDirectMusicPerformance8_METHODS \
1247 IDirectMusicPerformance_METHODS \
1248 STDMETHOD(InitAudio)(THIS_ IDirectMusic **ppDirectMusic, IDirectSound **ppDirectSound, HWND hWnd, DWORD dwDefaultPathType, DWORD dwPChannelCount, DWORD dwFlags, DMUS_AUDIOPARAMS *pParams) PURE; \
1249 STDMETHOD(PlaySegmentEx)(THIS_ IUnknown *pSource, WCHAR *pwzSegmentName, IUnknown *pTransition, DWORD dwFlags, __int64 i64StartTime, IDirectMusicSegmentState **ppSegmentState, IUnknown *pFrom, IUnknown *pAudioPath) PURE; \
1250 STDMETHOD(StopEx)(THIS_ IUnknown *pObjectToStop, __int64 i64StopTime, DWORD dwFlags) PURE; \
1251 STDMETHOD(ClonePMsg)(THIS_ DMUS_PMSG *pSourcePMSG, DMUS_PMSG **ppCopyPMSG) PURE; \
1252 STDMETHOD(CreateAudioPath)(THIS_ IUnknown *pSourceConfig, BOOL fActivate, IDirectMusicAudioPath **ppNewPath) PURE; \
1253 STDMETHOD(CreateStandardAudioPath)(THIS_ DWORD dwType, DWORD dwPChannelCount, BOOL fActivate, IDirectMusicAudioPath **ppNewPath) PURE; \
1254 STDMETHOD(SetDefaultAudioPath)(THIS_ IDirectMusicAudioPath *pAudioPath) PURE; \
1255 STDMETHOD(GetDefaultAudioPath)(THIS_ IDirectMusicAudioPath **ppAudioPath) PURE; \
1256 STDMETHOD(GetParamEx)(THIS_ REFGUID rguidType, DWORD dwTrackID, DWORD dwGroupBits, DWORD dwIndex, MUSIC_TIME mtTime, MUSIC_TIME *pmtNext, void *pParam) PURE;
1257 ICOM_DEFINE(IDirectMusicPerformance8
,IDirectMusicPerformance
)
1261 /*** IUnknown methods ***/
1262 #define IDirectMusicPerformance8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1263 #define IDirectMusicPerformance8_AddRef(p) (p)->lpVtbl->AddRef(p)
1264 #define IDirectMusicPerformance8_Release(p) (p)->lpVtbl->Release(p)
1265 /*** IDirectMusicPerformance methods ***/
1266 #define IDirectMusicPerformance8_Init(p,a,b,c) (p)->lpVtbl->Init(p,a,b,c)
1267 #define IDirectMusicPerformance8_PlaySegment(p,a,b,c,d) (p)->lpVtbl->PlaySegment(p,a,b,c,d)
1268 #define IDirectMusicPerformance8_Stop(p,a,b,c,d) (p)->lpVtbl->Stop(p,a,b,c,d)
1269 #define IDirectMusicPerformance8_GetSegmentState(p,a,b) (p)->lpVtbl->GetSegmentState(p,a,b)
1270 #define IDirectMusicPerformance8_SetPrepareTime(p,a) (p)->lpVtbl->SetPrepareTime(p,a)
1271 #define IDirectMusicPerformance8_GetPrepareTime(p,a) (p)->lpVtbl->GetPrepareTime(p,a)
1272 #define IDirectMusicPerformance8_SetBumperLength(p,a) (p)->lpVtbl->SetBumperLength(p,a)
1273 #define IDirectMusicPerformance8_GetBumperLength(p,a) (p)->lpVtbl->GetBumperLength(p,a)
1274 #define IDirectMusicPerformance8_SendPMsg(p,a) (p)->lpVtbl->SendPMsg(p,a)
1275 #define IDirectMusicPerformance8_MusicToReferenceTime(p,a,b) (p)->lpVtbl->MusicToReferenceTime(p,a,b)
1276 #define IDirectMusicPerformance8_ReferenceToMusicTime(p,a,b) (p)->lpVtbl->ReferenceToMusicTime(p,a,b)
1277 #define IDirectMusicPerformance8_IsPlaying(p,a,b) (p)->lpVtbl->IsPlaying(p,a,b)
1278 #define IDirectMusicPerformance8_GetTime(p,a,b) (p)->lpVtbl->GetTime(p,a,b)
1279 #define IDirectMusicPerformance8_AllocPMsg(p,a,b) (p)->lpVtbl->AllocPMsg(p,a,b)
1280 #define IDirectMusicPerformance8_FreePMsg(p,a) (p)->lpVtbl->FreePMsg(p,a)
1281 #define IDirectMusicPerformance8_GetGraph(p,a) (p)->lpVtbl->GetGraph(p,a)
1282 #define IDirectMusicPerformance8_SetGraph(p,a) (p)->lpVtbl->SetGraph(p,a)
1283 #define IDirectMusicPerformance8_SetNotificationHandle(p,a,b) (p)->lpVtbl->SetNotificationHandle(p,a,b)
1284 #define IDirectMusicPerformance8_GetNotificationPMsg(p,a) (p)->lpVtbl->GetNotificationPMsg(p,a)
1285 #define IDirectMusicPerformance8_AddNotificationType(p,a) (p)->lpVtbl->AddNotificationType(p,a)
1286 #define IDirectMusicPerformance8_RemoveNotificationType(p,a) (p)->lpVtbl->RemoveNotificationType(p,a)
1287 #define IDirectMusicPerformance8_AddPort(p,a) (p)->lpVtbl->AddPort(p,a)
1288 #define IDirectMusicPerformance8_RemovePort(p,a) (p)->lpVtbl->RemovePort(p,a)
1289 #define IDirectMusicPerformance8_AssignPChannelBlock(p,a,b,c) (p)->lpVtbl->AssignPChannelBlock(p,a,b,c)
1290 #define IDirectMusicPerformance8_AssignPChannel(p,a,b,c,d) (p)->lpVtbl->AssignPChannel(p,a,b,c,d)
1291 #define IDirectMusicPerformance8_PChannelInfo(p,a,b,c,d) (p)->lpVtbl->PChannelInfo(p,a,b,c,d)
1292 #define IDirectMusicPerformance8_DownloadInstrument(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DownloadInstrument(p,a,b,c,d,e,f,g,h)
1293 #define IDirectMusicPerformance8_Invalidate(p,a,b) (p)->lpVtbl->Invalidate(p,a,b)
1294 #define IDirectMusicPerformance8_GetParam(p,a,b,c,d,e,f) (p)->lpVtbl->GetParam(p,a,b,c,d,e,f)
1295 #define IDirectMusicPerformance8_SetParam(p,a,b,c,d,e) (p)->lpVtbl->SetParam(p,a,b,c,d,e)
1296 #define IDirectMusicPerformance8_GetGlobalParam(p,a,b,c) (p)->lpVtbl->GetGlobalParam(p,a,b,c)
1297 #define IDirectMusicPerformance8_SetGlobalParam(p,a,b,c) (p)->lpVtbl->SetGlobalParam(p,a,b,c)
1298 #define IDirectMusicPerformance8_GetLatencyTime(p,a) (p)->lpVtbl->GetLatencyTime(p,a)
1299 #define IDirectMusicPerformance8_GetQueueTime(p,a) (p)->lpVtbl->GetQueueTime(p,a)
1300 #define IDirectMusicPerformance8_AdjustTime(p,a) (p)->lpVtbl->AdjustTime(p,a)
1301 #define IDirectMusicPerformance8_CloseDown(p) (p)->lpVtbl->CloseDown(p)
1302 #define IDirectMusicPerformance8_GetResolvedTime(p,a,b,c) (p)->lpVtbl->GetResolvedTime(p,a,b,c)
1303 #define IDirectMusicPerformance8_MIDIToMusic(p,a,b,c,d,e) (p)->lpVtbl->MIDIToMusic(p,a,b,c,d,e)
1304 #define IDirectMusicPerformance8_MusicToMIDI(p,a,b,c,d,e) (p)->lpVtbl->MusicToMIDI(p,a,b,c,d,e)
1305 #define IDirectMusicPerformance8_TimeToRhythm(p,a,b,c,d,e,f) (p)->lpVtbl->TimeToRhythm(p,a,b,c,d,e,f)
1306 #define IDirectMusicPerformance8_RhythmToTime(p,a,b,c,d,e,f) (p)->lpVtbl->RhythmToTime(p,a,b,c,d,e,f)
1307 /* IDirectMusicPerformance8 methods*/
1308 #define IDirectMusicPerformance8_InitAudio(p,a,b,c,d,e,f,g) (p)->lpVtbl->InitAudio(p,a,b,c,d,e,f,g)
1309 #define IDirectMusicPerformance8_PlaySegmentEx(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->PlaySegmentEx(p,a,b,c,d,e,f,g,h)
1310 #define IDirectMusicPerformance8_StopEx(p,a,b,c) (p)->lpVtbl->StopEx(p,a,b,c)
1311 #define IDirectMusicPerformance8_ClonePMsg(p,a,b) (p)->lpVtbl->ClonePMsg(p,a,b)
1312 #define IDirectMusicPerformance8_CreateAudioPath(p,a,b,c) (p)->lpVtbl->CreateAudioPath(p,a,b,c)
1313 #define IDirectMusicPerformance8_CreateStandardAudioPath(p,a,b,c,d) (p)->lpVtbl->CreateStandardAudioPath(p,a,b,c,d)
1314 #define IDirectMusicPerformance8_SetDefaultAudioPath(p,a) (p)->lpVtbl->SetDefaultAudioPath(p,a)
1315 #define IDirectMusicPerformance8_GetDefaultAudioPath(p,a) (p)->lpVtbl->GetDefaultAudioPath(p,a)
1316 #define IDirectMusicPerformance8_GetParamEx(p,a,b,c,d,e,f,g) (p)->lpVtbl->GetParamEx(p,a,b,c,d,e,f,g)
1320 /*****************************************************************************
1321 * IDirectMusicGraph interface
1324 #define INTERFACE IDirectMusicGraph
1325 #define IDirectMusicGraph_METHODS \
1327 STDMETHOD(StampPMsg)(THIS_ DMUS_PMSG *pPMSG) PURE; \
1328 STDMETHOD(InsertTool)(THIS_ IDirectMusicTool *pTool, DWORD *pdwPChannels, DWORD cPChannels, LONG lIndex) PURE; \
1329 STDMETHOD(GetTool)(THIS_ DWORD dwIndex, IDirectMusicTool **ppTool) PURE; \
1330 STDMETHOD(RemoveTool)(THIS_ IDirectMusicTool *pTool) PURE;
1331 ICOM_DEFINE(IDirectMusicGraph
,IUnknown
)
1335 /*** IUnknown methods ***/
1336 #define IDirectMusicGraph_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1337 #define IDirectMusicGraph_AddRef(p) (p)->lpVtbl->AddRef(p)
1338 #define IDirectMusicGraph_Release(p) (p)->lpVtbl->Release(p)
1339 /*** IDirectMusicGraph methods ***/
1340 #define IDirectMusicGraph_StampPMsg(p,a) (p)->lpVtbl->StampPMsg(p,a)
1341 #define IDirectMusicGraph_InsertTool(p,a,b,c,d) (p)->lpVtbl->InsertTool(p,a,b,c,d)
1342 #define IDirectMusicGraph_GetTool(p,a,b) (p)->lpVtbl->GetTool(p,a,b)
1343 #define IDirectMusicGraph_RemoveTool(p,a) (p)->lpVtbl->RemoveTool(p,a)
1347 /*****************************************************************************
1348 * IDirectMusicStyle interface
1351 #define INTERFACE IDirectMusicStyle
1352 #define IDirectMusicStyle_METHODS \
1354 STDMETHOD(GetBand)(THIS_ WCHAR *pwszName, IDirectMusicBand **ppBand) PURE; \
1355 STDMETHOD(EnumBand)(THIS_ DWORD dwIndex, WCHAR *pwszName) PURE; \
1356 STDMETHOD(GetDefaultBand)(THIS_ IDirectMusicBand **ppBand) PURE; \
1357 STDMETHOD(EnumMotif)(THIS_ DWORD dwIndex, WCHAR *pwszName) PURE; \
1358 STDMETHOD(GetMotif)(THIS_ WCHAR *pwszName, IDirectMusicSegment **ppSegment) PURE; \
1359 STDMETHOD(GetDefaultChordMap)(THIS_ IDirectMusicChordMap **ppChordMap) PURE; \
1360 STDMETHOD(EnumChordMap)(THIS_ DWORD dwIndex, WCHAR *pwszName) PURE; \
1361 STDMETHOD(GetChordMap)(THIS_ WCHAR *pwszName, IDirectMusicChordMap **ppChordMap) PURE; \
1362 STDMETHOD(GetTimeSignature)(THIS_ DMUS_TIMESIGNATURE *pTimeSig) PURE; \
1363 STDMETHOD(GetEmbellishmentLength)(THIS_ DWORD dwType, DWORD dwLevel, DWORD *pdwMin, DWORD *pdwMax) PURE; \
1364 STDMETHOD(GetTempo)(THIS_ double *pTempo) PURE;
1365 ICOM_DEFINE(IDirectMusicStyle
,IUnknown
)
1369 /*** IUnknown methods ***/
1370 #define IDirectMusicStyle_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1371 #define IDirectMusicStyle_AddRef(p) (p)->lpVtbl->AddRef(p)
1372 #define IDirectMusicStyle_Release(p) (p)->lpVtbl->Release(p)
1373 /*** IDirectMusicStyle methods ***/
1374 #define IDirectMusicStyle_GetBand(p,a,b) (p)->lpVtbl->GetBand(p,a,b)
1375 #define IDirectMusicStyle_EnumBand(p,a,b) (p)->lpVtbl->EnumBand(p,a,b)
1376 #define IDirectMusicStyle_GetDefaultBand(p,a) (p)->lpVtbl->GetDefaultBand(p,a)
1377 #define IDirectMusicStyle_EnumMotif(p,a,b) (p)->lpVtbl->EnumMotif(p,a,b)
1378 #define IDirectMusicStyle_GetMotif(p,a,b) (p)->lpVtbl->GetMotif(p,a,b)
1379 #define IDirectMusicStyle_GetDefaultChordMap(p,a) (p)->lpVtbl->GetDefaultChordMap(p,a)
1380 #define IDirectMusicStyle_EnumChordMap(p,a,b) (p)->lpVtbl->EnumChordMap(p,a,b)
1381 #define IDirectMusicStyle_GetChordMap(p,a,b) (p)->lpVtbl->GetChordMap(p,a,b)
1382 #define IDirectMusicStyle_GetTimeSignature(p,a) (p)->lpVtbl->GetTimeSignature(p,a)
1383 #define IDirectMusicStyle_GetEmbellishmentLength(p,a,b,c,d) (p)->lpVtbl->GetEmbellishmentLength(p,a,b,c,d)
1384 #define IDirectMusicStyle_GetTempo(p,a) (p)->lpVtbl->GetTempo(p,a)
1388 /*****************************************************************************
1389 * IDirectMusicStyle8 interface
1392 #define INTERFACE IDirectMusicStyle8
1393 #define IDirectMusicStyle8_METHODS \
1394 IDirectMusicStyle_METHODS \
1395 STDMETHOD(EnumPattern)(THIS_ DWORD dwIndex, DWORD dwPatternType, WCHAR *pwszName) PURE;
1396 ICOM_DEFINE(IDirectMusicStyle8
,IDirectMusicStyle
)
1400 /*** IUnknown methods ***/
1401 #define IDirectMusicStyle8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1402 #define IDirectMusicStyle8_AddRef(p) (p)->lpVtbl->AddRef(p)
1403 #define IDirectMusicStyle8_Release(p) (p)->lpVtbl->Release(p)
1404 /*** IDirectMusicStyle methods ***/
1405 #define IDirectMusicStyle8_GetBand(p,a,b) (p)->lpVtbl->GetBand(p,a,b)
1406 #define IDirectMusicStyle8_EnumBand(p,a,b) (p)->lpVtbl->EnumBand(p,a,b)
1407 #define IDirectMusicStyle8_GetDefaultBand(p,a) (p)->lpVtbl->GetDefaultBand(p,a)
1408 #define IDirectMusicStyle8_EnumMotif(p,a,b) (p)->lpVtbl->EnumMotif(p,a,b)
1409 #define IDirectMusicStyle8_GetMotif(p,a,b) (p)->lpVtbl->GetMotif(p,a,b)
1410 #define IDirectMusicStyle8_GetDefaultChordMap(p,a) (p)->lpVtbl->GetDefaultChordMap(p,a)
1411 #define IDirectMusicStyle8_EnumChordMap(p,a,b) (p)->lpVtbl->EnumChordMap(p,a,b)
1412 #define IDirectMusicStyle8_GetChordMap(p,a,b) (p)->lpVtbl->GetChordMap(p,a,b)
1413 #define IDirectMusicStyle8_GetTimeSignature(p,a) (p)->lpVtbl->GetTimeSignature(p,a)
1414 #define IDirectMusicStyle8_GetEmbellishmentLength(p,a,b,c,d) (p)->lpVtbl->GetEmbellishmentLength(p,a,b,c,d)
1415 #define IDirectMusicStyle8_GetTempo(p,a) (p)->lpVtbl->GetTempo(p,a)
1416 /*** IDirectMusicStyle8 methods ***/
1417 #define IDirectMusicStyle8_EnumPattern(p,a,b,c) (p)->lpVtbl->EnumPattern(p,a,b,c)
1421 /*****************************************************************************
1422 * IDirectMusicChordMap interface
1425 #define INTERFACE IDirectMusicChordMap
1426 #define IDirectMusicChordMap_METHODS \
1428 STDMETHOD(GetScale)(THIS_ DWORD *pdwScale) PURE;
1429 ICOM_DEFINE(IDirectMusicChordMap
,IUnknown
)
1433 /*** IUnknown methods ***/
1434 #define IDirectMusicChordMap_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1435 #define IDirectMusicChordMap_AddRef(p) (p)->lpVtbl->AddRef(p)
1436 #define IDirectMusicChordMap_Release(p) (p)->lpVtbl->Release(p)
1437 /*** IDirectMusicChordMap methods ***/
1438 #define IDirectMusicChordMap_GetScale(p,a) (p)->lpVtbl->GetScale(p,a)
1442 /*****************************************************************************
1443 * IDirectMusicComposer interface
1446 #define INTERFACE IDirectMusicComposer
1447 #define IDirectMusicComposer_METHODS \
1449 STDMETHOD(ComposeSegmentFromTemplate)(THIS_ IDirectMusicStyle *pStyle, IDirectMusicSegment *pTemplate, WORD wActivity, IDirectMusicChordMap *pChordMap, IDirectMusicSegment **ppSegment) PURE; \
1450 STDMETHOD(ComposeSegmentFromShape)(THIS_ IDirectMusicStyle *pStyle, WORD wNumMeasures, WORD wShape, WORD wActivity, BOOL fIntro, BOOL fEnd, IDirectMusicChordMap *pChordMap, IDirectMusicSegment **ppSegment) PURE; \
1451 STDMETHOD(ComposeTransition)(THIS_ IDirectMusicSegment *pFromSeg, IDirectMusicSegment *pToSeg, MUSIC_TIME mtTime, WORD wCommand, DWORD dwFlags, IDirectMusicChordMap *pChordMap, IDirectMusicSegment **ppTransSeg) PURE; \
1452 STDMETHOD(AutoTransition)(THIS_ IDirectMusicPerformance *pPerformance, IDirectMusicSegment *pToSeg, WORD wCommand, DWORD dwFlags, IDirectMusicChordMap *pChordMap, IDirectMusicSegment **ppTransSeg, IDirectMusicSegmentState **ppToSegState, IDirectMusicSegmentState **ppTransSegState) PURE; \
1453 STDMETHOD(ComposeTemplateFromShape)(THIS_ WORD wNumMeasures, WORD wShape, BOOL fIntro, BOOL fEnd, WORD wEndLength, IDirectMusicSegment **ppTemplate) PURE; \
1454 STDMETHOD(ChangeChordMap)(THIS_ IDirectMusicSegment *pSegment, BOOL fTrackScale, IDirectMusicChordMap *pChordMap) PURE;
1455 ICOM_DEFINE(IDirectMusicComposer
,IUnknown
)
1459 /*** IUnknown methods ***/
1460 #define IDirectMusicComposer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1461 #define IDirectMusicComposer_AddRef(p) (p)->lpVtbl->AddRef(p)
1462 #define IDirectMusicComposer_Release(p) (p)->lpVtbl->Release(p)
1463 /*** IDirectMusicComposer methods ***/
1464 #define IDirectMusicComposer_ComposeSegmentFromTemplate(p,a,b,c,d,e) (p)->lpVtbl->ComposeSegmentFromTemplate(p,a,b,c,d,e)
1465 #define IDirectMusicComposer_ComposeSegmentFromShape(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->ComposeSegmentFromShape(p,a,b,c,d,e,f,g,h)
1466 #define IDirectMusicComposer_ComposeTransition(p,a,b,c,d,e,f,g) (p)->lpVtbl->ComposeTransition(p,a,b,c,d,e,f,g)
1467 #define IDirectMusicComposer_AutoTransition(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->AutoTransition(p,a,b,c,d,e,f,g,h)
1468 #define IDirectMusicComposer_ComposeTemplateFromShape(p,a,b,c,d,e,f) (p)->lpVtbl->ComposeTemplateFromShape(p,a,b,c,d,e,f)
1469 #define IDirectMusicComposer_ChangeChordMap(p,a,b,c) (p)->lpVtbl->ChangeChordMap(p,a,b,c)
1473 /*****************************************************************************
1474 * IDirectMusicPatternTrack interface
1477 #define INTERFACE IDirectMusicPatternTrack
1478 #define IDirectMusicPatternTrack_METHODS \
1480 STDMETHOD(CreateSegment)(THIS_ IDirectMusicStyle *pStyle, IDirectMusicSegment **ppSegment) PURE; \
1481 STDMETHOD(SetVariation)(THIS_ IDirectMusicSegmentState *pSegState, DWORD dwVariationFlags, DWORD dwPart) PURE; \
1482 STDMETHOD(SetPatternByName)(THIS_ IDirectMusicSegmentState *pSegState, WCHAR *wszName, IDirectMusicStyle *pStyle, DWORD dwPatternType, DWORD *pdwLength) PURE;
1483 ICOM_DEFINE(IDirectMusicPatternTrack
,IUnknown
)
1487 /*** IUnknown methods ***/
1488 #define IDirectMusicPatternTrack_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1489 #define IDirectMusicPatternTrack_AddRef(p) (p)->lpVtbl->AddRef(p)
1490 #define IDirectMusicPatternTrack_Release(p) (p)->lpVtbl->Release(p)
1491 /*** IDirectMusicPatternTrack methods ***/
1492 #define IDirectMusicPatternTrack_CreateSegment(p,a,b) (p)->lpVtbl->CreateSegment(p,a,b)
1493 #define IDirectMusicPatternTrack_SetVariation(p,a,b,c) (p)->lpVtbl->SetVariation(p,a,b,c)
1494 #define IDirectMusicPatternTrack_SetPatternByName(p,a,b,c,d,e) (p)->lpVtbl->SetPatternByName(p,a,b,c,d,e)
1498 /*****************************************************************************
1499 * IDirectMusicScript interface
1502 #define INTERFACE IDirectMusicScript
1503 #define IDirectMusicScript_METHODS \
1505 STDMETHOD(Init)(THIS_ IDirectMusicPerformance *pPerformance, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; \
1506 STDMETHOD(CallRoutine)(THIS_ WCHAR *pwszRoutineName, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; \
1507 STDMETHOD(SetVariableVariant)(THIS_ WCHAR *pwszVariableName, VARIANT varValue, BOOL fSetRef, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; \
1508 STDMETHOD(GetVariableVariant)(THIS_ WCHAR *pwszVariableName, VARIANT *pvarValue, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; \
1509 STDMETHOD(SetVariableNumber)(THIS_ WCHAR *pwszVariableName, LONG lValue, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; \
1510 STDMETHOD(GetVariableNumber)(THIS_ WCHAR *pwszVariableName, LONG *plValue, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; \
1511 STDMETHOD(SetVariableObject)(THIS_ WCHAR *pwszVariableName, IUnknown *punkValue, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; \
1512 STDMETHOD(GetVariableObject)(THIS_ WCHAR *pwszVariableName, REFIID riid, LPVOID *ppv, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; \
1513 STDMETHOD(EnumRoutine)(THIS_ DWORD dwIndex, WCHAR *pwszName) PURE; \
1514 STDMETHOD(EnumVariable)(THIS_ DWORD dwIndex, WCHAR *pwszName) PURE;
1515 ICOM_DEFINE(IDirectMusicScript
,IUnknown
)
1519 /*** IUnknown methods ***/
1520 #define IDirectMusicScript_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1521 #define IDirectMusicScript_AddRef(p) (p)->lpVtbl->AddRef(p)
1522 #define IDirectMusicScript_Release(p) (p)->lpVtbl->Release(p)
1523 /*** IDirectMusicScript methods ***/
1524 #define IDirectMusicPatternTrack_Init(p,a,b) (p)->lpVtbl->Init(p,a,b)
1525 #define IDirectMusicPatternTrack_CallRoutine(p,a,b) (p)->lpVtbl->CallRoutine(p,a,b)
1526 #define IDirectMusicPatternTrack_SetVariableVariant(p,a,b,c,d) (p)->lpVtbl->SetVariableVariant(p,a,b,c,d)
1527 #define IDirectMusicPatternTrack_GetVariableVariant(p,a,b,c) (p)->lpVtbl->GetVariableVariant(p,a,b,c)
1528 #define IDirectMusicPatternTrack_SetVariableNumber(p,a,b,c) (p)->lpVtbl->SetVariableNumber(p,a,b,c)
1529 #define IDirectMusicPatternTrack_GetVariableNumber(p,a,b,c) (p)->lpVtbl->GetVariableNumber(p,a,b,c)
1530 #define IDirectMusicPatternTrack_SetVariableObject(p,a,b,c) (p)->lpVtbl->SetVariableObject(p,a,b,c)
1531 #define IDirectMusicPatternTrack_GetVariableObject(p,a,b,c,d) (p)->lpVtbl->GetVariableObject(p,a,b,c,d)
1532 #define IDirectMusicPatternTrack_EnumRoutine(p,a,b) (p)->lpVtbl->EnumRoutine(p,a,b)
1533 #define IDirectMusicPatternTrack_EnumVariable(p,a,b) (p)->lpVtbl->EnumVariable(p,a,b)
1537 /*****************************************************************************
1538 * IDirectMusicContainer interface
1541 #define INTERFACE IDirectMusicContainer
1542 #define IDirectMusicContainer_METHODS \
1544 STDMETHOD(EnumObject)(THIS_ REFGUID rguidClass, DWORD dwIndex, LPDMUS_OBJECTDESC pDesc, WCHAR *pwszAlias) PURE;
1545 ICOM_DEFINE(IDirectMusicContainer
,IUnknown
)
1549 /*** IUnknown methods ***/
1550 #define IDirectMusicContainer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1551 #define IDirectMusicContainer_AddRef(p) (p)->lpVtbl->AddRef(p)
1552 #define IDirectMusicContainer_Release(p) (p)->lpVtbl->Release(p)
1553 /*** IDirectMusicContainer methods ***/
1554 #define IDirectMusicContainer_EnumObject(p,a,b,c,d) (p)->lpVtbl->EnumObject(p,a,b,c,d)
1558 /*****************************************************************************
1559 * IDirectMusicSong interface
1562 #define INTERFACE IDirectMusicSong
1563 #define IDirectMusicSong_METHODS \
1565 STDMETHOD(Compose)(THIS) PURE; \
1566 STDMETHOD(GetParam)(THIS_ REFGUID rguidType, DWORD dwGroupBits, DWORD dwIndex, MUSIC_TIME mtTime, MUSIC_TIME *pmtNext, void *pParam) PURE; \
1567 STDMETHOD(GetSegment)(THIS_ WCHAR *pwzName, IDirectMusicSegment **ppSegment) PURE; \
1568 STDMETHOD(GetAudioPathConfig)(THIS_ IUnknown **ppAudioPathConfig) PURE; \
1569 STDMETHOD(Download)(THIS_ IUnknown *pAudioPath) PURE; \
1570 STDMETHOD(Unload)(THIS_ IUnknown *pAudioPath) PURE; \
1571 STDMETHOD(EnumSegment)(THIS_ DWORD dwIndex, IDirectMusicSegment **ppSegment) PURE;
1572 ICOM_DEFINE(IDirectMusicSong
,IUnknown
)
1576 /*** IUnknown methods ***/
1577 #define IDirectMusicSong_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1578 #define IDirectMusicSong_AddRef(p) (p)->lpVtbl->AddRef(p)
1579 #define IDirectMusicSong_Release(p) (p)->lpVtbl->Release(p)
1580 /*** IDirectMusicSong methods ***/
1581 #define IDirectMusicSong_Compose(p) (p)->lpVtbl->Compose(p)
1582 #define IDirectMusicSong_GetParam(p,a,b,c,d,e,f) (p)->lpVtbl->GetParam(p,a,b,c,d,e,f)
1583 #define IDirectMusicSong_GetSegment(p,a,b) (p)->lpVtbl->GetSegment(p,a,b)
1584 #define IDirectMusicSong_GetAudioPathConfig(p,a) (p)->lpVtbl->GetAudioPathConfig(p,a)
1585 #define IDirectMusicSong_Download(p,a) (p)->lpVtbl->Download(p,a)
1586 #define IDirectMusicSong_Unload(p,a) (p)->lpVtbl->Unload(p,a)
1587 #define IDirectMusicSong_EnumSegment(p,a,b) (p)->lpVtbl->EnumSegment(p,a,b)
1594 #endif /* __WINE_DMUSIC_PERFORMANCE_H */