xref: /reactos/sdk/include/dxsdk/dmplugin.h (revision 34593d93)
1*c2c66affSColin Finck /*
2*c2c66affSColin Finck  *  DirectMusic Performance Layer Plugins API
3*c2c66affSColin Finck  *
4*c2c66affSColin Finck  *  Copyright (C) 2003-2004 Rok Mandeljc
5*c2c66affSColin Finck  *
6*c2c66affSColin Finck  *  This program is free software; you can redistribute it and/or
7*c2c66affSColin Finck  *  modify it under the terms of the GNU Lesser General Public
8*c2c66affSColin Finck  *  License as published by the Free Software Foundation; either
9*c2c66affSColin Finck  *  version 2.1 of the License, or (at your option) any later version.
10*c2c66affSColin Finck  *
11*c2c66affSColin Finck  *  This program is distributed in the hope that it will be useful,
12*c2c66affSColin Finck  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13*c2c66affSColin Finck  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14*c2c66affSColin Finck  *  Lesser General Public License for more details.
15*c2c66affSColin Finck  *
16*c2c66affSColin Finck  *  You should have received a copy of the GNU Lesser General Public
17*c2c66affSColin Finck  *  License along with this program; if not, write to the Free Software
18*c2c66affSColin Finck  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19*c2c66affSColin Finck  */
20*c2c66affSColin Finck 
21*c2c66affSColin Finck #ifndef __WINE_DMUSIC_PLUGIN_H
22*c2c66affSColin Finck #define __WINE_DMUSIC_PLUGIN_H
23*c2c66affSColin Finck 
24*c2c66affSColin Finck #ifndef __WINESRC__
25*c2c66affSColin Finck #include <windows.h>
26*c2c66affSColin Finck #endif /* __WINESRC__ */
27*c2c66affSColin Finck 
28*c2c66affSColin Finck #define COM_NO_WINDOWS_H
29*c2c66affSColin Finck #include <objbase.h>
30*c2c66affSColin Finck #include <mmsystem.h>
31*c2c66affSColin Finck #include <dmusici.h>
32*c2c66affSColin Finck #include <pshpack8.h>
33*c2c66affSColin Finck 
34*c2c66affSColin Finck #ifdef __cplusplus
35*c2c66affSColin Finck extern "C" {
36*c2c66affSColin Finck #endif
37*c2c66affSColin Finck 
38*c2c66affSColin Finck /*****************************************************************************
39*c2c66affSColin Finck  * Registry path
40*c2c66affSColin Finck  */
41*c2c66affSColin Finck #define DMUS_REGSTR_PATH_TOOLS "Software\\Microsoft\\DirectMusic\\Tools"
42*c2c66affSColin Finck 
43*c2c66affSColin Finck 
44*c2c66affSColin Finck /*****************************************************************************
45*c2c66affSColin Finck  * Predeclare the interfaces
46*c2c66affSColin Finck  */
47*c2c66affSColin Finck /* CLSIDs */
48*c2c66affSColin Finck DEFINE_GUID(CLSID_DirectMusicBandTrack,              0xd2ac2894,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
49*c2c66affSColin Finck DEFINE_GUID(CLSID_DirectMusicChordTrack,             0xd2ac288b,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
50*c2c66affSColin Finck DEFINE_GUID(CLSID_DirectMusicChordMapTrack,          0xd2ac2896,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
51*c2c66affSColin Finck DEFINE_GUID(CLSID_DirectMusicCommandTrack,           0xd2ac288c,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
52*c2c66affSColin Finck DEFINE_GUID(CLSID_DirectMusicLyricsTrack,            0x995c1cf5,0x54ff,0x11d3,0x8b,0xda,0x00,0x60,0x08,0x93,0xb1,0xb6);
53*c2c66affSColin Finck DEFINE_GUID(CLSID_DirectMusicMarkerTrack,            0x55a8fd00,0x4288,0x11d3,0x9b,0xd1,0x8a,0x0d,0x61,0xc8,0x88,0x35);
54*c2c66affSColin Finck DEFINE_GUID(CLSID_DirectMusicMotifTrack,             0xd2ac288e,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
55*c2c66affSColin Finck DEFINE_GUID(CLSID_DirectMusicMuteTrack,              0xd2ac2898,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
56*c2c66affSColin Finck DEFINE_GUID(CLSID_DirectMusicParamControlTrack,      0x4be0537b,0x5c19,0x11d3,0x8b,0xdc,0x00,0x60,0x08,0x93,0xb1,0xb6);
57*c2c66affSColin Finck DEFINE_GUID(CLSID_DirectMusicScriptTrack,            0x4108fa85,0x3586,0x11d3,0x8b,0xd7,0x00,0x60,0x08,0x93,0xb1,0xb6);
58*c2c66affSColin Finck DEFINE_GUID(CLSID_DirectMusicSegmentTriggerTrack,    0xbae4d665,0x4ea1,0x11d3,0x8b,0xda,0x00,0x60,0x08,0x93,0xb1,0xb6);
59*c2c66affSColin Finck DEFINE_GUID(CLSID_DirectMusicSeqTrack,               0xd2ac2886,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
60*c2c66affSColin Finck DEFINE_GUID(CLSID_DirectMusicSignPostTrack,          0xf17e8672,0xc3b4,0x11d1,0x87,0x0b,0x00,0x60,0x08,0x93,0xb1,0xbd);
61*c2c66affSColin Finck DEFINE_GUID(CLSID_DirectMusicStyleTrack,             0xd2ac288d,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
62*c2c66affSColin Finck DEFINE_GUID(CLSID_DirectMusicSysExTrack,             0xd2ac2887,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
63*c2c66affSColin Finck DEFINE_GUID(CLSID_DirectMusicTempoTrack,             0xd2ac2885,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
64*c2c66affSColin Finck DEFINE_GUID(CLSID_DirectMusicTimeSigTrack,           0xd2ac2888,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
65*c2c66affSColin Finck DEFINE_GUID(CLSID_DirectMusicWaveTrack,              0xeed36461,0x9ea5,0x11d3,0x9b,0xd1,0x00,0x80,0xc7,0x15,0x0a,0x74);
66*c2c66affSColin Finck /* MS doesn't support this in DX 9.0 and newer... but there's no harm in keeping it around */
67*c2c66affSColin Finck DEFINE_GUID(CLSID_DirectMusicMelodyFormulationTrack, 0xb0684266,0xb57f,0x11d2,0x97,0xf9,0x00,0xc0,0x4f,0xa3,0x6e,0x58);
68*c2c66affSColin Finck 
69*c2c66affSColin Finck /* IIDs */
70*c2c66affSColin Finck DEFINE_GUID(IID_IDirectMusicTool,                    0xd2ac28ba,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
71*c2c66affSColin Finck DEFINE_GUID(IID_IDirectMusicTool8,                   0x0e674303,0x3b05,0x11d3,0x9b,0xd1,0xf9,0xe7,0xf0,0xa0,0x15,0x36);
72*c2c66affSColin Finck DEFINE_GUID(IID_IDirectMusicTrack,                   0xf96029a1,0x4282,0x11d2,0x87,0x17,0x00,0x60,0x08,0x93,0xb1,0xbd);
73*c2c66affSColin Finck DEFINE_GUID(IID_IDirectMusicTrack8,                  0x0e674304,0x3b05,0x11d3,0x9b,0xd1,0xf9,0xe7,0xf0,0xa0,0x15,0x36);
74*c2c66affSColin Finck 
75*c2c66affSColin Finck /* typedef definitions */
76*c2c66affSColin Finck typedef struct IDirectMusicTrack *LPDIRECTMUSICTRACK;
77*c2c66affSColin Finck typedef struct IDirectMusicTrack8 *LPDIRECTMUSICTRACK8;
78*c2c66affSColin Finck typedef struct IDirectMusicTool *LPDIRECTMUSICTOOL;
79*c2c66affSColin Finck typedef struct IDirectMusicTool8 *LPDIRECTMUSICTOOL8;
80*c2c66affSColin Finck /* these are from dmusici.h and are needed here */
81*c2c66affSColin Finck typedef struct IDirectMusicPerformance *LPDIRECTMUSICPERFORMANCE;
82*c2c66affSColin Finck typedef struct IDirectMusicPerformance8 *LPDIRECTMUSICPERFORMANCE8;
83*c2c66affSColin Finck typedef struct IDirectMusicSegment *LPDIRECTMUSICSEGMENT;
84*c2c66affSColin Finck typedef struct IDirectMusicSegment8 *LPDIRECTMUSICSEGMENT8;
85*c2c66affSColin Finck typedef struct IDirectMusicSegmentState *LPDIRECTMUSICSEGMENTSTATE;
86*c2c66affSColin Finck typedef struct IDirectMusicSegmentState8 *LPDIRECTMUSICSEGMENTSTATE8;
87*c2c66affSColin Finck typedef struct IDirectMusicGraph *LPDIRECTMUSICGRAPH;
88*c2c66affSColin Finck typedef struct IDirectMusicGraph         IDirectMusicGraph8,        *LPDIRECTMUSICGRAPH8;
89*c2c66affSColin Finck 
90*c2c66affSColin Finck 
91*c2c66affSColin Finck /*****************************************************************************
92*c2c66affSColin Finck  * Typedef definitions
93*c2c66affSColin Finck  */
94*c2c66affSColin Finck typedef struct _DMUS_PMSG DMUS_PMSG;
95*c2c66affSColin Finck typedef LONG MUSIC_TIME;
96*c2c66affSColin Finck 
97*c2c66affSColin Finck 
98*c2c66affSColin Finck /*****************************************************************************
99*c2c66affSColin Finck  * Flags
100*c2c66affSColin Finck  */
101*c2c66affSColin Finck #define DMUS_TRACK_PARAMF_CLOCK 0x1
102*c2c66affSColin Finck 
103*c2c66affSColin Finck /*****************************************************************************
104*c2c66affSColin Finck  * Enumerations
105*c2c66affSColin Finck  */
106*c2c66affSColin Finck /* typedef definitions */
107*c2c66affSColin Finck typedef enum enumDMUS_TRACKF_FLAGS DMUS_TRACKF_FLAGS;
108*c2c66affSColin Finck 
109*c2c66affSColin Finck /* actual enumerations */
110*c2c66affSColin Finck enum enumDMUS_TRACKF_FLAGS {
111*c2c66affSColin Finck 	DMUS_TRACKF_SEEK       = 0x001,
112*c2c66affSColin Finck 	DMUS_TRACKF_LOOP       = 0x002,
113*c2c66affSColin Finck 	DMUS_TRACKF_START      = 0x004,
114*c2c66affSColin Finck 	DMUS_TRACKF_FLUSH      = 0x008,
115*c2c66affSColin Finck 	DMUS_TRACKF_DIRTY      = 0x010,
116*c2c66affSColin Finck 	DMUS_TRACKF_NOTIFY_OFF = 0x020,
117*c2c66affSColin Finck 	DMUS_TRACKF_PLAY_OFF   = 0x040,
118*c2c66affSColin Finck 	DMUS_TRACKF_LOOPEND    = 0x080,
119*c2c66affSColin Finck 	DMUS_TRACKF_STOP       = 0x100,
120*c2c66affSColin Finck 	DMUS_TRACKF_RECOMPOSE  = 0x200,
121*c2c66affSColin Finck 	DMUS_TRACKF_CLOCK      = 0x400,
122*c2c66affSColin Finck };
123*c2c66affSColin Finck 
124*c2c66affSColin Finck /*****************************************************************************
125*c2c66affSColin Finck  * IDirectMusicTool interface
126*c2c66affSColin Finck  */
127*c2c66affSColin Finck #define INTERFACE IDirectMusicTool
DECLARE_INTERFACE_(IDirectMusicTool,IUnknown)128*c2c66affSColin Finck DECLARE_INTERFACE_(IDirectMusicTool,IUnknown)
129*c2c66affSColin Finck {
130*c2c66affSColin Finck     /*** IUnknown methods ***/
131*c2c66affSColin Finck     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
132*c2c66affSColin Finck     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
133*c2c66affSColin Finck     STDMETHOD_(ULONG,Release)(THIS) PURE;
134*c2c66affSColin Finck     /*** IDirectMusicTool methods ***/
135*c2c66affSColin Finck     STDMETHOD(Init)(THIS_ struct IDirectMusicGraph *pGraph) PURE;
136*c2c66affSColin Finck     STDMETHOD(GetMsgDeliveryType)(THIS_ DWORD *pdwDeliveryType) PURE;
137*c2c66affSColin Finck     STDMETHOD(GetMediaTypeArraySize)(THIS_ DWORD *pdwNumElements) PURE;
138*c2c66affSColin Finck     STDMETHOD(GetMediaTypes)(THIS_ DWORD **padwMediaTypes, DWORD dwNumElements) PURE;
139*c2c66affSColin Finck     STDMETHOD(ProcessPMsg)(THIS_ struct IDirectMusicPerformance *pPerf, DMUS_PMSG *pPMSG) PURE;
140*c2c66affSColin Finck     STDMETHOD(Flush)(THIS_ struct IDirectMusicPerformance *pPerf, DMUS_PMSG *pPMSG, REFERENCE_TIME rtTime) PURE;
141*c2c66affSColin Finck };
142*c2c66affSColin Finck #undef INTERFACE
143*c2c66affSColin Finck 
144*c2c66affSColin Finck #if !defined(__cplusplus) || defined(CINTERFACE)
145*c2c66affSColin Finck /*** IUnknown methods ***/
146*c2c66affSColin Finck #define IDirectMusicTool_QueryInterface(p,a,b)      (p)->lpVtbl->QueryInterface(p,a,b)
147*c2c66affSColin Finck #define IDirectMusicTool_AddRef(p)                  (p)->lpVtbl->AddRef(p)
148*c2c66affSColin Finck #define IDirectMusicTool_Release(p)                 (p)->lpVtbl->Release(p)
149*c2c66affSColin Finck /*** IDirectMusicTool methods ***/
150*c2c66affSColin Finck #define IDirectMusicTool_Init(p,a)                  (p)->lpVtbl->Init(p,a)
151*c2c66affSColin Finck #define IDirectMusicTool_GetMsgDeliveryType(p,a)    (p)->lpVtbl->GetMsgDeliveryType(p,a)
152*c2c66affSColin Finck #define IDirectMusicTool_GetMediaTypeArraySize(p,a) (p)->lpVtbl->GetMediaTypeArraySize(p,a)
153*c2c66affSColin Finck #define IDirectMusicTool_GetMediaTypes(p,a,b)       (p)->lpVtbl->GetMediaTypes(p,a,b)
154*c2c66affSColin Finck #define IDirectMusicTool_ProcessPMsg(p,a,b)         (p)->lpVtbl->ProcessPMsg(p,a,b)
155*c2c66affSColin Finck #define IDirectMusicTool_Flush(p,a,b,c)             (p)->lpVtbl->Flush(p,a,b,c)
156*c2c66affSColin Finck #endif
157*c2c66affSColin Finck 
158*c2c66affSColin Finck 
159*c2c66affSColin Finck /*****************************************************************************
160*c2c66affSColin Finck  * IDirectMusicTool8 interface
161*c2c66affSColin Finck  */
162*c2c66affSColin Finck #define INTERFACE IDirectMusicTool8
DECLARE_INTERFACE_(IDirectMusicTool8,IDirectMusicTool)163*c2c66affSColin Finck DECLARE_INTERFACE_(IDirectMusicTool8,IDirectMusicTool)
164*c2c66affSColin Finck {
165*c2c66affSColin Finck     /*** IUnknown methods ***/
166*c2c66affSColin Finck     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
167*c2c66affSColin Finck     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
168*c2c66affSColin Finck     STDMETHOD_(ULONG,Release)(THIS) PURE;
169*c2c66affSColin Finck     /*** IDirectMusicTool methods ***/
170*c2c66affSColin Finck     STDMETHOD(Init)(THIS_ struct IDirectMusicGraph *pGraph) PURE;
171*c2c66affSColin Finck     STDMETHOD(GetMsgDeliveryType)(THIS_ DWORD *pdwDeliveryType) PURE;
172*c2c66affSColin Finck     STDMETHOD(GetMediaTypeArraySize)(THIS_ DWORD *pdwNumElements) PURE;
173*c2c66affSColin Finck     STDMETHOD(GetMediaTypes)(THIS_ DWORD **padwMediaTypes, DWORD dwNumElements) PURE;
174*c2c66affSColin Finck     STDMETHOD(ProcessPMsg)(THIS_ struct IDirectMusicPerformance *pPerf, DMUS_PMSG *pPMSG) PURE;
175*c2c66affSColin Finck     STDMETHOD(Flush)(THIS_ struct IDirectMusicPerformance *pPerf, DMUS_PMSG *pPMSG, REFERENCE_TIME rtTime) PURE;
176*c2c66affSColin Finck     /*** IDirectMusicTool8 methods ***/
177*c2c66affSColin Finck     STDMETHOD(Clone)(THIS_ IDirectMusicTool **ppTool) PURE;
178*c2c66affSColin Finck };
179*c2c66affSColin Finck #undef INTERFACE
180*c2c66affSColin Finck 
181*c2c66affSColin Finck #if !defined(__cplusplus) || defined(CINTERFACE)
182*c2c66affSColin Finck /*** IUnknown methods ***/
183*c2c66affSColin Finck #define IDirectMusicTool8_QueryInterface(p,a,b)      (p)->lpVtbl->QueryInterface(p,a,b)
184*c2c66affSColin Finck #define IDirectMusicTool8_AddRef(p)                  (p)->lpVtbl->AddRef(p)
185*c2c66affSColin Finck #define IDirectMusicTool8_Release(p)                 (p)->lpVtbl->Release(p)
186*c2c66affSColin Finck /*** IDirectMusicTool methods ***/
187*c2c66affSColin Finck #define IDirectMusicTool8_Init(p,a)                  (p)->lpVtbl->Init(p,a)
188*c2c66affSColin Finck #define IDirectMusicTool8_GetMsgDeliveryType(p,a)    (p)->lpVtbl->GetMsgDeliveryType(p,a)
189*c2c66affSColin Finck #define IDirectMusicTool8_GetMediaTypeArraySize(p,a) (p)->lpVtbl->GetMediaTypeArraySize(p,a)
190*c2c66affSColin Finck #define IDirectMusicTool8_GetMediaTypes(p,a,b)       (p)->lpVtbl->GetMediaTypes(p,a,b)
191*c2c66affSColin Finck #define IDirectMusicTool8_ProcessPMsg(p,a,b)         (p)->lpVtbl->ProcessPMsg(p,a,b)
192*c2c66affSColin Finck #define IDirectMusicTool8_Flush(p,a,b)               (p)->lpVtbl->Flush(p,a,b)
193*c2c66affSColin Finck /*** IDirectMusicTool8 methods ***/
194*c2c66affSColin Finck #define IDirectMusicTool8_Clone(p,a)                 (p)->lpVtbl->Clone(p,a)
195*c2c66affSColin Finck #endif
196*c2c66affSColin Finck 
197*c2c66affSColin Finck 
198*c2c66affSColin Finck /*****************************************************************************
199*c2c66affSColin Finck  * IDirectMusicTrack interface
200*c2c66affSColin Finck  */
201*c2c66affSColin Finck #define INTERFACE IDirectMusicTrack
DECLARE_INTERFACE_(IDirectMusicTrack,IUnknown)202*c2c66affSColin Finck DECLARE_INTERFACE_(IDirectMusicTrack,IUnknown)
203*c2c66affSColin Finck {
204*c2c66affSColin Finck     /*** IUnknown methods ***/
205*c2c66affSColin Finck     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
206*c2c66affSColin Finck     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
207*c2c66affSColin Finck     STDMETHOD_(ULONG,Release)(THIS) PURE;
208*c2c66affSColin Finck     /*** IDirectMusicTrack methods ***/
209*c2c66affSColin Finck     STDMETHOD(Init)(THIS_ struct IDirectMusicSegment *pSegment) PURE;
210*c2c66affSColin Finck     STDMETHOD(InitPlay)(THIS_ struct IDirectMusicSegmentState *pSegmentState, struct IDirectMusicPerformance *pPerformance, void **ppStateData, DWORD dwVirtualTrackID, DWORD dwFlags) PURE;
211*c2c66affSColin Finck     STDMETHOD(EndPlay)(THIS_ void *pStateData) PURE;
212*c2c66affSColin Finck     STDMETHOD(Play)(THIS_ void *pStateData, MUSIC_TIME mtStart, MUSIC_TIME mtEnd, MUSIC_TIME mtOffset, DWORD dwFlags, struct IDirectMusicPerformance *pPerf, struct IDirectMusicSegmentState *pSegSt, DWORD dwVirtualID) PURE;
213*c2c66affSColin Finck     STDMETHOD(GetParam)(THIS_ REFGUID rguidType, MUSIC_TIME mtTime, MUSIC_TIME *pmtNext, void *pParam) PURE;
214*c2c66affSColin Finck     STDMETHOD(SetParam)(THIS_ REFGUID rguidType, MUSIC_TIME mtTime, void *pParam) PURE;
215*c2c66affSColin Finck     STDMETHOD(IsParamSupported)(THIS_ REFGUID rguidType) PURE;
216*c2c66affSColin Finck     STDMETHOD(AddNotificationType)(THIS_ REFGUID rguidNotificationType) PURE;
217*c2c66affSColin Finck     STDMETHOD(RemoveNotificationType)(THIS_ REFGUID rguidNotificationType) PURE;
218*c2c66affSColin Finck     STDMETHOD(Clone)(THIS_ MUSIC_TIME mtStart, MUSIC_TIME mtEnd, IDirectMusicTrack **ppTrack) PURE;
219*c2c66affSColin Finck };
220*c2c66affSColin Finck #undef INTERFACE
221*c2c66affSColin Finck 
222*c2c66affSColin Finck #if !defined(__cplusplus) || defined(CINTERFACE)
223*c2c66affSColin Finck /*** IUnknown methods ***/
224*c2c66affSColin Finck #define IDirectMusicTrack_QueryInterface(p,a,b)       (p)->lpVtbl->QueryInterface(p,a,b)
225*c2c66affSColin Finck #define IDirectMusicTrack_AddRef(p)                   (p)->lpVtbl->AddRef(p)
226*c2c66affSColin Finck #define IDirectMusicTrack_Release(p)                  (p)->lpVtbl->Release(p)
227*c2c66affSColin Finck /*** IDirectMusicTrack methods ***/
228*c2c66affSColin Finck #define IDirectMusicTrack_Init(p,a)                   (p)->lpVtbl->Init(p,a)
229*c2c66affSColin Finck #define IDirectMusicTrack_InitPlay(p,a,b,c,d,e)       (p)->lpVtbl->InitPlay(p,a,b,c,d,e)
230*c2c66affSColin Finck #define IDirectMusicTrack_EndPlay(p,a)                (p)->lpVtbl->EndPlay(p,a)
231*c2c66affSColin Finck #define IDirectMusicTrack_Play(p,a,b,c,d,e,f,g,h)     (p)->lpVtbl->Play(p,a,b,c,d,e,f,g,h)
232*c2c66affSColin Finck #define IDirectMusicTrack_GetParam(p,a,b,c,d)         (p)->lpVtbl->GetParam(p,a,b,c,d)
233*c2c66affSColin Finck #define IDirectMusicTrack_SetParam(p,a,b,c)           (p)->lpVtbl->SetParam(p,a,b,c)
234*c2c66affSColin Finck #define IDirectMusicTrack_IsParamSupported(p,a)       (p)->lpVtbl->IsParamSupported(p,a)
235*c2c66affSColin Finck #define IDirectMusicTrack_AddNotificationType(p,a)    (p)->lpVtbl->AddNotificationType(p,a)
236*c2c66affSColin Finck #define IDirectMusicTrack_RemoveNotificationType(p,a) (p)->lpVtbl->RemoveNotificationType(p,a)
237*c2c66affSColin Finck #define IDirectMusicTrack_Clone(p,a,b,c)              (p)->lpVtbl->Clone(p,a,b,c)
238*c2c66affSColin Finck #endif
239*c2c66affSColin Finck 
240*c2c66affSColin Finck 
241*c2c66affSColin Finck /*****************************************************************************
242*c2c66affSColin Finck  * IDirectMusicTrack8 interface
243*c2c66affSColin Finck  */
244*c2c66affSColin Finck #define INTERFACE IDirectMusicTrack8
DECLARE_INTERFACE_(IDirectMusicTrack8,IDirectMusicTrack)245*c2c66affSColin Finck DECLARE_INTERFACE_(IDirectMusicTrack8,IDirectMusicTrack)
246*c2c66affSColin Finck {
247*c2c66affSColin Finck     /*** IUnknown methods ***/
248*c2c66affSColin Finck     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
249*c2c66affSColin Finck     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
250*c2c66affSColin Finck     STDMETHOD_(ULONG,Release)(THIS) PURE;
251*c2c66affSColin Finck     /*** IDirectMusicTrack methods ***/
252*c2c66affSColin Finck     STDMETHOD(Init)(THIS_ struct IDirectMusicSegment *pSegment) PURE;
253*c2c66affSColin Finck     STDMETHOD(InitPlay)(THIS_ struct IDirectMusicSegmentState *pSegmentState, struct IDirectMusicPerformance *pPerformance, void **ppStateData, DWORD dwVirtualTrackID, DWORD dwFlags) PURE;
254*c2c66affSColin Finck     STDMETHOD(EndPlay)(THIS_ void *pStateData) PURE;
255*c2c66affSColin Finck     STDMETHOD(Play)(THIS_ void *pStateData, MUSIC_TIME mtStart, MUSIC_TIME mtEnd, MUSIC_TIME mtOffset, DWORD dwFlags, struct IDirectMusicPerformance *pPerf, struct IDirectMusicSegmentState *pSegSt, DWORD dwVirtualID) PURE;
256*c2c66affSColin Finck     STDMETHOD(GetParam)(THIS_ REFGUID rguidType, MUSIC_TIME mtTime, MUSIC_TIME *pmtNext, void *pParam) PURE;
257*c2c66affSColin Finck     STDMETHOD(SetParam)(THIS_ REFGUID rguidType, MUSIC_TIME mtTime, void *pParam) PURE;
258*c2c66affSColin Finck     STDMETHOD(IsParamSupported)(THIS_ REFGUID rguidType) PURE;
259*c2c66affSColin Finck     STDMETHOD(AddNotificationType)(THIS_ REFGUID rguidNotificationType) PURE;
260*c2c66affSColin Finck     STDMETHOD(RemoveNotificationType)(THIS_ REFGUID rguidNotificationType) PURE;
261*c2c66affSColin Finck     STDMETHOD(Clone)(THIS_ MUSIC_TIME mtStart, MUSIC_TIME mtEnd, IDirectMusicTrack **ppTrack) PURE;
262*c2c66affSColin Finck     /*** IDirectMusicTrack8 methods ***/
263*c2c66affSColin Finck     STDMETHOD(PlayEx)(THIS_ void *pStateData, REFERENCE_TIME rtStart, REFERENCE_TIME rtEnd, REFERENCE_TIME rtOffset, DWORD dwFlags, struct IDirectMusicPerformance *pPerf, struct IDirectMusicSegmentState *pSegSt, DWORD dwVirtualID) PURE;
264*c2c66affSColin Finck     STDMETHOD(GetParamEx)(THIS_ REFGUID rguidType, REFERENCE_TIME rtTime, REFERENCE_TIME *prtNext, void *pParam, void *pStateData, DWORD dwFlags) PURE;
265*c2c66affSColin Finck     STDMETHOD(SetParamEx)(THIS_ REFGUID rguidType, REFERENCE_TIME rtTime, void *pParam, void *pStateData, DWORD dwFlags) PURE;
266*c2c66affSColin Finck     STDMETHOD(Compose)(THIS_ IUnknown *pContext, DWORD dwTrackGroup, IDirectMusicTrack **ppResultTrack) PURE;
267*c2c66affSColin Finck     STDMETHOD(Join)(THIS_ IDirectMusicTrack *pNewTrack, MUSIC_TIME mtJoin, IUnknown *pContext, DWORD dwTrackGroup, IDirectMusicTrack **ppResultTrack) PURE;
268*c2c66affSColin Finck };
269*c2c66affSColin Finck #undef INTERFACE
270*c2c66affSColin Finck 
271*c2c66affSColin Finck #if !defined(__cplusplus) || defined(CINTERFACE)
272*c2c66affSColin Finck /*** IUnknown methods ***/
273*c2c66affSColin Finck #define IDirectMusicTrack8_QueryInterface(p,a,b)       (p)->lpVtbl->QueryInterface(p,a,b)
274*c2c66affSColin Finck #define IDirectMusicTrack8_AddRef(p)                   (p)->lpVtbl->AddRef(p)
275*c2c66affSColin Finck #define IDirectMusicTrack8_Release(p)                  (p)->lpVtbl->Release(p)
276*c2c66affSColin Finck /*** IDirectMusicTrack methods ***/
277*c2c66affSColin Finck #define IDirectMusicTrack8_Init(p,a)                   (p)->lpVtbl->Init(p,a)
278*c2c66affSColin Finck #define IDirectMusicTrack8_InitPlay(p,a,b,c,d,e)       (p)->lpVtbl->InitPlay(p,a,b,c,d,e)
279*c2c66affSColin Finck #define IDirectMusicTrack8_EndPlay(p,a)                (p)->lpVtbl->EndPlay(p,a)
280*c2c66affSColin Finck #define IDirectMusicTrack8_Play(p,a,b,c,d,e,f,g,h)     (p)->lpVtbl->Play(p,a,b,c,d,e,f,g,h)
281*c2c66affSColin Finck #define IDirectMusicTrack8_GetParam(p,a,b,c,d)         (p)->lpVtbl->GetParam(p,a,b,c,d)
282*c2c66affSColin Finck #define IDirectMusicTrack8_SetParam(p,a,b,c)           (p)->lpVtbl->SetParam(p,a,b,c)
283*c2c66affSColin Finck #define IDirectMusicTrack8_IsParamSupported(p,a)       (p)->lpVtbl->IsParamSupported(p,a)
284*c2c66affSColin Finck #define IDirectMusicTrack8_AddNotificationType(p,a)    (p)->lpVtbl->AddNotificationType(p,a)
285*c2c66affSColin Finck #define IDirectMusicTrack8_RemoveNotificationType(p,a) (p)->lpVtbl->RemoveNotificationType(p,a)
286*c2c66affSColin Finck #define IDirectMusicTrack8_Clone(p,a,b,c)              (p)->lpVtbl->Clone(p,a,b,c)
287*c2c66affSColin Finck /*** IDirectMusicTrack8 methods ***/
288*c2c66affSColin Finck #define IDirectMusicTrack8_PlayEx(p,a,b,c,d,e,f,g,h)   (p)->lpVtbl->PlayEx(p,a,b,c,d,e,f,g,h)
289*c2c66affSColin Finck #define IDirectMusicTrack8_GetParamEx(p,a,b,c,d,e,f)   (p)->lpVtbl->GetParamEx(p,a,b,c,d,e,f)
290*c2c66affSColin Finck #define IDirectMusicTrack8_SetParamEx(p,a,b,c,d,e)     (p)->lpVtbl->SetParamEx(p,a,b,c,d,e)
291*c2c66affSColin Finck #define IDirectMusicTrack8_Compose(p,a,b,c)            (p)->lpVtbl->Compose(p,a,b,c)
292*c2c66affSColin Finck #define IDirectMusicTrack8_Join(p,a,b,c,d,e)           (p)->lpVtbl->Join(p,a,b,c,d,e)
293*c2c66affSColin Finck #endif
294*c2c66affSColin Finck 
295*c2c66affSColin Finck #ifdef __cplusplus
296*c2c66affSColin Finck }
297*c2c66affSColin Finck #endif
298*c2c66affSColin Finck 
299*c2c66affSColin Finck #include <poppack.h>
300*c2c66affSColin Finck 
301*c2c66affSColin Finck #endif /* __WINE_DMUSIC_PLUGIN_H */
302