annotate lib/legacy_dx/dmplugin.h @ 201:11a199790ce0

3.01.13 (CreditsScreen)
author Ritor1
date Thu, 03 Jan 2013 01:03:18 +0600
parents 8b8875f5b359
children
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 /************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2 * *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3 * dmplugin.h -- This module contains the API for plugins for the *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4 * DirectMusic performance layer *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5 * *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6 * Copyright (c) Microsoft Corporation. All rights reserved. *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7 * *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 ************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 #ifndef _DMPLUGIN_
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 #define _DMPLUGIN_
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 #include <windows.h>
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 #define COM_NO_WINDOWS_H
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16 #include <objbase.h>
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18 #include <mmsystem.h>
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19 #include <dmusici.h>
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 #include <pshpack8.h>
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 #ifdef __cplusplus
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 extern "C" {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 interface IDirectMusicTrack;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 interface IDirectMusicTool;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29 interface IDirectMusicTool8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30 interface IDirectMusicTrack8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 interface IDirectMusicPerformance;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32 interface IDirectMusicPerformance8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 interface IDirectMusicSegment;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34 interface IDirectMusicSegment8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35 interface IDirectMusicSegmentState;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36 interface IDirectMusicSegmentState8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37 interface IDirectMusicGraph;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38 #ifndef __cplusplus
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39 typedef interface IDirectMusicTrack IDirectMusicTrack;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 typedef interface IDirectMusicTool IDirectMusicTool;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41 typedef interface IDirectMusicTool8 IDirectMusicTool8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 typedef interface IDirectMusicTrack8 IDirectMusicTrack8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43 typedef interface IDirectMusicPerformance IDirectMusicPerformance;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44 typedef interface IDirectMusicPerformance8 IDirectMusicPerformance8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 typedef interface IDirectMusicSegment IDirectMusicSegment;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46 typedef interface IDirectMusicSegment8 IDirectMusicSegment8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47 typedef interface IDirectMusicSegmentState IDirectMusicSegmentState;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48 typedef interface IDirectMusicSegmentState8 IDirectMusicSegmentState8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49 typedef interface IDirectMusicGraph IDirectMusicGraph;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52 typedef struct _DMUS_PMSG DMUS_PMSG;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53 typedef long MUSIC_TIME;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55 /* Registry location for tools */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 #define DMUS_REGSTR_PATH_TOOLS "Software\\Microsoft\\DirectMusic\\Tools"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58 /*////////////////////////////////////////////////////////////////////
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
59 // IDirectMusicTool */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60 #undef INTERFACE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
61 #define INTERFACE IDirectMusicTool
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
62 DECLARE_INTERFACE_(IDirectMusicTool, IUnknown)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
63 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
64 /* IUnknown */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
65 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
66 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
67 STDMETHOD_(ULONG,Release) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
68
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
69 /* IDirectMusicTool */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
70 STDMETHOD(Init) (THIS_ IDirectMusicGraph* pGraph) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
71 STDMETHOD(GetMsgDeliveryType) (THIS_ DWORD* pdwDeliveryType ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
72 STDMETHOD(GetMediaTypeArraySize)(THIS_ DWORD* pdwNumElements ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
73 STDMETHOD(GetMediaTypes) (THIS_ DWORD** padwMediaTypes,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
74 DWORD dwNumElements) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
75 STDMETHOD(ProcessPMsg) (THIS_ IDirectMusicPerformance* pPerf,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
76 DMUS_PMSG* pPMSG) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
77 STDMETHOD(Flush) (THIS_ IDirectMusicPerformance* pPerf,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
78 DMUS_PMSG* pPMSG,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
79 REFERENCE_TIME rtTime) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
80 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
81
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
82 /*////////////////////////////////////////////////////////////////////
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
83 // IDirectMusicTool8 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
84 #undef INTERFACE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
85 #define INTERFACE IDirectMusicTool8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
86 DECLARE_INTERFACE_(IDirectMusicTool8, IDirectMusicTool)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
87 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
88 /* IUnknown */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
89 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
90 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
91 STDMETHOD_(ULONG,Release) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
92
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
93 /* IDirectMusicTool */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
94 STDMETHOD(Init) (THIS_ IDirectMusicGraph* pGraph) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
95 STDMETHOD(GetMsgDeliveryType) (THIS_ DWORD* pdwDeliveryType ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
96 STDMETHOD(GetMediaTypeArraySize)(THIS_ DWORD* pdwNumElements ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
97 STDMETHOD(GetMediaTypes) (THIS_ DWORD** padwMediaTypes,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
98 DWORD dwNumElements) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
99 STDMETHOD(ProcessPMsg) (THIS_ IDirectMusicPerformance* pPerf,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
100 DMUS_PMSG* pPMSG) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
101 STDMETHOD(Flush) (THIS_ IDirectMusicPerformance* pPerf,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
102 DMUS_PMSG* pPMSG,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
103 REFERENCE_TIME rtTime) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
104 /* IDirectMusicTool8 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
105 STDMETHOD(Clone) (THIS_ IDirectMusicTool ** ppTool) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
106 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
107
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
108
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
109 /* The following flags are sent in the IDirectMusicTrack::Play() method */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
110 /* inside the dwFlags parameter */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
111 typedef enum enumDMUS_TRACKF_FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
112 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
113 DMUS_TRACKF_SEEK = 1, /* set on a seek */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
114 DMUS_TRACKF_LOOP = 2, /* set on a loop (repeat) */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
115 DMUS_TRACKF_START = 4, /* set on first call to Play */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
116 DMUS_TRACKF_FLUSH = 8, /* set when this call is in response to a flush on the perfomance */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
117 DMUS_TRACKF_DIRTY = 0x10, /* set when the track should consider any cached values from a previous call to GetParam to be invalidated */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
118 /* The following flags are DX8 only. */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
119 DMUS_TRACKF_NOTIFY_OFF = 0x20, /* tells track not to send notifications. */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
120 DMUS_TRACKF_PLAY_OFF = 0x40, /* tells track not to play anything (but can still send notifications.) */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
121 DMUS_TRACKF_LOOPEND = 0x80, /* set when the end of range is also a loop end. */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
122 DMUS_TRACKF_STOP = 0x100, /* set when the end of range is also end of playing this segment. */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
123 DMUS_TRACKF_RECOMPOSE = 0x200, /* set to indicate the track should compose. */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
124 DMUS_TRACKF_CLOCK = 0x400, /* set when time parameters are in reference (Timer) time. Only valid for PlayEx(). */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
125 } DMUS_TRACKF_FLAGS;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
126
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
127 /* The following flags are sent in the IDirectMusicTrack8::GetParamEx() and SetParamEx() methods */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
128 /* inside the dwFlags parameter */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
129 #define DMUS_TRACK_PARAMF_CLOCK 0x01 /* set when the time is measured is in reference (Timer) time */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
130
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
131 /*////////////////////////////////////////////////////////////////////
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
132 // IDirectMusicTrack */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
133 #undef INTERFACE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
134 #define INTERFACE IDirectMusicTrack
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
135 DECLARE_INTERFACE_(IDirectMusicTrack, IUnknown)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
136 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
137 /* IUnknown */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
138 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
139 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
140 STDMETHOD_(ULONG,Release) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
141
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
142 /* IDirectMusicTrack */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
143 STDMETHOD(Init) (THIS_ IDirectMusicSegment* pSegment) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
144 STDMETHOD(InitPlay) (THIS_ IDirectMusicSegmentState* pSegmentState,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
145 IDirectMusicPerformance* pPerformance,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
146 void** ppStateData,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
147 DWORD dwVirtualTrackID,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
148 DWORD dwFlags) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
149 STDMETHOD(EndPlay) (THIS_ void* pStateData) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
150 STDMETHOD(Play) (THIS_ void* pStateData,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
151 MUSIC_TIME mtStart,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
152 MUSIC_TIME mtEnd,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
153 MUSIC_TIME mtOffset,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
154 DWORD dwFlags,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
155 IDirectMusicPerformance* pPerf,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
156 IDirectMusicSegmentState* pSegSt,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
157 DWORD dwVirtualID) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
158 STDMETHOD(GetParam) (THIS_ REFGUID rguidType,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
159 MUSIC_TIME mtTime,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
160 MUSIC_TIME* pmtNext,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
161 void* pParam) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
162 STDMETHOD(SetParam) (THIS_ REFGUID rguidType,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
163 MUSIC_TIME mtTime,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
164 void* pParam) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
165 STDMETHOD(IsParamSupported) (THIS_ REFGUID rguidType) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
166 STDMETHOD(AddNotificationType) (THIS_ REFGUID rguidNotificationType) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
167 STDMETHOD(RemoveNotificationType) (THIS_ REFGUID rguidNotificationType) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
168 STDMETHOD(Clone) (THIS_ MUSIC_TIME mtStart,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
169 MUSIC_TIME mtEnd,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
170 IDirectMusicTrack** ppTrack) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
171 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
172
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
173 /*////////////////////////////////////////////////////////////////////
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
174 // IDirectMusicTrack8 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
175 #undef INTERFACE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
176 #define INTERFACE IDirectMusicTrack8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
177 DECLARE_INTERFACE_(IDirectMusicTrack8, IDirectMusicTrack)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
178 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
179 /* IUnknown */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
180 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
181 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
182 STDMETHOD_(ULONG,Release) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
183
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
184 /* IDirectMusicTrack */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
185 STDMETHOD(Init) (THIS_ IDirectMusicSegment* pSegment) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
186 STDMETHOD(InitPlay) (THIS_ IDirectMusicSegmentState* pSegmentState,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
187 IDirectMusicPerformance* pPerformance,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
188 void** ppStateData,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
189 DWORD dwVirtualTrackID,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
190 DWORD dwFlags) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
191 STDMETHOD(EndPlay) (THIS_ void* pStateData) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
192 STDMETHOD(Play) (THIS_ void* pStateData,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
193 MUSIC_TIME mtStart,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
194 MUSIC_TIME mtEnd,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
195 MUSIC_TIME mtOffset,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
196 DWORD dwFlags,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
197 IDirectMusicPerformance* pPerf,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
198 IDirectMusicSegmentState* pSegSt,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
199 DWORD dwVirtualID) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
200 STDMETHOD(GetParam) (THIS_ REFGUID rguidType,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
201 MUSIC_TIME mtTime,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
202 MUSIC_TIME* pmtNext,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
203 void* pParam) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
204 STDMETHOD(SetParam) (THIS_ REFGUID rguidType,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
205 MUSIC_TIME mtTime,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
206 void* pParam) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
207 STDMETHOD(IsParamSupported) (THIS_ REFGUID rguidType) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
208 STDMETHOD(AddNotificationType) (THIS_ REFGUID rguidNotificationType) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
209 STDMETHOD(RemoveNotificationType) (THIS_ REFGUID rguidNotificationType) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
210 STDMETHOD(Clone) (THIS_ MUSIC_TIME mtStart,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
211 MUSIC_TIME mtEnd,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
212 IDirectMusicTrack** ppTrack) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
213 /* IDirectMusicTrack8 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
214 STDMETHOD(PlayEx) (THIS_ void* pStateData,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
215 REFERENCE_TIME rtStart,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
216 REFERENCE_TIME rtEnd,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
217 REFERENCE_TIME rtOffset,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
218 DWORD dwFlags,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
219 IDirectMusicPerformance* pPerf,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
220 IDirectMusicSegmentState* pSegSt,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
221 DWORD dwVirtualID) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
222 STDMETHOD(GetParamEx) (THIS_ REFGUID rguidType, /* Command type. */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
223 REFERENCE_TIME rtTime, /* Time, in ref time if dwFlags == DMUS_TRACK_PARAMF_CLOCK. Otherwise, music time. */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
224 REFERENCE_TIME* prtNext, /* Time of next parameter, relative to rtTime, in music or Timer time units. */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
225 void* pParam, /* Pointer to the parameter data. */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
226 void * pStateData, /* State data for track instance. */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
227 DWORD dwFlags) PURE; /* Control flags. */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
228 STDMETHOD(SetParamEx) (THIS_ REFGUID rguidType,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
229 REFERENCE_TIME rtTime,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
230 void* pParam, /* Pointer to the parameter data. */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
231 void * pStateData, /* State data for track instance. */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
232 DWORD dwFlags) PURE; /* Control flags. */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
233 STDMETHOD(Compose) (THIS_ IUnknown* pContext, /* Context for composition */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
234 DWORD dwTrackGroup,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
235 IDirectMusicTrack** ppResultTrack) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
236 STDMETHOD(Join) (THIS_ IDirectMusicTrack* pNewTrack,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
237 MUSIC_TIME mtJoin,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
238 IUnknown* pContext, /* Context for joining */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
239 DWORD dwTrackGroup,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
240 IDirectMusicTrack** ppResultTrack) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
241 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
242
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
243 /* CLSID's */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
244 DEFINE_GUID(CLSID_DirectMusicTempoTrack,0xd2ac2885, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
245 DEFINE_GUID(CLSID_DirectMusicSeqTrack,0xd2ac2886, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
246 DEFINE_GUID(CLSID_DirectMusicSysExTrack,0xd2ac2887, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
247 DEFINE_GUID(CLSID_DirectMusicTimeSigTrack,0xd2ac2888, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
248 DEFINE_GUID(CLSID_DirectMusicChordTrack,0xd2ac288b, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
249 DEFINE_GUID(CLSID_DirectMusicCommandTrack,0xd2ac288c, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
250 DEFINE_GUID(CLSID_DirectMusicStyleTrack,0xd2ac288d, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
251 DEFINE_GUID(CLSID_DirectMusicMotifTrack,0xd2ac288e, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
252 DEFINE_GUID(CLSID_DirectMusicSignPostTrack,0xf17e8672, 0xc3b4, 0x11d1, 0x87, 0xb, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
253 DEFINE_GUID(CLSID_DirectMusicBandTrack,0xd2ac2894, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
254 DEFINE_GUID(CLSID_DirectMusicChordMapTrack,0xd2ac2896, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
255 DEFINE_GUID(CLSID_DirectMusicMuteTrack,0xd2ac2898, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
256
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
257 /* New CLSID's for DX8 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
258 DEFINE_GUID(CLSID_DirectMusicScriptTrack,0x4108fa85, 0x3586, 0x11d3, 0x8b, 0xd7, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xb6); /* {4108FA85-3586-11d3-8BD7-00600893B1B6} */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
259 DEFINE_GUID(CLSID_DirectMusicMarkerTrack,0x55a8fd00, 0x4288, 0x11d3, 0x9b, 0xd1, 0x8a, 0xd, 0x61, 0xc8, 0x88, 0x35);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
260 DEFINE_GUID(CLSID_DirectMusicSegmentTriggerTrack, 0xbae4d665, 0x4ea1, 0x11d3, 0x8b, 0xda, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xb6); /* {BAE4D665-4EA1-11d3-8BDA-00600893B1B6} */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
261 DEFINE_GUID(CLSID_DirectMusicLyricsTrack, 0x995c1cf5, 0x54ff, 0x11d3, 0x8b, 0xda, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xb6); /* {995C1CF5-54FF-11d3-8BDA-00600893B1B6} */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
262 DEFINE_GUID(CLSID_DirectMusicParamControlTrack, 0x4be0537b, 0x5c19, 0x11d3, 0x8b, 0xdc, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xb6); /* {4BE0537B-5C19-11d3-8BDC-00600893B1B6} */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
263 DEFINE_GUID(CLSID_DirectMusicWaveTrack,0xeed36461, 0x9ea5, 0x11d3, 0x9b, 0xd1, 0x0, 0x80, 0xc7, 0x15, 0xa, 0x74);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
264
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
265 /* IID's */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
266 DEFINE_GUID(IID_IDirectMusicTrack, 0xf96029a1, 0x4282, 0x11d2, 0x87, 0x17, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
267 DEFINE_GUID(IID_IDirectMusicTool,0xd2ac28ba, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
268
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
269 /* Interface IDs for DX8 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
270 /* changed interfaces (GUID only) */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
271 DEFINE_GUID(IID_IDirectMusicTool8, 0xe674303, 0x3b05, 0x11d3, 0x9b, 0xd1, 0xf9, 0xe7, 0xf0, 0xa0, 0x15, 0x36);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
272 DEFINE_GUID(IID_IDirectMusicTrack8, 0xe674304, 0x3b05, 0x11d3, 0x9b, 0xd1, 0xf9, 0xe7, 0xf0, 0xa0, 0x15, 0x36);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
273
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
274 #ifdef __cplusplus
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
275 }; /* extern "C" */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
276 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
277
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
278 #include <poppack.h>
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
279
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
280 #endif /* #ifndef _DMPLUGIN_ */