1 /* DirectMusicInteractiveEngine Private Include
3 * Copyright (C) 2003-2004 Rok Mandeljc
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Library General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #ifndef __WINE_DMIME_PRIVATE_H
21 #define __WINE_DMIME_PRIVATE_H
35 #include "wine/debug.h"
36 #include "wine/list.h"
37 #include "wine/unicode.h"
45 /*****************************************************************************
48 typedef struct IDirectMusicPerformance8Impl IDirectMusicPerformance8Impl
;
49 typedef struct IDirectMusicSegment8Impl IDirectMusicSegment8Impl
;
50 typedef struct IDirectMusicSegmentState8Impl IDirectMusicSegmentState8Impl
;
51 typedef struct IDirectMusicGraphImpl IDirectMusicGraphImpl
;
52 typedef struct IDirectMusicAudioPathImpl IDirectMusicAudioPathImpl
;
53 typedef struct IDirectMusicTool8Impl IDirectMusicTool8Impl
;
54 typedef struct IDirectMusicPatternTrackImpl IDirectMusicPatternTrackImpl
;
56 typedef struct IDirectMusicLyricsTrack IDirectMusicLyricsTrack
;
57 typedef struct IDirectMusicMarkerTrack IDirectMusicMarkerTrack
;
58 typedef struct IDirectMusicParamControlTrack IDirectMusicParamControlTrack
;
59 typedef struct IDirectMusicSegTriggerTrack IDirectMusicSegTriggerTrack
;
60 typedef struct IDirectMusicSeqTrack IDirectMusicSeqTrack
;
61 typedef struct IDirectMusicSysExTrack IDirectMusicSysExTrack
;
62 typedef struct IDirectMusicTempoTrack IDirectMusicTempoTrack
;
63 typedef struct IDirectMusicTimeSigTrack IDirectMusicTimeSigTrack
;
64 typedef struct IDirectMusicWaveTrack IDirectMusicWaveTrack
;
66 /*****************************************************************************
67 * Predeclare the interface implementation structures
69 extern IDirectMusicPerformance8Vtbl DirectMusicPerformance8_Vtbl
;
71 extern IUnknownVtbl DirectMusicSegment8_Unknown_Vtbl
;
72 extern IDirectMusicSegment8Vtbl DirectMusicSegment8_Segment_Vtbl
;
73 extern IDirectMusicObjectVtbl DirectMusicSegment8_Object_Vtbl
;
74 extern IPersistStreamVtbl DirectMusicSegment8_PersistStream_Vtbl
;
76 extern IDirectMusicSegmentState8Vtbl DirectMusicSegmentState8_Vtbl
;
78 extern IUnknownVtbl DirectMusicGraph_Unknown_Vtbl
;
79 extern IDirectMusicGraphVtbl DirectMusicGraph_Gtaph_Vtbl
;
80 extern IDirectMusicObjectVtbl DirectMusicGraph_Object_Vtbl
;
81 extern IPersistStreamVtbl DirectMusicGraph_PersistStream_Vtbl
;
83 extern IUnknownVtbl DirectMusicAudioPath_Unknown_Vtbl
;
84 extern IDirectMusicAudioPathVtbl DirectMusicAudioPath_AudioPath_Vtbl
;
85 extern IDirectMusicObjectVtbl DirectMusicAudioPath_Object_Vtbl
;
86 extern IPersistStreamVtbl DirectMusicAudioPath_Persist_Stream_Vtbl
;
88 extern IDirectMusicTool8Vtbl DirectMusicTool8_Vtbl
;
90 extern IDirectMusicPatternTrackVtbl DirectMusicPatternTrack_Vtbl
;
92 extern IUnknownVtbl DirectMusicLyricsTrack_Unknown_Vtbl
;
93 extern IDirectMusicTrack8Vtbl DirectMusicLyricsTrack_Track_Vtbl
;
94 extern IPersistStreamVtbl DirectMusicLyricsTrack_PersistStream_Vtbl
;
96 extern IUnknownVtbl DirectMusicMarkerTrack_Unknown_Vtbl
;
97 extern IDirectMusicTrack8Vtbl DirectMusicMarkerTrack_Track_Vtbl
;
98 extern IPersistStreamVtbl DirectMusicMarkerTrack_PersistStream_Vtbl
;
100 extern IUnknownVtbl DirectMusicParamControlTrack_Unknown_Vtbl
;
101 extern IDirectMusicTrack8Vtbl DirectMusicParamControlTrack_Track_Vtbl
;
102 extern IPersistStreamVtbl DirectMusicParamControlTrack_PersistStream_Vtbl
;
104 extern IUnknownVtbl DirectMusicSegTriggerTrack_Unknown_Vtbl
;
105 extern IDirectMusicTrack8Vtbl DirectMusicSegTriggerTrack_Track_Vtbl
;
106 extern IPersistStreamVtbl DirectMusicSegTriggerTrack_PersistStream_Vtbl
;
108 extern IUnknownVtbl DirectMusicSeqTrack_Unknown_Vtbl
;
109 extern IDirectMusicTrack8Vtbl DirectMusicSeqTrack_Track_Vtbl
;
110 extern IPersistStreamVtbl DirectMusicSeqTrack_PersistStream_Vtbl
;
112 extern IUnknownVtbl DirectMusicSysExTrack_Unknown_Vtbl
;
113 extern IDirectMusicTrack8Vtbl DirectMusicSysExTrack_Track_Vtbl
;
114 extern IPersistStreamVtbl DirectMusicSysExTrack_PersistStream_Vtbl
;
116 extern IUnknownVtbl DirectMusicTempoTrack_Unknown_Vtbl
;
117 extern IDirectMusicTrack8Vtbl DirectMusicTempoTrack_Track_Vtbl
;
118 extern IPersistStreamVtbl DirectMusicTempoTrack_PersistStream_Vtbl
;
120 extern IUnknownVtbl DirectMusicTimeSigTrack_Unknown_Vtbl
;
121 extern IDirectMusicTrack8Vtbl DirectMusicTimeSigTrack_Track_Vtbl
;
122 extern IPersistStreamVtbl DirectMusicTimeSigTrack_PersistStream_Vtbl
;
124 extern IUnknownVtbl DirectMusicWaveTrack_Unknown_Vtbl
;
125 extern IDirectMusicTrack8Vtbl DirectMusicWaveTrack_Track_Vtbl
;
126 extern IPersistStreamVtbl DirectMusicWaveTrack_PersistStream_Vtbl
;
128 /*****************************************************************************
131 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicPerformanceImpl (LPCGUID lpcGUID
, LPVOID
*ppobj
, LPUNKNOWN pUnkOuter
);
132 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicSegmentImpl (LPCGUID lpcGUID
, LPVOID
*ppobj
, LPUNKNOWN pUnkOuter
);
133 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicSegmentStateImpl (LPCGUID lpcGUID
, LPVOID
*ppobj
, LPUNKNOWN pUnkOuter
);
134 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicGraphImpl (LPCGUID lpcGUID
, LPVOID
*ppobj
, LPUNKNOWN pUnkOuter
);
135 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicAudioPathImpl (LPCGUID lpcGUID
, LPVOID
*ppobj
, LPUNKNOWN pUnkOuter
);
136 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicToolImpl (LPCGUID lpcGUID
, LPVOID
*ppobj
, LPUNKNOWN pUnkOuter
);
137 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicPatternTrackImpl (LPCGUID lpcGUID
, LPVOID
*ppobj
, LPUNKNOWN pUnkOuter
);
139 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicLyricsTrack (LPCGUID lpcGUID
, LPVOID
* ppobj
, LPUNKNOWN pUnkOuter
);
140 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicMarkerTrack (LPCGUID lpcGUID
, LPVOID
* ppobj
, LPUNKNOWN pUnkOuter
);
141 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicParamControlTrack (LPCGUID lpcGUID
, LPVOID
* ppobj
, LPUNKNOWN pUnkOuter
);
142 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicSegTriggerTrack (LPCGUID lpcGUID
, LPVOID
* ppobj
, LPUNKNOWN pUnkOuter
);
143 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicSeqTrack (LPCGUID lpcGUID
, LPVOID
* ppobj
, LPUNKNOWN pUnkOuter
);
144 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicSysExTrack (LPCGUID lpcGUID
, LPVOID
* ppobj
, LPUNKNOWN pUnkOuter
);
145 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicTempoTrack (LPCGUID lpcGUID
, LPVOID
* ppobj
, LPUNKNOWN pUnkOuter
);
146 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicTimeSigTrack (LPCGUID lpcGUID
, LPVOID
* ppobj
, LPUNKNOWN pUnkOuter
);
147 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicWaveTrack (LPCGUID lpcGUID
, LPVOID
* ppobj
, LPUNKNOWN pUnkOuter
);
150 /*****************************************************************************
151 * Auxiliary definitions
153 typedef struct _DMUS_PRIVATE_SEGMENT_TRACK
{
154 struct list entry
; /* for listing elements */
156 IDirectMusicTrack
* pTrack
;
157 } DMUS_PRIVATE_SEGMENT_TRACK
, *LPDMUS_PRIVATE_SEGMENT_TRACK
;
159 typedef struct _DMUS_PRIVATE_TEMPO_ITEM
{
160 struct list entry
; /* for listing elements */
161 DMUS_IO_TEMPO_ITEM item
;
162 } DMUS_PRIVATE_TEMPO_ITEM
, *LPDMUS_PRIVATE_TEMPO_ITEM
;
164 typedef struct _DMUS_PRIVATE_SEGMENT_ITEM
{
165 struct list entry
; /* for listing elements */
166 DMUS_IO_SEGMENT_ITEM_HEADER header
;
167 IDirectMusicObject
* pObject
;
168 WCHAR wszName
[DMUS_MAX_NAME
];
169 } DMUS_PRIVATE_SEGMENT_ITEM
, *LPDMUS_PRIVATE_SEGMENT_ITEM
;
171 typedef struct _DMUS_PRIVATE_GRAPH_TOOL
{
172 struct list entry
; /* for listing elements */
174 IDirectMusicTool
* pTool
;
175 } DMUS_PRIVATE_GRAPH_TOOL
, *LPDMUS_PRIVATE_GRAPH_TOOL
;
177 typedef struct _DMUS_PRIVATE_TEMPO_PLAY_STATE
{
179 } DMUS_PRIVATE_TEMPO_PLAY_STATE
, *LPDMUS_PRIVATE_TEMPO_PLAY_STATE
;
181 /* some sort of aux. performance channel: as far as i can understand, these are
182 used to represent a particular midi channel in particular group at particular
183 group; so all we need to do is to fill it with parent port, group and midi
185 typedef struct DMUSIC_PRIVATE_PCHANNEL_
{
186 DWORD channel
; /* map to this channel... */
187 DWORD group
; /* ... in this group ... */
188 IDirectMusicPort
*port
; /* ... at this port */
189 } DMUSIC_PRIVATE_PCHANNEL
, *LPDMUSIC_PRIVATE_PCHANNEL
;
191 /*****************************************************************************
192 * IDirectMusicPerformance8Impl implementation structure
194 struct IDirectMusicPerformance8Impl
{
195 /* IUnknown fields */
196 IDirectMusicPerformance8Vtbl
*lpVtbl
;
199 /* IDirectMusicPerformanceImpl fields */
200 IDirectMusic8
* pDirectMusic
;
201 IDirectSound
* pDirectSound
;
202 IDirectMusicGraph
* pToolGraph
;
203 DMUS_AUDIOPARAMS pParams
;
205 /* global parameters */
207 char cMasterGrooveLevel
;
211 /* performance channels */
212 DMUSIC_PRIVATE_PCHANNEL PChannel
[1];
214 /* IDirectMusicPerformance8Impl fields */
215 IDirectMusicAudioPath
* pDefaultPath
;
216 HANDLE hNotification
;
217 REFERENCE_TIME rtMinimum
;
219 REFERENCE_TIME rtLatencyTime
;
220 DWORD dwBumperLength
;
222 /** Message Processing */
225 REFERENCE_TIME procThreadStartTime
;
226 BOOL procThreadTicStarted
;
227 CRITICAL_SECTION safe
;
228 struct DMUS_PMSGItem
* head
;
229 struct DMUS_PMSGItem
* imm_head
;
233 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_QueryInterface (LPDIRECTMUSICPERFORMANCE8 iface
, REFIID riid
, LPVOID
*ppobj
);
234 extern ULONG WINAPI
IDirectMusicPerformance8Impl_AddRef (LPDIRECTMUSICPERFORMANCE8 iface
);
235 extern ULONG WINAPI
IDirectMusicPerformance8Impl_Release (LPDIRECTMUSICPERFORMANCE8 iface
);
236 /* IDirectMusicPerformance: */
237 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_Init (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusic
** ppDirectMusic
, LPDIRECTSOUND pDirectSound
, HWND hWnd
);
238 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_PlaySegment (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusicSegment
* pSegment
, DWORD dwFlags
, __int64 i64StartTime
, IDirectMusicSegmentState
** ppSegmentState
);
239 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_Stop (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusicSegment
* pSegment
, IDirectMusicSegmentState
* pSegmentState
, MUSIC_TIME mtTime
, DWORD dwFlags
);
240 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetSegmentState (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusicSegmentState
** ppSegmentState
, MUSIC_TIME mtTime
);
241 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_SetPrepareTime (LPDIRECTMUSICPERFORMANCE8 iface
, DWORD dwMilliSeconds
);
242 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetPrepareTime (LPDIRECTMUSICPERFORMANCE8 iface
, DWORD
* pdwMilliSeconds
);
243 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_SetBumperLength (LPDIRECTMUSICPERFORMANCE8 iface
, DWORD dwMilliSeconds
);
244 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetBumperLength (LPDIRECTMUSICPERFORMANCE8 iface
, DWORD
* pdwMilliSeconds
);
245 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_SendPMsg (LPDIRECTMUSICPERFORMANCE8 iface
, DMUS_PMSG
* pPMSG
);
246 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_MusicToReferenceTime (LPDIRECTMUSICPERFORMANCE8 iface
, MUSIC_TIME mtTime
, REFERENCE_TIME
* prtTime
);
247 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_ReferenceToMusicTime (LPDIRECTMUSICPERFORMANCE8 iface
, REFERENCE_TIME rtTime
, MUSIC_TIME
* pmtTime
);
248 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_IsPlaying (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusicSegment
* pSegment
, IDirectMusicSegmentState
* pSegState
);
249 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetTime (LPDIRECTMUSICPERFORMANCE8 iface
, REFERENCE_TIME
* prtNow
, MUSIC_TIME
* pmtNow
);
250 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_AllocPMsg (LPDIRECTMUSICPERFORMANCE8 iface
, ULONG cb
, DMUS_PMSG
** ppPMSG
);
251 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_FreePMsg (LPDIRECTMUSICPERFORMANCE8 iface
, DMUS_PMSG
* pPMSG
);
252 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetGraph (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusicGraph
** ppGraph
);
253 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_SetGraph (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusicGraph
* pGraph
);
254 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_SetNotificationHandle (LPDIRECTMUSICPERFORMANCE8 iface
, HANDLE hNotification
, REFERENCE_TIME rtMinimum
);
255 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetNotificationPMsg (LPDIRECTMUSICPERFORMANCE8 iface
, DMUS_NOTIFICATION_PMSG
** ppNotificationPMsg
);
256 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_AddNotificationType (LPDIRECTMUSICPERFORMANCE8 iface
, REFGUID rguidNotificationType
);
257 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_RemoveNotificationType (LPDIRECTMUSICPERFORMANCE8 iface
, REFGUID rguidNotificationType
);
258 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_AddPort (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusicPort
* pPort
);
259 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_RemovePort (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusicPort
* pPort
);
260 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_AssignPChannelBlock (LPDIRECTMUSICPERFORMANCE8 iface
, DWORD dwBlockNum
, IDirectMusicPort
* pPort
, DWORD dwGroup
);
261 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_AssignPChannel (LPDIRECTMUSICPERFORMANCE8 iface
, DWORD dwPChannel
, IDirectMusicPort
* pPort
, DWORD dwGroup
, DWORD dwMChannel
);
262 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_PChannelInfo (LPDIRECTMUSICPERFORMANCE8 iface
, DWORD dwPChannel
, IDirectMusicPort
** ppPort
, DWORD
* pdwGroup
, DWORD
* pdwMChannel
);
263 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_DownloadInstrument (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusicInstrument
* pInst
, DWORD dwPChannel
, IDirectMusicDownloadedInstrument
** ppDownInst
, DMUS_NOTERANGE
* pNoteRanges
, DWORD dwNumNoteRanges
, IDirectMusicPort
** ppPort
, DWORD
* pdwGroup
, DWORD
* pdwMChannel
);
264 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_Invalidate (LPDIRECTMUSICPERFORMANCE8 iface
, MUSIC_TIME mtTime
, DWORD dwFlags
);
265 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetParam (LPDIRECTMUSICPERFORMANCE8 iface
, REFGUID rguidType
, DWORD dwGroupBits
, DWORD dwIndex
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
266 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_SetParam (LPDIRECTMUSICPERFORMANCE8 iface
, REFGUID rguidType
, DWORD dwGroupBits
, DWORD dwIndex
, MUSIC_TIME mtTime
, void* pParam
);
267 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetGlobalParam (LPDIRECTMUSICPERFORMANCE8 iface
, REFGUID rguidType
, void* pParam
, DWORD dwSize
);
268 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_SetGlobalParam (LPDIRECTMUSICPERFORMANCE8 iface
, REFGUID rguidType
, void* pParam
, DWORD dwSize
);
269 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetLatencyTime (LPDIRECTMUSICPERFORMANCE8 iface
, REFERENCE_TIME
* prtTime
);
270 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetQueueTime (LPDIRECTMUSICPERFORMANCE8 iface
, REFERENCE_TIME
* prtTime
);
271 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_AdjustTime (LPDIRECTMUSICPERFORMANCE8 iface
, REFERENCE_TIME rtAmount
);
272 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_CloseDown (LPDIRECTMUSICPERFORMANCE8 iface
);
273 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetResolvedTime (LPDIRECTMUSICPERFORMANCE8 iface
, REFERENCE_TIME rtTime
, REFERENCE_TIME
* prtResolved
, DWORD dwTimeResolveFlags
);
274 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_MIDIToMusic (LPDIRECTMUSICPERFORMANCE8 iface
, BYTE bMIDIValue
, DMUS_CHORD_KEY
* pChord
, BYTE bPlayMode
, BYTE bChordLevel
, WORD
* pwMusicValue
);
275 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_MusicToMIDI (LPDIRECTMUSICPERFORMANCE8 iface
, WORD wMusicValue
, DMUS_CHORD_KEY
* pChord
, BYTE bPlayMode
, BYTE bChordLevel
, BYTE
* pbMIDIValue
);
276 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_TimeToRhythm (LPDIRECTMUSICPERFORMANCE8 iface
, MUSIC_TIME mtTime
, DMUS_TIMESIGNATURE
* pTimeSig
, WORD
* pwMeasure
, BYTE
* pbBeat
, BYTE
* pbGrid
, short* pnOffset
);
277 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_RhythmToTime (LPDIRECTMUSICPERFORMANCE8 iface
, WORD wMeasure
, BYTE bBeat
, BYTE bGrid
, short nOffset
, DMUS_TIMESIGNATURE
* pTimeSig
, MUSIC_TIME
* pmtTime
);
278 /* IDirectMusicPerformance8: */
279 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_InitAudio (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusic
** ppDirectMusic
, IDirectSound
** ppDirectSound
, HWND hWnd
, DWORD dwDefaultPathType
, DWORD dwPChannelCount
, DWORD dwFlags
, DMUS_AUDIOPARAMS
* pParams
);
280 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_PlaySegmentEx (LPDIRECTMUSICPERFORMANCE8 iface
, IUnknown
* pSource
, WCHAR
* pwzSegmentName
, IUnknown
* pTransition
, DWORD dwFlags
, __int64 i64StartTime
, IDirectMusicSegmentState
** ppSegmentState
, IUnknown
* pFrom
, IUnknown
* pAudioPath
);
281 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_StopEx (LPDIRECTMUSICPERFORMANCE8 iface
, IUnknown
* pObjectToStop
, __int64 i64StopTime
, DWORD dwFlags
);
282 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_ClonePMsg (LPDIRECTMUSICPERFORMANCE8 iface
, DMUS_PMSG
* pSourcePMSG
, DMUS_PMSG
** ppCopyPMSG
);
283 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_CreateAudioPath (LPDIRECTMUSICPERFORMANCE8 iface
, IUnknown
* pSourceConfig
, BOOL fActivate
, IDirectMusicAudioPath
** ppNewPath
);
284 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_CreateStandardAudioPath (LPDIRECTMUSICPERFORMANCE8 iface
, DWORD dwType
, DWORD dwPChannelCount
, BOOL fActivate
, IDirectMusicAudioPath
** ppNewPath
);
285 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_SetDefaultAudioPath (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusicAudioPath
* pAudioPath
);
286 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetDefaultAudioPath (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusicAudioPath
** ppAudioPath
);
287 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetParamEx (LPDIRECTMUSICPERFORMANCE8 iface
, REFGUID rguidType
, DWORD dwTrackID
, DWORD dwGroupBits
, DWORD dwIndex
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
289 /*****************************************************************************
290 * IDirectMusicSegment8Impl implementation structure
292 struct IDirectMusicSegment8Impl
{
293 /* IUnknown fields */
294 IUnknownVtbl
*UnknownVtbl
;
295 IDirectMusicSegment8Vtbl
*SegmentVtbl
;
296 IDirectMusicObjectVtbl
*ObjectVtbl
;
297 IPersistStreamVtbl
*PersistStreamVtbl
;
300 /* IDirectMusicSegment8Impl fields */
301 LPDMUS_OBJECTDESC pDesc
;
302 DMUS_IO_SEGMENT_HEADER header
;
303 IDirectMusicGraph
* pGraph
;
308 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
309 extern ULONG WINAPI
IDirectMusicSegment8Impl_IUnknown_AddRef (LPUNKNOWN iface
);
310 extern ULONG WINAPI
IDirectMusicSegment8Impl_IUnknown_Release (LPUNKNOWN iface
);
311 /* IDirectMusicSegment(8): */
312 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_QueryInterface (LPDIRECTMUSICSEGMENT8 iface
, REFIID riid
, LPVOID
*ppobj
);
313 extern ULONG WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_AddRef (LPDIRECTMUSICSEGMENT8 iface
);
314 extern ULONG WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_Release (LPDIRECTMUSICSEGMENT8 iface
);
315 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_GetLength (LPDIRECTMUSICSEGMENT8 iface
, MUSIC_TIME
* pmtLength
);
316 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_SetLength (LPDIRECTMUSICSEGMENT8 iface
, MUSIC_TIME mtLength
);
317 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_GetRepeats (LPDIRECTMUSICSEGMENT8 iface
, DWORD
* pdwRepeats
);
318 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_SetRepeats (LPDIRECTMUSICSEGMENT8 iface
, DWORD dwRepeats
);
319 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_GetDefaultResolution (LPDIRECTMUSICSEGMENT8 iface
, DWORD
* pdwResolution
);
320 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_SetDefaultResolution (LPDIRECTMUSICSEGMENT8 iface
, DWORD dwResolution
);
321 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_GetTrack (LPDIRECTMUSICSEGMENT8 iface
, REFGUID rguidType
, DWORD dwGroupBits
, DWORD dwIndex
, IDirectMusicTrack
** ppTrack
);
322 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_GetTrackGroup (LPDIRECTMUSICSEGMENT8 iface
, IDirectMusicTrack
* pTrack
, DWORD
* pdwGroupBits
);
323 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_InsertTrack (LPDIRECTMUSICSEGMENT8 iface
, IDirectMusicTrack
* pTrack
, DWORD dwGroupBits
);
324 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_RemoveTrack (LPDIRECTMUSICSEGMENT8 iface
, IDirectMusicTrack
* pTrack
);
325 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_InitPlay (LPDIRECTMUSICSEGMENT8 iface
, IDirectMusicSegmentState
** ppSegState
, IDirectMusicPerformance
* pPerformance
, DWORD dwFlags
);
326 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_GetGraph (LPDIRECTMUSICSEGMENT8 iface
, IDirectMusicGraph
** ppGraph
);
327 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_SetGraph (LPDIRECTMUSICSEGMENT8 iface
, IDirectMusicGraph
* pGraph
);
328 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_AddNotificationType (LPDIRECTMUSICSEGMENT8 iface
, REFGUID rguidNotificationType
);
329 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_RemoveNotificationType (LPDIRECTMUSICSEGMENT8 iface
, REFGUID rguidNotificationType
);
330 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_GetParam (LPDIRECTMUSICSEGMENT8 iface
, REFGUID rguidType
, DWORD dwGroupBits
, DWORD dwIndex
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
331 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_SetParam (LPDIRECTMUSICSEGMENT8 iface
, REFGUID rguidType
, DWORD dwGroupBits
, DWORD dwIndex
, MUSIC_TIME mtTime
, void* pParam
);
332 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_Clone (LPDIRECTMUSICSEGMENT8 iface
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, IDirectMusicSegment
** ppSegment
);
333 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_SetStartPoint (LPDIRECTMUSICSEGMENT8 iface
, MUSIC_TIME mtStart
);
334 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_GetStartPoint (LPDIRECTMUSICSEGMENT8 iface
, MUSIC_TIME
* pmtStart
);
335 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_SetLoopPoints (LPDIRECTMUSICSEGMENT8 iface
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
);
336 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_GetLoopPoints (LPDIRECTMUSICSEGMENT8 iface
, MUSIC_TIME
* pmtStart
, MUSIC_TIME
* pmtEnd
);
337 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_SetPChannelsUsed (LPDIRECTMUSICSEGMENT8 iface
, DWORD dwNumPChannels
, DWORD
* paPChannels
);
338 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_SetTrackConfig (LPDIRECTMUSICSEGMENT8 iface
, REFGUID rguidTrackClassID
, DWORD dwGroupBits
, DWORD dwIndex
, DWORD dwFlagsOn
, DWORD dwFlagsOff
);
339 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_GetAudioPathConfig (LPDIRECTMUSICSEGMENT8 iface
, IUnknown
** ppAudioPathConfig
);
340 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_Compose (LPDIRECTMUSICSEGMENT8 iface
, MUSIC_TIME mtTime
, IDirectMusicSegment
* pFromSegment
, IDirectMusicSegment
* pToSegment
, IDirectMusicSegment
** ppComposedSegment
);
341 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_Download (LPDIRECTMUSICSEGMENT8 iface
, IUnknown
*pAudioPath
);
342 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_Unload (LPDIRECTMUSICSEGMENT8 iface
, IUnknown
*pAudioPath
);
343 /* IDirectMusicObject: */
344 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicObject_QueryInterface (LPDIRECTMUSICOBJECT iface
, REFIID riid
, LPVOID
*ppobj
);
345 extern ULONG WINAPI
IDirectMusicSegment8Impl_IDirectMusicObject_AddRef (LPDIRECTMUSICOBJECT iface
);
346 extern ULONG WINAPI
IDirectMusicSegment8Impl_IDirectMusicObject_Release (LPDIRECTMUSICOBJECT iface
);
347 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicObject_GetDescriptor (LPDIRECTMUSICOBJECT iface
, LPDMUS_OBJECTDESC pDesc
);
348 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicObject_SetDescriptor (LPDIRECTMUSICOBJECT iface
, LPDMUS_OBJECTDESC pDesc
);
349 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicObject_ParseDescriptor (LPDIRECTMUSICOBJECT iface
, LPSTREAM pStream
, LPDMUS_OBJECTDESC pDesc
);
350 /* IPersistStream: */
351 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
352 extern ULONG WINAPI
IDirectMusicSegment8Impl_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
353 extern ULONG WINAPI
IDirectMusicSegment8Impl_IPersistStream_Release (LPPERSISTSTREAM iface
);
354 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
355 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
356 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
357 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
358 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
360 /*****************************************************************************
361 * IDirectMusicSegmentState8Impl implementation structure
363 struct IDirectMusicSegmentState8Impl
{
364 /* IUnknown fields */
365 IDirectMusicSegmentState8Vtbl
*lpVtbl
;
368 /* IDirectMusicSegmentState8Impl fields */
372 extern HRESULT WINAPI
IDirectMusicSegmentState8Impl_QueryInterface (LPDIRECTMUSICSEGMENTSTATE8 iface
, REFIID riid
, LPVOID
*ppobj
);
373 extern ULONG WINAPI
IDirectMusicSegmentState8Impl_AddRef (LPDIRECTMUSICSEGMENTSTATE8 iface
);
374 extern ULONG WINAPI
IDirectMusicSegmentState8Impl_Release (LPDIRECTMUSICSEGMENTSTATE8 iface
);
375 /* IDirectMusicSegmentState(8): */
376 extern HRESULT WINAPI
IDirectMusicSegmentState8Impl_GetRepeats (LPDIRECTMUSICSEGMENTSTATE8 iface
, DWORD
* pdwRepeats
);
377 extern HRESULT WINAPI
IDirectMusicSegmentState8Impl_GetSegment (LPDIRECTMUSICSEGMENTSTATE8 iface
, IDirectMusicSegment
** ppSegment
);
378 extern HRESULT WINAPI
IDirectMusicSegmentState8Impl_GetStartTime (LPDIRECTMUSICSEGMENTSTATE8 iface
, MUSIC_TIME
* pmtStart
);
379 extern HRESULT WINAPI
IDirectMusicSegmentState8Impl_GetSeek (LPDIRECTMUSICSEGMENTSTATE8 iface
, MUSIC_TIME
* pmtSeek
);
380 extern HRESULT WINAPI
IDirectMusicSegmentState8Impl_GetStartPoint (LPDIRECTMUSICSEGMENTSTATE8 iface
, MUSIC_TIME
* pmtStart
);
381 extern HRESULT WINAPI
IDirectMusicSegmentState8Impl_SetTrackConfig (LPDIRECTMUSICSEGMENTSTATE8 iface
, REFGUID rguidTrackClassID
, DWORD dwGroupBits
, DWORD dwIndex
, DWORD dwFlagsOn
, DWORD dwFlagsOff
);
382 extern HRESULT WINAPI
IDirectMusicSegmentState8Impl_GetObjectInPath (LPDIRECTMUSICSEGMENTSTATE8 iface
, DWORD dwPChannel
, DWORD dwStage
, DWORD dwBuffer
, REFGUID guidObject
, DWORD dwIndex
, REFGUID iidInterface
, void** ppObject
);
384 /*****************************************************************************
385 * IDirectMusicGraphImpl implementation structure
387 struct IDirectMusicGraphImpl
{
388 /* IUnknown fields */
389 IUnknownVtbl
*UnknownVtbl
;
390 IDirectMusicGraphVtbl
*GraphVtbl
;
391 IDirectMusicObjectVtbl
*ObjectVtbl
;
392 IPersistStreamVtbl
*PersistStreamVtbl
;
395 /* IDirectMusicGraphImpl fields */
396 LPDMUS_OBJECTDESC pDesc
;
402 extern HRESULT WINAPI
IDirectMusicGraphImpl_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
403 extern ULONG WINAPI
IDirectMusicGraphImpl_IUnknown_AddRef (LPUNKNOWN iface
);
404 extern ULONG WINAPI
IDirectMusicGraphImpl_IUnknown_Release (LPUNKNOWN iface
);
405 /* IDirectMusicGraph: */
406 extern HRESULT WINAPI
IDirectMusicGraphImpl_IDirectMusicGraph_QueryInterface (LPDIRECTMUSICGRAPH iface
, REFIID riid
, LPVOID
*ppobj
);
407 extern ULONG WINAPI
IDirectMusicGraphImpl_IDirectMusicGraph_AddRef (LPDIRECTMUSICGRAPH iface
);
408 extern ULONG WINAPI
IDirectMusicGraphImpl_IDirectMusicGraph_Release (LPDIRECTMUSICGRAPH iface
);extern HRESULT WINAPI
IDirectMusicGraphImpl_StampPMsg (LPDIRECTMUSICGRAPH iface
, DMUS_PMSG
* pPMSG
);
409 extern HRESULT WINAPI
IDirectMusicGraphImpl_IDirectMusicGraph_InsertTool (LPDIRECTMUSICGRAPH iface
, IDirectMusicTool
* pTool
, DWORD
* pdwPChannels
, DWORD cPChannels
, LONG lIndex
);
410 extern HRESULT WINAPI
IDirectMusicGraphImpl_IDirectMusicGraph_GetTool (LPDIRECTMUSICGRAPH iface
, DWORD dwIndex
, IDirectMusicTool
** ppTool
);
411 extern HRESULT WINAPI
IDirectMusicGraphImpl_IDirectMusicGraph_RemoveTool (LPDIRECTMUSICGRAPH iface
, IDirectMusicTool
* pTool
);
412 /* IDirectMusicObject: */
413 extern HRESULT WINAPI
IDirectMusicGraphImpl_IDirectMusicObject_QueryInterface (LPDIRECTMUSICOBJECT iface
, REFIID riid
, LPVOID
*ppobj
);
414 extern ULONG WINAPI
IDirectMusicGraphImpl_IDirectMusicObject_AddRef (LPDIRECTMUSICOBJECT iface
);
415 extern ULONG WINAPI
IDirectMusicGraphImpl_IDirectMusicObject_Release (LPDIRECTMUSICOBJECT iface
);
416 extern HRESULT WINAPI
IDirectMusicGraphImpl_IDirectMusicObject_GetDescriptor (LPDIRECTMUSICOBJECT iface
, LPDMUS_OBJECTDESC pDesc
);
417 extern HRESULT WINAPI
IDirectMusicGraphImpl_IDirectMusicObject_SetDescriptor (LPDIRECTMUSICOBJECT iface
, LPDMUS_OBJECTDESC pDesc
);
418 extern HRESULT WINAPI
IDirectMusicGraphImpl_IDirectMusicObject_ParseDescriptor (LPDIRECTMUSICOBJECT iface
, LPSTREAM pStream
, LPDMUS_OBJECTDESC pDesc
);
419 /* IPersistStream: */
420 extern HRESULT WINAPI
IDirectMusicGraphImpl_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
421 extern ULONG WINAPI
IDirectMusicGraphImpl_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
422 extern ULONG WINAPI
IDirectMusicGraphImpl_IPersistStream_Release (LPPERSISTSTREAM iface
);
423 extern HRESULT WINAPI
IDirectMusicGraphImpl_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
424 extern HRESULT WINAPI
IDirectMusicGraphImpl_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
425 extern HRESULT WINAPI
IDirectMusicGraphImpl_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
426 extern HRESULT WINAPI
IDirectMusicGraphImpl_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
427 extern HRESULT WINAPI
IDirectMusicGraphImpl_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
429 /*****************************************************************************
430 * IDirectMusicAudioPathImpl implementation structure
432 struct IDirectMusicAudioPathImpl
{
433 /* IUnknown fields */
434 IUnknownVtbl
*UnknownVtbl
;
435 IDirectMusicAudioPathVtbl
*AudioPathVtbl
;
436 IDirectMusicObjectVtbl
*ObjectVtbl
;
437 IPersistStreamVtbl
*PersistStreamVtbl
;
440 /* IDirectMusicAudioPathImpl fields */
441 LPDMUS_OBJECTDESC pDesc
;
443 IDirectMusicPerformance8
* pPerf
;
444 IDirectMusicGraph
* pToolGraph
;
445 IDirectSoundBuffer
* pDSBuffer
;
446 IDirectSoundBuffer
* pPrimary
;
452 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
453 extern ULONG WINAPI
IDirectMusicAudioPathImpl_IUnknown_AddRef (LPUNKNOWN iface
);
454 extern ULONG WINAPI
IDirectMusicAudioPathImpl_IUnknown_Release (LPUNKNOWN iface
);
455 /* IDirectMusicAudioPath: */
456 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IDirectMusicAudioPath_QueryInterface (LPDIRECTMUSICAUDIOPATH iface
, REFIID riid
, LPVOID
*ppobj
);
457 extern ULONG WINAPI
IDirectMusicAudioPathImpl_IDirectMusicAudioPath_AddRef (LPDIRECTMUSICAUDIOPATH iface
);
458 extern ULONG WINAPI
IDirectMusicAudioPathImpl_IDirectMusicAudioPath_Release (LPDIRECTMUSICAUDIOPATH iface
);
459 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IDirectMusicAudioPath_GetObjectInPath (LPDIRECTMUSICAUDIOPATH iface
, DWORD dwPChannel
, DWORD dwStage
, DWORD dwBuffer
, REFGUID guidObject
, WORD dwIndex
, REFGUID iidInterface
, void** ppObject
);
460 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IDirectMusicAudioPath_Activate (LPDIRECTMUSICAUDIOPATH iface
, BOOL fActivate
);
461 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IDirectMusicAudioPath_SetVolume (LPDIRECTMUSICAUDIOPATH iface
, long lVolume
, DWORD dwDuration
);
462 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IDirectMusicAudioPath_ConvertPChannel (LPDIRECTMUSICAUDIOPATH iface
, DWORD dwPChannelIn
, DWORD
* pdwPChannelOut
);
463 /* IDirectMusicObject: */
464 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IDirectMusicObject_QueryInterface (LPDIRECTMUSICOBJECT iface
, REFIID riid
, LPVOID
*ppobj
);
465 extern ULONG WINAPI
IDirectMusicAudioPathImpl_IDirectMusicObject_AddRef (LPDIRECTMUSICOBJECT iface
);
466 extern ULONG WINAPI
IDirectMusicAudioPathImpl_IDirectMusicObject_Release (LPDIRECTMUSICOBJECT iface
);
467 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IDirectMusicObject_GetDescriptor (LPDIRECTMUSICOBJECT iface
, LPDMUS_OBJECTDESC pDesc
);
468 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IDirectMusicObject_SetDescriptor (LPDIRECTMUSICOBJECT iface
, LPDMUS_OBJECTDESC pDesc
);
469 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IDirectMusicObject_ParseDescriptor (LPDIRECTMUSICOBJECT iface
, LPSTREAM pStream
, LPDMUS_OBJECTDESC pDesc
);
470 /* IPersistStream: */
471 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
472 extern ULONG WINAPI
IDirectMusicAudioPathImpl_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
473 extern ULONG WINAPI
IDirectMusicAudioPathImpl_IPersistStream_Release (LPPERSISTSTREAM iface
);
474 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
475 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
476 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
477 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
478 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
480 /*****************************************************************************
481 * IDirectMusicTool8Impl implementation structure
483 struct IDirectMusicTool8Impl
{
484 /* IUnknown fields */
485 IDirectMusicTool8Vtbl
*lpVtbl
;
488 /* IDirectMusicTool8Impl fields */
492 extern HRESULT WINAPI
IDirectMusicTool8Impl_QueryInterface (LPDIRECTMUSICTOOL8 iface
, REFIID riid
, LPVOID
*ppobj
);
493 extern ULONG WINAPI
IDirectMusicTool8Impl_AddRef (LPDIRECTMUSICTOOL8 iface
);
494 extern ULONG WINAPI
IDirectMusicTool8Impl_Release (LPDIRECTMUSICTOOL8 iface
);
495 /* IDirectMusicTool(8): */
496 extern HRESULT WINAPI
IDirectMusicTool8Impl_Init (LPDIRECTMUSICTOOL8 iface
, IDirectMusicGraph
* pGraph
);
497 extern HRESULT WINAPI
IDirectMusicTool8Impl_GetMsgDeliveryType (LPDIRECTMUSICTOOL8 iface
, DWORD
* pdwDeliveryType
);
498 extern HRESULT WINAPI
IDirectMusicTool8Impl_GetMediaTypeArraySize (LPDIRECTMUSICTOOL8 iface
, DWORD
* pdwNumElements
);
499 extern HRESULT WINAPI
IDirectMusicTool8Impl_GetMediaTypes (LPDIRECTMUSICTOOL8 iface
, DWORD
** padwMediaTypes
, DWORD dwNumElements
);
500 extern HRESULT WINAPI
IDirectMusicTool8Impl_ProcessPMsg (LPDIRECTMUSICTOOL8 iface
, IDirectMusicPerformance
* pPerf
, DMUS_PMSG
* pPMSG
);
501 extern HRESULT WINAPI
IDirectMusicTool8Impl_Flush (LPDIRECTMUSICTOOL8 iface
, IDirectMusicPerformance
* pPerf
, DMUS_PMSG
* pPMSG
, REFERENCE_TIME rtTime
);
502 extern HRESULT WINAPI
IDirectMusicTool8Impl_Clone (LPDIRECTMUSICTOOL8 iface
, IDirectMusicTool
** ppTool
);
504 /*****************************************************************************
505 * IDirectMusicPatternTrackImpl implementation structure
507 struct IDirectMusicPatternTrackImpl
{
508 /* IUnknown fields */
509 IDirectMusicPatternTrackVtbl
*lpVtbl
;
512 /* IDirectMusicPatternTrackImpl fields */
516 extern HRESULT WINAPI
IDirectMusicPatternTrackImpl_QueryInterface (LPDIRECTMUSICPATTERNTRACK iface
, REFIID riid
, LPVOID
*ppobj
);
517 extern ULONG WINAPI
IDirectMusicPatternTrackImpl_AddRef (LPDIRECTMUSICPATTERNTRACK iface
);
518 extern ULONG WINAPI
IDirectMusicPatternTrackImpl_Release (LPDIRECTMUSICPATTERNTRACK iface
);
519 /* IDirectMusicPatternTrack: */
520 extern HRESULT WINAPI
IDirectMusicPatternTrackImpl_CreateSegment (LPDIRECTMUSICPATTERNTRACK iface
, IDirectMusicStyle
* pStyle
, IDirectMusicSegment
** ppSegment
);
521 extern HRESULT WINAPI
IDirectMusicPatternTrackImpl_SetVariation (LPDIRECTMUSICPATTERNTRACK iface
, IDirectMusicSegmentState
* pSegState
, DWORD dwVariationFlags
, DWORD dwPart
);
522 extern HRESULT WINAPI
IDirectMusicPatternTrackImpl_SetPatternByName (LPDIRECTMUSICPATTERNTRACK iface
, IDirectMusicSegmentState
* pSegState
, WCHAR
* wszName
, IDirectMusicStyle
* pStyle
, DWORD dwPatternType
, DWORD
* pdwLength
);
524 /*****************************************************************************
525 * IDirectMusicLyricsTrack implementation structure
527 struct IDirectMusicLyricsTrack
529 /* IUnknown fields */
530 IUnknownVtbl
*UnknownVtbl
;
531 IDirectMusicTrack8Vtbl
*TrackVtbl
;
532 IPersistStreamVtbl
*PersistStreamVtbl
;
535 /* IDirectMusicLyricsTrack fields */
536 LPDMUS_OBJECTDESC pDesc
;
540 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
541 extern ULONG WINAPI
IDirectMusicLyricsTrack_IUnknown_AddRef (LPUNKNOWN iface
);
542 extern ULONG WINAPI
IDirectMusicLyricsTrack_IUnknown_Release (LPUNKNOWN iface
);
543 /* IDirectMusicTrack(8): */
544 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_QueryInterface (LPDIRECTMUSICTRACK8 iface
, REFIID riid
, LPVOID
*ppobj
);
545 extern ULONG WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_AddRef (LPDIRECTMUSICTRACK8 iface
);
546 extern ULONG WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_Release (LPDIRECTMUSICTRACK8 iface
);
547 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_Init (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegment
* pSegment
);
548 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_InitPlay (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegmentState
* pSegmentState
, IDirectMusicPerformance
* pPerformance
, void** ppStateData
, DWORD dwVirtualTrackID
, DWORD dwFlags
);
549 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_EndPlay (LPDIRECTMUSICTRACK8 iface
, void* pStateData
);
550 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_Play (LPDIRECTMUSICTRACK8 iface
, void* pStateData
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, MUSIC_TIME mtOffset
, DWORD dwFlags
, IDirectMusicPerformance
* pPerf
, IDirectMusicSegmentState
* pSegSt
, DWORD dwVirtualID
);
551 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_GetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
552 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_SetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, void* pParam
);
553 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_IsParamSupported (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
);
554 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_AddNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
555 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_RemoveNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
556 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_Clone (LPDIRECTMUSICTRACK8 iface
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, IDirectMusicTrack
** ppTrack
);
557 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_PlayEx (LPDIRECTMUSICTRACK8 iface
, void* pStateData
, REFERENCE_TIME rtStart
, REFERENCE_TIME rtEnd
, REFERENCE_TIME rtOffset
, DWORD dwFlags
, IDirectMusicPerformance
* pPerf
, IDirectMusicSegmentState
* pSegSt
, DWORD dwVirtualID
);
558 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_GetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, REFERENCE_TIME
* prtNext
, void* pParam
, void* pStateData
, DWORD dwFlags
);
559 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_SetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, void* pParam
, void* pStateData
, DWORD dwFlags
);
560 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_Compose (LPDIRECTMUSICTRACK8 iface
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
561 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_Join (LPDIRECTMUSICTRACK8 iface
, IDirectMusicTrack
* pNewTrack
, MUSIC_TIME mtJoin
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
562 /* IPersistStream: */
563 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
564 extern ULONG WINAPI
IDirectMusicLyricsTrack_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
565 extern ULONG WINAPI
IDirectMusicLyricsTrack_IPersistStream_Release (LPPERSISTSTREAM iface
);
566 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
567 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
568 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
569 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
570 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
572 /*****************************************************************************
573 * IDirectMusicMarkerTrack implementation structure
575 struct IDirectMusicMarkerTrack
{
576 /* IUnknown fields */
577 IUnknownVtbl
*UnknownVtbl
;
578 IDirectMusicTrack8Vtbl
*TrackVtbl
;
579 IPersistStreamVtbl
*PersistStreamVtbl
;
582 /* IDirectMusicMarkerTrack fields */
583 LPDMUS_OBJECTDESC pDesc
;
587 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
588 extern ULONG WINAPI
IDirectMusicMarkerTrack_IUnknown_AddRef (LPUNKNOWN iface
);
589 extern ULONG WINAPI
IDirectMusicMarkerTrack_IUnknown_Release (LPUNKNOWN iface
);
590 /* IDirectMusicTrack(8): */
591 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_QueryInterface (LPDIRECTMUSICTRACK8 iface
, REFIID riid
, LPVOID
*ppobj
);
592 extern ULONG WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_AddRef (LPDIRECTMUSICTRACK8 iface
);
593 extern ULONG WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_Release (LPDIRECTMUSICTRACK8 iface
);
594 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_Init (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegment
* pSegment
);
595 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_InitPlay (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegmentState
* pSegmentState
, IDirectMusicPerformance
* pPerformance
, void** ppStateData
, DWORD dwVirtualTrackID
, DWORD dwFlags
);
596 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_EndPlay (LPDIRECTMUSICTRACK8 iface
, void* pStateData
);
597 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_Play (LPDIRECTMUSICTRACK8 iface
, void* pStateData
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, MUSIC_TIME mtOffset
, DWORD dwFlags
, IDirectMusicPerformance
* pPerf
, IDirectMusicSegmentState
* pSegSt
, DWORD dwVirtualID
);
598 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_GetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
599 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_SetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, void* pParam
);
600 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_IsParamSupported (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
);
601 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_AddNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
602 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_RemoveNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
603 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_Clone (LPDIRECTMUSICTRACK8 iface
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, IDirectMusicTrack
** ppTrack
);
604 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_PlayEx (LPDIRECTMUSICTRACK8 iface
, void* pStateData
, REFERENCE_TIME rtStart
, REFERENCE_TIME rtEnd
, REFERENCE_TIME rtOffset
, DWORD dwFlags
, IDirectMusicPerformance
* pPerf
, IDirectMusicSegmentState
* pSegSt
, DWORD dwVirtualID
);
605 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_GetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, REFERENCE_TIME
* prtNext
, void* pParam
, void* pStateData
, DWORD dwFlags
);
606 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_SetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, void* pParam
, void* pStateData
, DWORD dwFlags
);
607 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_Compose (LPDIRECTMUSICTRACK8 iface
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
608 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_Join (LPDIRECTMUSICTRACK8 iface
, IDirectMusicTrack
* pNewTrack
, MUSIC_TIME mtJoin
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
609 /* IPersistStream: */
610 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
611 extern ULONG WINAPI
IDirectMusicMarkerTrack_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
612 extern ULONG WINAPI
IDirectMusicMarkerTrack_IPersistStream_Release (LPPERSISTSTREAM iface
);
613 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
614 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
615 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
616 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
617 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
619 /*****************************************************************************
620 * IDirectMusicParamControlTrack implementation structure
622 struct IDirectMusicParamControlTrack
{
623 /* IUnknown fields */
624 IUnknownVtbl
*UnknownVtbl
;
625 IDirectMusicTrack8Vtbl
*TrackVtbl
;
626 IPersistStreamVtbl
*PersistStreamVtbl
;
629 /* IDirectMusicParamControlTrack fields */
630 LPDMUS_OBJECTDESC pDesc
;
634 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
635 extern ULONG WINAPI
IDirectMusicParamControlTrack_IUnknown_AddRef (LPUNKNOWN iface
);
636 extern ULONG WINAPI
IDirectMusicParamControlTrack_IUnknown_Release (LPUNKNOWN iface
);
637 /* IDirectMusicTrack(8): */
638 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_QueryInterface (LPDIRECTMUSICTRACK8 iface
, REFIID riid
, LPVOID
*ppobj
);
639 extern ULONG WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_AddRef (LPDIRECTMUSICTRACK8 iface
);
640 extern ULONG WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_Release (LPDIRECTMUSICTRACK8 iface
);
641 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_Init (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegment
* pSegment
);
642 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_InitPlay (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegmentState
* pSegmentState
, IDirectMusicPerformance
* pPerformance
, void** ppStateData
, DWORD dwVirtualTrackID
, DWORD dwFlags
);
643 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_EndPlay (LPDIRECTMUSICTRACK8 iface
, void* pStateData
);
644 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_Play (LPDIRECTMUSICTRACK8 iface
, void* pStateData
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, MUSIC_TIME mtOffset
, DWORD dwFlags
, IDirectMusicPerformance
* pPerf
, IDirectMusicSegmentState
* pSegSt
, DWORD dwVirtualID
);
645 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_GetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
646 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_SetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, void* pParam
);
647 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_IsParamSupported (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
);
648 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_AddNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
649 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_RemoveNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
650 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_Clone (LPDIRECTMUSICTRACK8 iface
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, IDirectMusicTrack
** ppTrack
);
651 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_PlayEx (LPDIRECTMUSICTRACK8 iface
, void* pStateData
, REFERENCE_TIME rtStart
, REFERENCE_TIME rtEnd
, REFERENCE_TIME rtOffset
, DWORD dwFlags
, IDirectMusicPerformance
* pPerf
, IDirectMusicSegmentState
* pSegSt
, DWORD dwVirtualID
);
652 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_GetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, REFERENCE_TIME
* prtNext
, void* pParam
, void* pStateData
, DWORD dwFlags
);
653 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_SetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, void* pParam
, void* pStateData
, DWORD dwFlags
);
654 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_Compose (LPDIRECTMUSICTRACK8 iface
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
655 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_Join (LPDIRECTMUSICTRACK8 iface
, IDirectMusicTrack
* pNewTrack
, MUSIC_TIME mtJoin
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
656 /* IPersistStream: */
657 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
658 extern ULONG WINAPI
IDirectMusicParamControlTrack_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
659 extern ULONG WINAPI
IDirectMusicParamControlTrack_IPersistStream_Release (LPPERSISTSTREAM iface
);
660 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
661 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
662 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
663 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
664 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
666 /*****************************************************************************
667 * IDirectMusicSegTriggerTrack implementation structure
669 struct IDirectMusicSegTriggerTrack
{
670 /* IUnknown fields */
671 IUnknownVtbl
*UnknownVtbl
;
672 IDirectMusicTrack8Vtbl
*TrackVtbl
;
673 IPersistStreamVtbl
*PersistStreamVtbl
;
676 /* IDirectMusicSegTriggerTrack fields */
677 LPDMUS_OBJECTDESC pDesc
;
683 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
684 extern ULONG WINAPI
IDirectMusicSegTriggerTrack_IUnknown_AddRef (LPUNKNOWN iface
);
685 extern ULONG WINAPI
IDirectMusicSegTriggerTrack_IUnknown_Release (LPUNKNOWN iface
);
686 /* IDirectMusicTrack(8): */
687 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_QueryInterface (LPDIRECTMUSICTRACK8 iface
, REFIID riid
, LPVOID
*ppobj
);
688 extern ULONG WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_AddRef (LPDIRECTMUSICTRACK8 iface
);
689 extern ULONG WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_Release (LPDIRECTMUSICTRACK8 iface
);
690 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_Init (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegment
* pSegment
);
691 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_InitPlay (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegmentState
* pSegmentState
, IDirectMusicPerformance
* pPerformance
, void** ppStateData
, DWORD dwVirtualTrackID
, DWORD dwFlags
);
692 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_EndPlay (LPDIRECTMUSICTRACK8 iface
, void* pStateData
);
693 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_Play (LPDIRECTMUSICTRACK8 iface
, void* pStateData
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, MUSIC_TIME mtOffset
, DWORD dwFlags
, IDirectMusicPerformance
* pPerf
, IDirectMusicSegmentState
* pSegSt
, DWORD dwVirtualID
);
694 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_GetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
695 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_SetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, void* pParam
);
696 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_IsParamSupported (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
);
697 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_AddNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
698 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_RemoveNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
699 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_Clone (LPDIRECTMUSICTRACK8 iface
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, IDirectMusicTrack
** ppTrack
);
700 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_PlayEx (LPDIRECTMUSICTRACK8 iface
, void* pStateData
, REFERENCE_TIME rtStart
, REFERENCE_TIME rtEnd
, REFERENCE_TIME rtOffset
, DWORD dwFlags
, IDirectMusicPerformance
* pPerf
, IDirectMusicSegmentState
* pSegSt
, DWORD dwVirtualID
);
701 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_GetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, REFERENCE_TIME
* prtNext
, void* pParam
, void* pStateData
, DWORD dwFlags
);
702 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_SetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, void* pParam
, void* pStateData
, DWORD dwFlags
);
703 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_Compose (LPDIRECTMUSICTRACK8 iface
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
704 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_Join (LPDIRECTMUSICTRACK8 iface
, IDirectMusicTrack
* pNewTrack
, MUSIC_TIME mtJoin
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
705 /* IPersistStream: */
706 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
707 extern ULONG WINAPI
IDirectMusicSegTriggerTrack_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
708 extern ULONG WINAPI
IDirectMusicSegTriggerTrack_IPersistStream_Release (LPPERSISTSTREAM iface
);
709 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
710 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
711 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
712 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
713 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
715 /*****************************************************************************
716 * IDirectMusicSeqTrack implementation structure
718 struct IDirectMusicSeqTrack
{
719 /* IUnknown fields */
720 IUnknownVtbl
*UnknownVtbl
;
721 IDirectMusicTrack8Vtbl
*TrackVtbl
;
722 IPersistStreamVtbl
*PersistStreamVtbl
;
725 /* IDirectMusicSeqTrack fields */
726 LPDMUS_OBJECTDESC pDesc
;
730 extern HRESULT WINAPI
IDirectMusicSeqTrack_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
731 extern ULONG WINAPI
IDirectMusicSeqTrack_IUnknown_AddRef (LPUNKNOWN iface
);
732 extern ULONG WINAPI
IDirectMusicSeqTrack_IUnknown_Release (LPUNKNOWN iface
);
733 /* IDirectMusicTrack(8): */
734 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_QueryInterface (LPDIRECTMUSICTRACK8 iface
, REFIID riid
, LPVOID
*ppobj
);
735 extern ULONG WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_AddRef (LPDIRECTMUSICTRACK8 iface
);
736 extern ULONG WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_Release (LPDIRECTMUSICTRACK8 iface
);
737 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_Init (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegment
* pSegment
);
738 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_InitPlay (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegmentState
* pSegmentState
, IDirectMusicPerformance
* pPerformance
, void** ppStateData
, DWORD dwVirtualTrackID
, DWORD dwFlags
);
739 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_EndPlay (LPDIRECTMUSICTRACK8 iface
, void* pStateData
);
740 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_Play (LPDIRECTMUSICTRACK8 iface
, void* pStateData
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, MUSIC_TIME mtOffset
, DWORD dwFlags
, IDirectMusicPerformance
* pPerf
, IDirectMusicSegmentState
* pSegSt
, DWORD dwVirtualID
);
741 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_GetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
742 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_SetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, void* pParam
);
743 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_IsParamSupported (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
);
744 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_AddNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
745 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_RemoveNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
746 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_Clone (LPDIRECTMUSICTRACK8 iface
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, IDirectMusicTrack
** ppTrack
);
747 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_PlayEx (LPDIRECTMUSICTRACK8 iface
, void* pStateData
, REFERENCE_TIME rtStart
, REFERENCE_TIME rtEnd
, REFERENCE_TIME rtOffset
, DWORD dwFlags
, IDirectMusicPerformance
* pPerf
, IDirectMusicSegmentState
* pSegSt
, DWORD dwVirtualID
);
748 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_GetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, REFERENCE_TIME
* prtNext
, void* pParam
, void* pStateData
, DWORD dwFlags
);
749 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_SetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, void* pParam
, void* pStateData
, DWORD dwFlags
);
750 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_Compose (LPDIRECTMUSICTRACK8 iface
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
751 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_Join (LPDIRECTMUSICTRACK8 iface
, IDirectMusicTrack
* pNewTrack
, MUSIC_TIME mtJoin
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
752 /* IPersistStream: */
753 extern HRESULT WINAPI
IDirectMusicSeqTrack_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
754 extern ULONG WINAPI
IDirectMusicSeqTrack_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
755 extern ULONG WINAPI
IDirectMusicSeqTrack_IPersistStream_Release (LPPERSISTSTREAM iface
);
756 extern HRESULT WINAPI
IDirectMusicSeqTrack_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
757 extern HRESULT WINAPI
IDirectMusicSeqTrack_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
758 extern HRESULT WINAPI
IDirectMusicSeqTrack_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
759 extern HRESULT WINAPI
IDirectMusicSeqTrack_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
760 extern HRESULT WINAPI
IDirectMusicSeqTrack_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
762 /*****************************************************************************
763 * IDirectMusicSysExTrack implementation structure
765 struct IDirectMusicSysExTrack
{
766 /* IUnknown fields */
767 IUnknownVtbl
*UnknownVtbl
;
768 IDirectMusicTrack8Vtbl
*TrackVtbl
;
769 IPersistStreamVtbl
*PersistStreamVtbl
;
772 /* IDirectMusicSysExTrack fields */
773 LPDMUS_OBJECTDESC pDesc
;
777 extern HRESULT WINAPI
IDirectMusicSysExTrack_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
778 extern ULONG WINAPI
IDirectMusicSysExTrack_IUnknown_AddRef (LPUNKNOWN iface
);
779 extern ULONG WINAPI
IDirectMusicSysExTrack_IUnknown_Release (LPUNKNOWN iface
);
780 /* IDirectMusicTrack(8): */
781 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_QueryInterface (LPDIRECTMUSICTRACK8 iface
, REFIID riid
, LPVOID
*ppobj
);
782 extern ULONG WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_AddRef (LPDIRECTMUSICTRACK8 iface
);
783 extern ULONG WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_Release (LPDIRECTMUSICTRACK8 iface
);
784 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_Init (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegment
* pSegment
);
785 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_InitPlay (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegmentState
* pSegmentState
, IDirectMusicPerformance
* pPerformance
, void** ppStateData
, DWORD dwVirtualTrackID
, DWORD dwFlags
);
786 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_EndPlay (LPDIRECTMUSICTRACK8 iface
, void* pStateData
);
787 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_Play (LPDIRECTMUSICTRACK8 iface
, void* pStateData
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, MUSIC_TIME mtOffset
, DWORD dwFlags
, IDirectMusicPerformance
* pPerf
, IDirectMusicSegmentState
* pSegSt
, DWORD dwVirtualID
);
788 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_GetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
789 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_SetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, void* pParam
);
790 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_IsParamSupported (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
);
791 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_AddNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
792 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_RemoveNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
793 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_Clone (LPDIRECTMUSICTRACK8 iface
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, IDirectMusicTrack
** ppTrack
);
794 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_PlayEx (LPDIRECTMUSICTRACK8 iface
, void* pStateData
, REFERENCE_TIME rtStart
, REFERENCE_TIME rtEnd
, REFERENCE_TIME rtOffset
, DWORD dwFlags
, IDirectMusicPerformance
* pPerf
, IDirectMusicSegmentState
* pSegSt
, DWORD dwVirtualID
);
795 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_GetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, REFERENCE_TIME
* prtNext
, void* pParam
, void* pStateData
, DWORD dwFlags
);
796 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_SetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, void* pParam
, void* pStateData
, DWORD dwFlags
);
797 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_Compose (LPDIRECTMUSICTRACK8 iface
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
798 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_Join (LPDIRECTMUSICTRACK8 iface
, IDirectMusicTrack
* pNewTrack
, MUSIC_TIME mtJoin
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
799 /* IPersistStream: */
800 extern HRESULT WINAPI
IDirectMusicSysExTrack_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
801 extern ULONG WINAPI
IDirectMusicSysExTrack_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
802 extern ULONG WINAPI
IDirectMusicSysExTrack_IPersistStream_Release (LPPERSISTSTREAM iface
);
803 extern HRESULT WINAPI
IDirectMusicSysExTrack_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
804 extern HRESULT WINAPI
IDirectMusicSysExTrack_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
805 extern HRESULT WINAPI
IDirectMusicSysExTrack_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
806 extern HRESULT WINAPI
IDirectMusicSysExTrack_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
807 extern HRESULT WINAPI
IDirectMusicSysExTrack_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
809 /*****************************************************************************
810 * IDirectMusicTempoTrack implementation structure
812 struct IDirectMusicTempoTrack
{
813 /* IUnknown fields */
814 IUnknownVtbl
*UnknownVtbl
;
815 IDirectMusicTrack8Vtbl
*TrackVtbl
;
816 IPersistStreamVtbl
*PersistStreamVtbl
;
819 /* IDirectMusicTempoTrack fields */
820 LPDMUS_OBJECTDESC pDesc
;
826 extern HRESULT WINAPI
IDirectMusicTempoTrack_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
827 extern ULONG WINAPI
IDirectMusicTempoTrack_IUnknown_AddRef (LPUNKNOWN iface
);
828 extern ULONG WINAPI
IDirectMusicTempoTrack_IUnknown_Release (LPUNKNOWN iface
);
829 /* IDirectMusicTrack(8): */
830 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_QueryInterface (LPDIRECTMUSICTRACK8 iface
, REFIID riid
, LPVOID
*ppobj
);
831 extern ULONG WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_AddRef (LPDIRECTMUSICTRACK8 iface
);
832 extern ULONG WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_Release (LPDIRECTMUSICTRACK8 iface
);
833 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_Init (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegment
* pSegment
);
834 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_InitPlay (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegmentState
* pSegmentState
, IDirectMusicPerformance
* pPerformance
, void** ppStateData
, DWORD dwVirtualTrackID
, DWORD dwFlags
);
835 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_EndPlay (LPDIRECTMUSICTRACK8 iface
, void* pStateData
);
836 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_Play (LPDIRECTMUSICTRACK8 iface
, void* pStateData
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, MUSIC_TIME mtOffset
, DWORD dwFlags
, IDirectMusicPerformance
* pPerf
, IDirectMusicSegmentState
* pSegSt
, DWORD dwVirtualID
);
837 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_GetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
838 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_SetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, void* pParam
);
839 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_IsParamSupported (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
);
840 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_AddNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
841 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_RemoveNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
842 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_Clone (LPDIRECTMUSICTRACK8 iface
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, IDirectMusicTrack
** ppTrack
);
843 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_PlayEx (LPDIRECTMUSICTRACK8 iface
, void* pStateData
, REFERENCE_TIME rtStart
, REFERENCE_TIME rtEnd
, REFERENCE_TIME rtOffset
, DWORD dwFlags
, IDirectMusicPerformance
* pPerf
, IDirectMusicSegmentState
* pSegSt
, DWORD dwVirtualID
);
844 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_GetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, REFERENCE_TIME
* prtNext
, void* pParam
, void* pStateData
, DWORD dwFlags
);
845 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_SetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, void* pParam
, void* pStateData
, DWORD dwFlags
);
846 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_Compose (LPDIRECTMUSICTRACK8 iface
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
847 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_Join (LPDIRECTMUSICTRACK8 iface
, IDirectMusicTrack
* pNewTrack
, MUSIC_TIME mtJoin
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
848 /* IPersistStream: */
849 extern HRESULT WINAPI
IDirectMusicTempoTrack_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
850 extern ULONG WINAPI
IDirectMusicTempoTrack_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
851 extern ULONG WINAPI
IDirectMusicTempoTrack_IPersistStream_Release (LPPERSISTSTREAM iface
);
852 extern HRESULT WINAPI
IDirectMusicTempoTrack_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
853 extern HRESULT WINAPI
IDirectMusicTempoTrack_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
854 extern HRESULT WINAPI
IDirectMusicTempoTrack_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
855 extern HRESULT WINAPI
IDirectMusicTempoTrack_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
856 extern HRESULT WINAPI
IDirectMusicTempoTrack_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
858 /*****************************************************************************
859 * IDirectMusicTimeSigTrack implementation structure
861 struct IDirectMusicTimeSigTrack
{
862 /* IUnknown fields */
863 IUnknownVtbl
*UnknownVtbl
;
864 IDirectMusicTrack8Vtbl
*TrackVtbl
;
865 IPersistStreamVtbl
*PersistStreamVtbl
;
868 /* IDirectMusicTimeSigTrack fields */
869 LPDMUS_OBJECTDESC pDesc
;
873 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
874 extern ULONG WINAPI
IDirectMusicTimeSigTrack_IUnknown_AddRef (LPUNKNOWN iface
);
875 extern ULONG WINAPI
IDirectMusicTimeSigTrack_IUnknown_Release (LPUNKNOWN iface
);
876 /* IDirectMusicTrack(8): */
877 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_QueryInterface (LPDIRECTMUSICTRACK8 iface
, REFIID riid
, LPVOID
*ppobj
);
878 extern ULONG WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_AddRef (LPDIRECTMUSICTRACK8 iface
);
879 extern ULONG WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_Release (LPDIRECTMUSICTRACK8 iface
);
880 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_Init (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegment
* pSegment
);
881 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_InitPlay (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegmentState
* pSegmentState
, IDirectMusicPerformance
* pPerformance
, void** ppStateData
, DWORD dwVirtualTrackID
, DWORD dwFlags
);
882 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_EndPlay (LPDIRECTMUSICTRACK8 iface
, void* pStateData
);
883 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_Play (LPDIRECTMUSICTRACK8 iface
, void* pStateData
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, MUSIC_TIME mtOffset
, DWORD dwFlags
, IDirectMusicPerformance
* pPerf
, IDirectMusicSegmentState
* pSegSt
, DWORD dwVirtualID
);
884 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_GetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
885 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_SetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, void* pParam
);
886 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_IsParamSupported (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
);
887 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_AddNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
888 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_RemoveNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
889 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_Clone (LPDIRECTMUSICTRACK8 iface
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, IDirectMusicTrack
** ppTrack
);
890 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_PlayEx (LPDIRECTMUSICTRACK8 iface
, void* pStateData
, REFERENCE_TIME rtStart
, REFERENCE_TIME rtEnd
, REFERENCE_TIME rtOffset
, DWORD dwFlags
, IDirectMusicPerformance
* pPerf
, IDirectMusicSegmentState
* pSegSt
, DWORD dwVirtualID
);
891 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_GetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, REFERENCE_TIME
* prtNext
, void* pParam
, void* pStateData
, DWORD dwFlags
);
892 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_SetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, void* pParam
, void* pStateData
, DWORD dwFlags
);
893 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_Compose (LPDIRECTMUSICTRACK8 iface
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
894 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_Join (LPDIRECTMUSICTRACK8 iface
, IDirectMusicTrack
* pNewTrack
, MUSIC_TIME mtJoin
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
895 /* IPersistStream: */
896 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
897 extern ULONG WINAPI
IDirectMusicTimeSigTrack_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
898 extern ULONG WINAPI
IDirectMusicTimeSigTrack_IPersistStream_Release (LPPERSISTSTREAM iface
);
899 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
900 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
901 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
902 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
903 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
905 /*****************************************************************************
906 * IDirectMusicWaveTrack implementation structure
908 struct IDirectMusicWaveTrack
{
909 /* IUnknown fields */
910 IUnknownVtbl
*UnknownVtbl
;
911 IDirectMusicTrack8Vtbl
*TrackVtbl
;
912 IPersistStreamVtbl
*PersistStreamVtbl
;
915 /* IDirectMusicWaveTrack fields */
916 LPDMUS_OBJECTDESC pDesc
;
920 extern HRESULT WINAPI
IDirectMusicWaveTrack_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
921 extern ULONG WINAPI
IDirectMusicWaveTrack_IUnknown_AddRef (LPUNKNOWN iface
);
922 extern ULONG WINAPI
IDirectMusicWaveTrack_IUnknown_Release (LPUNKNOWN iface
);
923 /* IDirectMusicTrack(8): */
924 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_QueryInterface (LPDIRECTMUSICTRACK8 iface
, REFIID riid
, LPVOID
*ppobj
);
925 extern ULONG WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_AddRef (LPDIRECTMUSICTRACK8 iface
);
926 extern ULONG WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_Release (LPDIRECTMUSICTRACK8 iface
);
927 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_Init (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegment
* pSegment
);
928 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_InitPlay (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegmentState
* pSegmentState
, IDirectMusicPerformance
* pPerformance
, void** ppStateData
, DWORD dwVirtualTrackID
, DWORD dwFlags
);
929 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_EndPlay (LPDIRECTMUSICTRACK8 iface
, void* pStateData
);
930 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_Play (LPDIRECTMUSICTRACK8 iface
, void* pStateData
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, MUSIC_TIME mtOffset
, DWORD dwFlags
, IDirectMusicPerformance
* pPerf
, IDirectMusicSegmentState
* pSegSt
, DWORD dwVirtualID
);
931 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_GetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
932 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_SetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, void* pParam
);
933 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_IsParamSupported (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
);
934 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_AddNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
935 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_RemoveNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
936 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_Clone (LPDIRECTMUSICTRACK8 iface
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, IDirectMusicTrack
** ppTrack
);
937 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_PlayEx (LPDIRECTMUSICTRACK8 iface
, void* pStateData
, REFERENCE_TIME rtStart
, REFERENCE_TIME rtEnd
, REFERENCE_TIME rtOffset
, DWORD dwFlags
, IDirectMusicPerformance
* pPerf
, IDirectMusicSegmentState
* pSegSt
, DWORD dwVirtualID
);
938 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_GetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, REFERENCE_TIME
* prtNext
, void* pParam
, void* pStateData
, DWORD dwFlags
);
939 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_SetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, void* pParam
, void* pStateData
, DWORD dwFlags
);
940 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_Compose (LPDIRECTMUSICTRACK8 iface
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
941 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_Join (LPDIRECTMUSICTRACK8 iface
, IDirectMusicTrack
* pNewTrack
, MUSIC_TIME mtJoin
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
942 /* IPersistStream: */
943 extern HRESULT WINAPI
IDirectMusicWaveTrack_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
944 extern ULONG WINAPI
IDirectMusicWaveTrack_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
945 extern ULONG WINAPI
IDirectMusicWaveTrack_IPersistStream_Release (LPPERSISTSTREAM iface
);
946 extern HRESULT WINAPI
IDirectMusicWaveTrack_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
947 extern HRESULT WINAPI
IDirectMusicWaveTrack_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
948 extern HRESULT WINAPI
IDirectMusicWaveTrack_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
949 extern HRESULT WINAPI
IDirectMusicWaveTrack_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
950 extern HRESULT WINAPI
IDirectMusicWaveTrack_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
952 /**********************************************************************
953 * Dll lifetime tracking declaration for dmime.dll
955 extern LONG DMIME_refCount
;
956 static inline void DMIME_LockModule() { InterlockedIncrement( &DMIME_refCount
); }
957 static inline void DMIME_UnlockModule() { InterlockedDecrement( &DMIME_refCount
); }
959 /*****************************************************************************
965 #endif /* __WINE_DMIME_PRIVATE_H */