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"
44 /*****************************************************************************
47 typedef struct IDirectMusicPerformance8Impl IDirectMusicPerformance8Impl
;
48 typedef struct IDirectMusicSegment8Impl IDirectMusicSegment8Impl
;
49 typedef struct IDirectMusicSegmentState8Impl IDirectMusicSegmentState8Impl
;
50 typedef struct IDirectMusicGraphImpl IDirectMusicGraphImpl
;
51 typedef struct IDirectMusicAudioPathImpl IDirectMusicAudioPathImpl
;
52 typedef struct IDirectMusicTool8Impl IDirectMusicTool8Impl
;
53 typedef struct IDirectMusicPatternTrackImpl IDirectMusicPatternTrackImpl
;
55 typedef struct IDirectMusicLyricsTrack IDirectMusicLyricsTrack
;
56 typedef struct IDirectMusicMarkerTrack IDirectMusicMarkerTrack
;
57 typedef struct IDirectMusicParamControlTrack IDirectMusicParamControlTrack
;
58 typedef struct IDirectMusicSegTriggerTrack IDirectMusicSegTriggerTrack
;
59 typedef struct IDirectMusicSeqTrack IDirectMusicSeqTrack
;
60 typedef struct IDirectMusicSysExTrack IDirectMusicSysExTrack
;
61 typedef struct IDirectMusicTempoTrack IDirectMusicTempoTrack
;
62 typedef struct IDirectMusicTimeSigTrack IDirectMusicTimeSigTrack
;
63 typedef struct IDirectMusicWaveTrack IDirectMusicWaveTrack
;
65 /*****************************************************************************
66 * Predeclare the interface implementation structures
68 extern ICOM_VTABLE(IDirectMusicPerformance8
) DirectMusicPerformance8_Vtbl
;
70 extern ICOM_VTABLE(IUnknown
) DirectMusicSegment8_Unknown_Vtbl
;
71 extern ICOM_VTABLE(IDirectMusicSegment8
) DirectMusicSegment8_Segment_Vtbl
;
72 extern ICOM_VTABLE(IDirectMusicObject
) DirectMusicSegment8_Object_Vtbl
;
73 extern ICOM_VTABLE(IPersistStream
) DirectMusicSegment8_PersistStream_Vtbl
;
75 extern ICOM_VTABLE(IDirectMusicSegmentState8
) DirectMusicSegmentState8_Vtbl
;
77 extern ICOM_VTABLE(IUnknown
) DirectMusicGraph_Unknown_Vtbl
;
78 extern ICOM_VTABLE(IDirectMusicGraph
) DirectMusicGraph_Gtaph_Vtbl
;
79 extern ICOM_VTABLE(IDirectMusicObject
) DirectMusicGraph_Object_Vtbl
;
80 extern ICOM_VTABLE(IPersistStream
) DirectMusicGraph_PersistStream_Vtbl
;
82 extern ICOM_VTABLE(IUnknown
) DirectMusicAudioPath_Unknown_Vtbl
;
83 extern ICOM_VTABLE(IDirectMusicAudioPath
) DirectMusicAudioPath_AudioPath_Vtbl
;
84 extern ICOM_VTABLE(IDirectMusicObject
) DirectMusicAudioPath_Object_Vtbl
;
85 extern ICOM_VTABLE(IPersistStream
) DirectMusicAudioPath_Persist_Stream_Vtbl
;
87 extern ICOM_VTABLE(IDirectMusicTool8
) DirectMusicTool8_Vtbl
;
89 extern ICOM_VTABLE(IDirectMusicPatternTrack
) DirectMusicPatternTrack_Vtbl
;
91 extern ICOM_VTABLE(IUnknown
) DirectMusicLyricsTrack_Unknown_Vtbl
;
92 extern ICOM_VTABLE(IDirectMusicTrack8
) DirectMusicLyricsTrack_Track_Vtbl
;
93 extern ICOM_VTABLE(IPersistStream
) DirectMusicLyricsTrack_PersistStream_Vtbl
;
95 extern ICOM_VTABLE(IUnknown
) DirectMusicMarkerTrack_Unknown_Vtbl
;
96 extern ICOM_VTABLE(IDirectMusicTrack8
) DirectMusicMarkerTrack_Track_Vtbl
;
97 extern ICOM_VTABLE(IPersistStream
) DirectMusicMarkerTrack_PersistStream_Vtbl
;
99 extern ICOM_VTABLE(IUnknown
) DirectMusicParamControlTrack_Unknown_Vtbl
;
100 extern ICOM_VTABLE(IDirectMusicTrack8
) DirectMusicParamControlTrack_Track_Vtbl
;
101 extern ICOM_VTABLE(IPersistStream
) DirectMusicParamControlTrack_PersistStream_Vtbl
;
103 extern ICOM_VTABLE(IUnknown
) DirectMusicSegTriggerTrack_Unknown_Vtbl
;
104 extern ICOM_VTABLE(IDirectMusicTrack8
) DirectMusicSegTriggerTrack_Track_Vtbl
;
105 extern ICOM_VTABLE(IPersistStream
) DirectMusicSegTriggerTrack_PersistStream_Vtbl
;
107 extern ICOM_VTABLE(IUnknown
) DirectMusicSeqTrack_Unknown_Vtbl
;
108 extern ICOM_VTABLE(IDirectMusicTrack8
) DirectMusicSeqTrack_Track_Vtbl
;
109 extern ICOM_VTABLE(IPersistStream
) DirectMusicSeqTrack_PersistStream_Vtbl
;
111 extern ICOM_VTABLE(IUnknown
) DirectMusicSysExTrack_Unknown_Vtbl
;
112 extern ICOM_VTABLE(IDirectMusicTrack8
) DirectMusicSysExTrack_Track_Vtbl
;
113 extern ICOM_VTABLE(IPersistStream
) DirectMusicSysExTrack_PersistStream_Vtbl
;
115 extern ICOM_VTABLE(IUnknown
) DirectMusicTempoTrack_Unknown_Vtbl
;
116 extern ICOM_VTABLE(IDirectMusicTrack8
) DirectMusicTempoTrack_Track_Vtbl
;
117 extern ICOM_VTABLE(IPersistStream
) DirectMusicTempoTrack_PersistStream_Vtbl
;
119 extern ICOM_VTABLE(IUnknown
) DirectMusicTimeSigTrack_Unknown_Vtbl
;
120 extern ICOM_VTABLE(IDirectMusicTrack8
) DirectMusicTimeSigTrack_Track_Vtbl
;
121 extern ICOM_VTABLE(IPersistStream
) DirectMusicTimeSigTrack_PersistStream_Vtbl
;
123 extern ICOM_VTABLE(IUnknown
) DirectMusicWaveTrack_Unknown_Vtbl
;
124 extern ICOM_VTABLE(IDirectMusicTrack8
) DirectMusicWaveTrack_Track_Vtbl
;
125 extern ICOM_VTABLE(IPersistStream
) DirectMusicWaveTrack_PersistStream_Vtbl
;
127 /*****************************************************************************
130 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicPerformanceImpl (LPCGUID lpcGUID
, LPVOID
*ppobj
, LPUNKNOWN pUnkOuter
);
131 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicSegmentImpl (LPCGUID lpcGUID
, LPVOID
*ppobj
, LPUNKNOWN pUnkOuter
);
132 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicSegmentStateImpl (LPCGUID lpcGUID
, LPVOID
*ppobj
, LPUNKNOWN pUnkOuter
);
133 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicGraphImpl (LPCGUID lpcGUID
, LPVOID
*ppobj
, LPUNKNOWN pUnkOuter
);
134 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicAudioPathImpl (LPCGUID lpcGUID
, LPVOID
*ppobj
, LPUNKNOWN pUnkOuter
);
135 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicToolImpl (LPCGUID lpcGUID
, LPVOID
*ppobj
, LPUNKNOWN pUnkOuter
);
136 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicPatternTrackImpl (LPCGUID lpcGUID
, LPVOID
*ppobj
, LPUNKNOWN pUnkOuter
);
138 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicLyricsTrack (LPCGUID lpcGUID
, LPVOID
* ppobj
, LPUNKNOWN pUnkOuter
);
139 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicMarkerTrack (LPCGUID lpcGUID
, LPVOID
* ppobj
, LPUNKNOWN pUnkOuter
);
140 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicParamControlTrack (LPCGUID lpcGUID
, LPVOID
* ppobj
, LPUNKNOWN pUnkOuter
);
141 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicSegTriggerTrack (LPCGUID lpcGUID
, LPVOID
* ppobj
, LPUNKNOWN pUnkOuter
);
142 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicSeqTrack (LPCGUID lpcGUID
, LPVOID
* ppobj
, LPUNKNOWN pUnkOuter
);
143 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicSysExTrack (LPCGUID lpcGUID
, LPVOID
* ppobj
, LPUNKNOWN pUnkOuter
);
144 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicTempoTrack (LPCGUID lpcGUID
, LPVOID
* ppobj
, LPUNKNOWN pUnkOuter
);
145 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicTimeSigTrack (LPCGUID lpcGUID
, LPVOID
* ppobj
, LPUNKNOWN pUnkOuter
);
146 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicWaveTrack (LPCGUID lpcGUID
, LPVOID
* ppobj
, LPUNKNOWN pUnkOuter
);
149 /*****************************************************************************
150 * Auxiliary definitions
152 typedef struct _DMUS_PRIVATE_SEGMENT_TRACK
{
153 struct list entry
; /* for listing elements */
155 IDirectMusicTrack
* pTrack
;
156 } DMUS_PRIVATE_SEGMENT_TRACK
, *LPDMUS_PRIVATE_SEGMENT_TRACK
;
158 typedef struct _DMUS_PRIVATE_TEMPO_ITEM
{
159 struct list entry
; /* for listing elements */
160 DMUS_IO_TEMPO_ITEM item
;
161 } DMUS_PRIVATE_TEMPO_ITEM
, *LPDMUS_PRIVATE_TEMPO_ITEM
;
163 typedef struct _DMUS_PRIVATE_SEGMENT_ITEM
{
164 struct list entry
; /* for listing elements */
165 DMUS_IO_SEGMENT_ITEM_HEADER header
;
166 IDirectMusicObject
* pObject
;
167 WCHAR wszName
[DMUS_MAX_NAME
];
168 } DMUS_PRIVATE_SEGMENT_ITEM
, *LPDMUS_PRIVATE_SEGMENT_ITEM
;
170 typedef struct _DMUS_PRIVATE_GRAPH_TOOL
{
171 struct list entry
; /* for listing elements */
173 IDirectMusicTool
* pTool
;
174 } DMUS_PRIVATE_GRAPH_TOOL
, *LPDMUS_PRIVATE_GRAPH_TOOL
;
176 typedef struct _DMUS_PRIVATE_TEMPO_PLAY_STATE
{
178 } DMUS_PRIVATE_TEMPO_PLAY_STATE
, *LPDMUS_PRIVATE_TEMPO_PLAY_STATE
;
180 /* some sort of aux. performance channel: as far as i can understand, these are
181 used to represent a particular midi channel in particular group at particular
182 group; so all we need to do is to fill it with parent port, group and midi
184 typedef struct DMUSIC_PRIVATE_PCHANNEL_
{
185 DWORD channel
; /* map to this channel... */
186 DWORD group
; /* ... in this group ... */
187 IDirectMusicPort
*port
; /* ... at this port */
188 } DMUSIC_PRIVATE_PCHANNEL
, *LPDMUSIC_PRIVATE_PCHANNEL
;
190 /*****************************************************************************
191 * IDirectMusicPerformance8Impl implementation structure
193 struct IDirectMusicPerformance8Impl
{
194 /* IUnknown fields */
195 IDirectMusicPerformance8Vtbl
*lpVtbl
;
198 /* IDirectMusicPerformanceImpl fields */
199 IDirectMusic8
* pDirectMusic
;
200 IDirectSound
* pDirectSound
;
201 IDirectMusicGraph
* pToolGraph
;
202 DMUS_AUDIOPARAMS pParams
;
204 /* global parameters */
206 char cMasterGrooveLevel
;
210 /* performance channels */
211 DMUSIC_PRIVATE_PCHANNEL PChannel
[1];
213 /* IDirectMusicPerformance8Impl fields */
214 IDirectMusicAudioPath
* pDefaultPath
;
215 HANDLE hNotification
;
216 REFERENCE_TIME rtMinimum
;
218 REFERENCE_TIME rtLatencyTime
;
219 DWORD dwBumperLength
;
221 /** Message Processing */
224 REFERENCE_TIME procThreadStartTime
;
225 BOOL procThreadTicStarted
;
226 CRITICAL_SECTION safe
;
227 struct DMUS_PMSGItem
* head
;
228 struct DMUS_PMSGItem
* imm_head
;
232 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_QueryInterface (LPDIRECTMUSICPERFORMANCE8 iface
, REFIID riid
, LPVOID
*ppobj
);
233 extern ULONG WINAPI
IDirectMusicPerformance8Impl_AddRef (LPDIRECTMUSICPERFORMANCE8 iface
);
234 extern ULONG WINAPI
IDirectMusicPerformance8Impl_Release (LPDIRECTMUSICPERFORMANCE8 iface
);
235 /* IDirectMusicPerformance: */
236 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_Init (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusic
** ppDirectMusic
, LPDIRECTSOUND pDirectSound
, HWND hWnd
);
237 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_PlaySegment (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusicSegment
* pSegment
, DWORD dwFlags
, __int64 i64StartTime
, IDirectMusicSegmentState
** ppSegmentState
);
238 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_Stop (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusicSegment
* pSegment
, IDirectMusicSegmentState
* pSegmentState
, MUSIC_TIME mtTime
, DWORD dwFlags
);
239 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetSegmentState (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusicSegmentState
** ppSegmentState
, MUSIC_TIME mtTime
);
240 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_SetPrepareTime (LPDIRECTMUSICPERFORMANCE8 iface
, DWORD dwMilliSeconds
);
241 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetPrepareTime (LPDIRECTMUSICPERFORMANCE8 iface
, DWORD
* pdwMilliSeconds
);
242 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_SetBumperLength (LPDIRECTMUSICPERFORMANCE8 iface
, DWORD dwMilliSeconds
);
243 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetBumperLength (LPDIRECTMUSICPERFORMANCE8 iface
, DWORD
* pdwMilliSeconds
);
244 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_SendPMsg (LPDIRECTMUSICPERFORMANCE8 iface
, DMUS_PMSG
* pPMSG
);
245 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_MusicToReferenceTime (LPDIRECTMUSICPERFORMANCE8 iface
, MUSIC_TIME mtTime
, REFERENCE_TIME
* prtTime
);
246 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_ReferenceToMusicTime (LPDIRECTMUSICPERFORMANCE8 iface
, REFERENCE_TIME rtTime
, MUSIC_TIME
* pmtTime
);
247 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_IsPlaying (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusicSegment
* pSegment
, IDirectMusicSegmentState
* pSegState
);
248 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetTime (LPDIRECTMUSICPERFORMANCE8 iface
, REFERENCE_TIME
* prtNow
, MUSIC_TIME
* pmtNow
);
249 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_AllocPMsg (LPDIRECTMUSICPERFORMANCE8 iface
, ULONG cb
, DMUS_PMSG
** ppPMSG
);
250 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_FreePMsg (LPDIRECTMUSICPERFORMANCE8 iface
, DMUS_PMSG
* pPMSG
);
251 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetGraph (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusicGraph
** ppGraph
);
252 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_SetGraph (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusicGraph
* pGraph
);
253 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_SetNotificationHandle (LPDIRECTMUSICPERFORMANCE8 iface
, HANDLE hNotification
, REFERENCE_TIME rtMinimum
);
254 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetNotificationPMsg (LPDIRECTMUSICPERFORMANCE8 iface
, DMUS_NOTIFICATION_PMSG
** ppNotificationPMsg
);
255 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_AddNotificationType (LPDIRECTMUSICPERFORMANCE8 iface
, REFGUID rguidNotificationType
);
256 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_RemoveNotificationType (LPDIRECTMUSICPERFORMANCE8 iface
, REFGUID rguidNotificationType
);
257 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_AddPort (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusicPort
* pPort
);
258 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_RemovePort (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusicPort
* pPort
);
259 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_AssignPChannelBlock (LPDIRECTMUSICPERFORMANCE8 iface
, DWORD dwBlockNum
, IDirectMusicPort
* pPort
, DWORD dwGroup
);
260 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_AssignPChannel (LPDIRECTMUSICPERFORMANCE8 iface
, DWORD dwPChannel
, IDirectMusicPort
* pPort
, DWORD dwGroup
, DWORD dwMChannel
);
261 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_PChannelInfo (LPDIRECTMUSICPERFORMANCE8 iface
, DWORD dwPChannel
, IDirectMusicPort
** ppPort
, DWORD
* pdwGroup
, DWORD
* pdwMChannel
);
262 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_DownloadInstrument (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusicInstrument
* pInst
, DWORD dwPChannel
, IDirectMusicDownloadedInstrument
** ppDownInst
, DMUS_NOTERANGE
* pNoteRanges
, DWORD dwNumNoteRanges
, IDirectMusicPort
** ppPort
, DWORD
* pdwGroup
, DWORD
* pdwMChannel
);
263 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_Invalidate (LPDIRECTMUSICPERFORMANCE8 iface
, MUSIC_TIME mtTime
, DWORD dwFlags
);
264 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetParam (LPDIRECTMUSICPERFORMANCE8 iface
, REFGUID rguidType
, DWORD dwGroupBits
, DWORD dwIndex
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
265 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_SetParam (LPDIRECTMUSICPERFORMANCE8 iface
, REFGUID rguidType
, DWORD dwGroupBits
, DWORD dwIndex
, MUSIC_TIME mtTime
, void* pParam
);
266 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetGlobalParam (LPDIRECTMUSICPERFORMANCE8 iface
, REFGUID rguidType
, void* pParam
, DWORD dwSize
);
267 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_SetGlobalParam (LPDIRECTMUSICPERFORMANCE8 iface
, REFGUID rguidType
, void* pParam
, DWORD dwSize
);
268 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetLatencyTime (LPDIRECTMUSICPERFORMANCE8 iface
, REFERENCE_TIME
* prtTime
);
269 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetQueueTime (LPDIRECTMUSICPERFORMANCE8 iface
, REFERENCE_TIME
* prtTime
);
270 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_AdjustTime (LPDIRECTMUSICPERFORMANCE8 iface
, REFERENCE_TIME rtAmount
);
271 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_CloseDown (LPDIRECTMUSICPERFORMANCE8 iface
);
272 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetResolvedTime (LPDIRECTMUSICPERFORMANCE8 iface
, REFERENCE_TIME rtTime
, REFERENCE_TIME
* prtResolved
, DWORD dwTimeResolveFlags
);
273 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_MIDIToMusic (LPDIRECTMUSICPERFORMANCE8 iface
, BYTE bMIDIValue
, DMUS_CHORD_KEY
* pChord
, BYTE bPlayMode
, BYTE bChordLevel
, WORD
* pwMusicValue
);
274 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_MusicToMIDI (LPDIRECTMUSICPERFORMANCE8 iface
, WORD wMusicValue
, DMUS_CHORD_KEY
* pChord
, BYTE bPlayMode
, BYTE bChordLevel
, BYTE
* pbMIDIValue
);
275 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_TimeToRhythm (LPDIRECTMUSICPERFORMANCE8 iface
, MUSIC_TIME mtTime
, DMUS_TIMESIGNATURE
* pTimeSig
, WORD
* pwMeasure
, BYTE
* pbBeat
, BYTE
* pbGrid
, short* pnOffset
);
276 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_RhythmToTime (LPDIRECTMUSICPERFORMANCE8 iface
, WORD wMeasure
, BYTE bBeat
, BYTE bGrid
, short nOffset
, DMUS_TIMESIGNATURE
* pTimeSig
, MUSIC_TIME
* pmtTime
);
277 /* IDirectMusicPerformance8: */
278 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_InitAudio (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusic
** ppDirectMusic
, IDirectSound
** ppDirectSound
, HWND hWnd
, DWORD dwDefaultPathType
, DWORD dwPChannelCount
, DWORD dwFlags
, DMUS_AUDIOPARAMS
* pParams
);
279 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_PlaySegmentEx (LPDIRECTMUSICPERFORMANCE8 iface
, IUnknown
* pSource
, WCHAR
* pwzSegmentName
, IUnknown
* pTransition
, DWORD dwFlags
, __int64 i64StartTime
, IDirectMusicSegmentState
** ppSegmentState
, IUnknown
* pFrom
, IUnknown
* pAudioPath
);
280 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_StopEx (LPDIRECTMUSICPERFORMANCE8 iface
, IUnknown
* pObjectToStop
, __int64 i64StopTime
, DWORD dwFlags
);
281 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_ClonePMsg (LPDIRECTMUSICPERFORMANCE8 iface
, DMUS_PMSG
* pSourcePMSG
, DMUS_PMSG
** ppCopyPMSG
);
282 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_CreateAudioPath (LPDIRECTMUSICPERFORMANCE8 iface
, IUnknown
* pSourceConfig
, BOOL fActivate
, IDirectMusicAudioPath
** ppNewPath
);
283 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_CreateStandardAudioPath (LPDIRECTMUSICPERFORMANCE8 iface
, DWORD dwType
, DWORD dwPChannelCount
, BOOL fActivate
, IDirectMusicAudioPath
** ppNewPath
);
284 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_SetDefaultAudioPath (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusicAudioPath
* pAudioPath
);
285 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetDefaultAudioPath (LPDIRECTMUSICPERFORMANCE8 iface
, IDirectMusicAudioPath
** ppAudioPath
);
286 extern HRESULT WINAPI
IDirectMusicPerformance8Impl_GetParamEx (LPDIRECTMUSICPERFORMANCE8 iface
, REFGUID rguidType
, DWORD dwTrackID
, DWORD dwGroupBits
, DWORD dwIndex
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
288 /*****************************************************************************
289 * IDirectMusicSegment8Impl implementation structure
291 struct IDirectMusicSegment8Impl
{
292 /* IUnknown fields */
293 ICOM_VTABLE(IUnknown
) *UnknownVtbl
;
294 ICOM_VTABLE(IDirectMusicSegment8
) *SegmentVtbl
;
295 ICOM_VTABLE(IDirectMusicObject
) *ObjectVtbl
;
296 ICOM_VTABLE(IPersistStream
) *PersistStreamVtbl
;
299 /* IDirectMusicSegment8Impl fields */
300 LPDMUS_OBJECTDESC pDesc
;
301 DMUS_IO_SEGMENT_HEADER header
;
302 IDirectMusicGraph
* pGraph
;
307 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
308 extern ULONG WINAPI
IDirectMusicSegment8Impl_IUnknown_AddRef (LPUNKNOWN iface
);
309 extern ULONG WINAPI
IDirectMusicSegment8Impl_IUnknown_Release (LPUNKNOWN iface
);
310 /* IDirectMusicSegment(8): */
311 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_QueryInterface (LPDIRECTMUSICSEGMENT8 iface
, REFIID riid
, LPVOID
*ppobj
);
312 extern ULONG WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_AddRef (LPDIRECTMUSICSEGMENT8 iface
);
313 extern ULONG WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_Release (LPDIRECTMUSICSEGMENT8 iface
);
314 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_GetLength (LPDIRECTMUSICSEGMENT8 iface
, MUSIC_TIME
* pmtLength
);
315 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_SetLength (LPDIRECTMUSICSEGMENT8 iface
, MUSIC_TIME mtLength
);
316 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_GetRepeats (LPDIRECTMUSICSEGMENT8 iface
, DWORD
* pdwRepeats
);
317 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_SetRepeats (LPDIRECTMUSICSEGMENT8 iface
, DWORD dwRepeats
);
318 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_GetDefaultResolution (LPDIRECTMUSICSEGMENT8 iface
, DWORD
* pdwResolution
);
319 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_SetDefaultResolution (LPDIRECTMUSICSEGMENT8 iface
, DWORD dwResolution
);
320 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_GetTrack (LPDIRECTMUSICSEGMENT8 iface
, REFGUID rguidType
, DWORD dwGroupBits
, DWORD dwIndex
, IDirectMusicTrack
** ppTrack
);
321 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_GetTrackGroup (LPDIRECTMUSICSEGMENT8 iface
, IDirectMusicTrack
* pTrack
, DWORD
* pdwGroupBits
);
322 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_InsertTrack (LPDIRECTMUSICSEGMENT8 iface
, IDirectMusicTrack
* pTrack
, DWORD dwGroupBits
);
323 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_RemoveTrack (LPDIRECTMUSICSEGMENT8 iface
, IDirectMusicTrack
* pTrack
);
324 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_InitPlay (LPDIRECTMUSICSEGMENT8 iface
, IDirectMusicSegmentState
** ppSegState
, IDirectMusicPerformance
* pPerformance
, DWORD dwFlags
);
325 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_GetGraph (LPDIRECTMUSICSEGMENT8 iface
, IDirectMusicGraph
** ppGraph
);
326 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_SetGraph (LPDIRECTMUSICSEGMENT8 iface
, IDirectMusicGraph
* pGraph
);
327 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_AddNotificationType (LPDIRECTMUSICSEGMENT8 iface
, REFGUID rguidNotificationType
);
328 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_RemoveNotificationType (LPDIRECTMUSICSEGMENT8 iface
, REFGUID rguidNotificationType
);
329 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_GetParam (LPDIRECTMUSICSEGMENT8 iface
, REFGUID rguidType
, DWORD dwGroupBits
, DWORD dwIndex
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
330 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_SetParam (LPDIRECTMUSICSEGMENT8 iface
, REFGUID rguidType
, DWORD dwGroupBits
, DWORD dwIndex
, MUSIC_TIME mtTime
, void* pParam
);
331 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_Clone (LPDIRECTMUSICSEGMENT8 iface
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, IDirectMusicSegment
** ppSegment
);
332 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_SetStartPoint (LPDIRECTMUSICSEGMENT8 iface
, MUSIC_TIME mtStart
);
333 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_GetStartPoint (LPDIRECTMUSICSEGMENT8 iface
, MUSIC_TIME
* pmtStart
);
334 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_SetLoopPoints (LPDIRECTMUSICSEGMENT8 iface
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
);
335 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_GetLoopPoints (LPDIRECTMUSICSEGMENT8 iface
, MUSIC_TIME
* pmtStart
, MUSIC_TIME
* pmtEnd
);
336 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_SetPChannelsUsed (LPDIRECTMUSICSEGMENT8 iface
, DWORD dwNumPChannels
, DWORD
* paPChannels
);
337 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_SetTrackConfig (LPDIRECTMUSICSEGMENT8 iface
, REFGUID rguidTrackClassID
, DWORD dwGroupBits
, DWORD dwIndex
, DWORD dwFlagsOn
, DWORD dwFlagsOff
);
338 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_GetAudioPathConfig (LPDIRECTMUSICSEGMENT8 iface
, IUnknown
** ppAudioPathConfig
);
339 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_Compose (LPDIRECTMUSICSEGMENT8 iface
, MUSIC_TIME mtTime
, IDirectMusicSegment
* pFromSegment
, IDirectMusicSegment
* pToSegment
, IDirectMusicSegment
** ppComposedSegment
);
340 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_Download (LPDIRECTMUSICSEGMENT8 iface
, IUnknown
*pAudioPath
);
341 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicSegment8_Unload (LPDIRECTMUSICSEGMENT8 iface
, IUnknown
*pAudioPath
);
342 /* IDirectMusicObject: */
343 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicObject_QueryInterface (LPDIRECTMUSICOBJECT iface
, REFIID riid
, LPVOID
*ppobj
);
344 extern ULONG WINAPI
IDirectMusicSegment8Impl_IDirectMusicObject_AddRef (LPDIRECTMUSICOBJECT iface
);
345 extern ULONG WINAPI
IDirectMusicSegment8Impl_IDirectMusicObject_Release (LPDIRECTMUSICOBJECT iface
);
346 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicObject_GetDescriptor (LPDIRECTMUSICOBJECT iface
, LPDMUS_OBJECTDESC pDesc
);
347 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicObject_SetDescriptor (LPDIRECTMUSICOBJECT iface
, LPDMUS_OBJECTDESC pDesc
);
348 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IDirectMusicObject_ParseDescriptor (LPDIRECTMUSICOBJECT iface
, LPSTREAM pStream
, LPDMUS_OBJECTDESC pDesc
);
349 /* IPersistStream: */
350 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
351 extern ULONG WINAPI
IDirectMusicSegment8Impl_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
352 extern ULONG WINAPI
IDirectMusicSegment8Impl_IPersistStream_Release (LPPERSISTSTREAM iface
);
353 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
354 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
355 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
356 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
357 extern HRESULT WINAPI
IDirectMusicSegment8Impl_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
359 /*****************************************************************************
360 * IDirectMusicSegmentState8Impl implementation structure
362 struct IDirectMusicSegmentState8Impl
{
363 /* IUnknown fields */
364 IDirectMusicSegmentState8Vtbl
*lpVtbl
;
367 /* IDirectMusicSegmentState8Impl fields */
371 extern HRESULT WINAPI
IDirectMusicSegmentState8Impl_QueryInterface (LPDIRECTMUSICSEGMENTSTATE8 iface
, REFIID riid
, LPVOID
*ppobj
);
372 extern ULONG WINAPI
IDirectMusicSegmentState8Impl_AddRef (LPDIRECTMUSICSEGMENTSTATE8 iface
);
373 extern ULONG WINAPI
IDirectMusicSegmentState8Impl_Release (LPDIRECTMUSICSEGMENTSTATE8 iface
);
374 /* IDirectMusicSegmentState(8): */
375 extern HRESULT WINAPI
IDirectMusicSegmentState8Impl_GetRepeats (LPDIRECTMUSICSEGMENTSTATE8 iface
, DWORD
* pdwRepeats
);
376 extern HRESULT WINAPI
IDirectMusicSegmentState8Impl_GetSegment (LPDIRECTMUSICSEGMENTSTATE8 iface
, IDirectMusicSegment
** ppSegment
);
377 extern HRESULT WINAPI
IDirectMusicSegmentState8Impl_GetStartTime (LPDIRECTMUSICSEGMENTSTATE8 iface
, MUSIC_TIME
* pmtStart
);
378 extern HRESULT WINAPI
IDirectMusicSegmentState8Impl_GetSeek (LPDIRECTMUSICSEGMENTSTATE8 iface
, MUSIC_TIME
* pmtSeek
);
379 extern HRESULT WINAPI
IDirectMusicSegmentState8Impl_GetStartPoint (LPDIRECTMUSICSEGMENTSTATE8 iface
, MUSIC_TIME
* pmtStart
);
380 extern HRESULT WINAPI
IDirectMusicSegmentState8Impl_SetTrackConfig (LPDIRECTMUSICSEGMENTSTATE8 iface
, REFGUID rguidTrackClassID
, DWORD dwGroupBits
, DWORD dwIndex
, DWORD dwFlagsOn
, DWORD dwFlagsOff
);
381 extern HRESULT WINAPI
IDirectMusicSegmentState8Impl_GetObjectInPath (LPDIRECTMUSICSEGMENTSTATE8 iface
, DWORD dwPChannel
, DWORD dwStage
, DWORD dwBuffer
, REFGUID guidObject
, DWORD dwIndex
, REFGUID iidInterface
, void** ppObject
);
383 /*****************************************************************************
384 * IDirectMusicGraphImpl implementation structure
386 struct IDirectMusicGraphImpl
{
387 /* IUnknown fields */
388 ICOM_VTABLE(IUnknown
) *UnknownVtbl
;
389 ICOM_VTABLE(IDirectMusicGraph
) *GraphVtbl
;
390 ICOM_VTABLE(IDirectMusicObject
) *ObjectVtbl
;
391 ICOM_VTABLE(IPersistStream
) *PersistStreamVtbl
;
394 /* IDirectMusicGraphImpl fields */
395 LPDMUS_OBJECTDESC pDesc
;
401 extern HRESULT WINAPI
IDirectMusicGraphImpl_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
402 extern ULONG WINAPI
IDirectMusicGraphImpl_IUnknown_AddRef (LPUNKNOWN iface
);
403 extern ULONG WINAPI
IDirectMusicGraphImpl_IUnknown_Release (LPUNKNOWN iface
);
404 /* IDirectMusicGraph: */
405 extern HRESULT WINAPI
IDirectMusicGraphImpl_IDirectMusicGraph_QueryInterface (LPDIRECTMUSICGRAPH iface
, REFIID riid
, LPVOID
*ppobj
);
406 extern ULONG WINAPI
IDirectMusicGraphImpl_IDirectMusicGraph_AddRef (LPDIRECTMUSICGRAPH iface
);
407 extern ULONG WINAPI
IDirectMusicGraphImpl_IDirectMusicGraph_Release (LPDIRECTMUSICGRAPH iface
);extern HRESULT WINAPI
IDirectMusicGraphImpl_StampPMsg (LPDIRECTMUSICGRAPH iface
, DMUS_PMSG
* pPMSG
);
408 extern HRESULT WINAPI
IDirectMusicGraphImpl_IDirectMusicGraph_InsertTool (LPDIRECTMUSICGRAPH iface
, IDirectMusicTool
* pTool
, DWORD
* pdwPChannels
, DWORD cPChannels
, LONG lIndex
);
409 extern HRESULT WINAPI
IDirectMusicGraphImpl_IDirectMusicGraph_GetTool (LPDIRECTMUSICGRAPH iface
, DWORD dwIndex
, IDirectMusicTool
** ppTool
);
410 extern HRESULT WINAPI
IDirectMusicGraphImpl_IDirectMusicGraph_RemoveTool (LPDIRECTMUSICGRAPH iface
, IDirectMusicTool
* pTool
);
411 /* IDirectMusicObject: */
412 extern HRESULT WINAPI
IDirectMusicGraphImpl_IDirectMusicObject_QueryInterface (LPDIRECTMUSICOBJECT iface
, REFIID riid
, LPVOID
*ppobj
);
413 extern ULONG WINAPI
IDirectMusicGraphImpl_IDirectMusicObject_AddRef (LPDIRECTMUSICOBJECT iface
);
414 extern ULONG WINAPI
IDirectMusicGraphImpl_IDirectMusicObject_Release (LPDIRECTMUSICOBJECT iface
);
415 extern HRESULT WINAPI
IDirectMusicGraphImpl_IDirectMusicObject_GetDescriptor (LPDIRECTMUSICOBJECT iface
, LPDMUS_OBJECTDESC pDesc
);
416 extern HRESULT WINAPI
IDirectMusicGraphImpl_IDirectMusicObject_SetDescriptor (LPDIRECTMUSICOBJECT iface
, LPDMUS_OBJECTDESC pDesc
);
417 extern HRESULT WINAPI
IDirectMusicGraphImpl_IDirectMusicObject_ParseDescriptor (LPDIRECTMUSICOBJECT iface
, LPSTREAM pStream
, LPDMUS_OBJECTDESC pDesc
);
418 /* IPersistStream: */
419 extern HRESULT WINAPI
IDirectMusicGraphImpl_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
420 extern ULONG WINAPI
IDirectMusicGraphImpl_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
421 extern ULONG WINAPI
IDirectMusicGraphImpl_IPersistStream_Release (LPPERSISTSTREAM iface
);
422 extern HRESULT WINAPI
IDirectMusicGraphImpl_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
423 extern HRESULT WINAPI
IDirectMusicGraphImpl_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
424 extern HRESULT WINAPI
IDirectMusicGraphImpl_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
425 extern HRESULT WINAPI
IDirectMusicGraphImpl_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
426 extern HRESULT WINAPI
IDirectMusicGraphImpl_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
428 /*****************************************************************************
429 * IDirectMusicAudioPathImpl implementation structure
431 struct IDirectMusicAudioPathImpl
{
432 /* IUnknown fields */
433 ICOM_VTABLE(IUnknown
) *UnknownVtbl
;
434 ICOM_VTABLE(IDirectMusicAudioPath
) *AudioPathVtbl
;
435 ICOM_VTABLE(IDirectMusicObject
) *ObjectVtbl
;
436 ICOM_VTABLE(IPersistStream
) *PersistStreamVtbl
;
439 /* IDirectMusicAudioPathImpl fields */
440 LPDMUS_OBJECTDESC pDesc
;
442 IDirectMusicPerformance8
* pPerf
;
443 IDirectMusicGraph
* pToolGraph
;
444 IDirectSoundBuffer
* pDSBuffer
;
445 IDirectSoundBuffer
* pPrimary
;
451 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
452 extern ULONG WINAPI
IDirectMusicAudioPathImpl_IUnknown_AddRef (LPUNKNOWN iface
);
453 extern ULONG WINAPI
IDirectMusicAudioPathImpl_IUnknown_Release (LPUNKNOWN iface
);
454 /* IDirectMusicAudioPath: */
455 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IDirectMusicAudioPath_QueryInterface (LPDIRECTMUSICAUDIOPATH iface
, REFIID riid
, LPVOID
*ppobj
);
456 extern ULONG WINAPI
IDirectMusicAudioPathImpl_IDirectMusicAudioPath_AddRef (LPDIRECTMUSICAUDIOPATH iface
);
457 extern ULONG WINAPI
IDirectMusicAudioPathImpl_IDirectMusicAudioPath_Release (LPDIRECTMUSICAUDIOPATH iface
);
458 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IDirectMusicAudioPath_GetObjectInPath (LPDIRECTMUSICAUDIOPATH iface
, DWORD dwPChannel
, DWORD dwStage
, DWORD dwBuffer
, REFGUID guidObject
, WORD dwIndex
, REFGUID iidInterface
, void** ppObject
);
459 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IDirectMusicAudioPath_Activate (LPDIRECTMUSICAUDIOPATH iface
, BOOL fActivate
);
460 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IDirectMusicAudioPath_SetVolume (LPDIRECTMUSICAUDIOPATH iface
, long lVolume
, DWORD dwDuration
);
461 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IDirectMusicAudioPath_ConvertPChannel (LPDIRECTMUSICAUDIOPATH iface
, DWORD dwPChannelIn
, DWORD
* pdwPChannelOut
);
462 /* IDirectMusicObject: */
463 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IDirectMusicObject_QueryInterface (LPDIRECTMUSICOBJECT iface
, REFIID riid
, LPVOID
*ppobj
);
464 extern ULONG WINAPI
IDirectMusicAudioPathImpl_IDirectMusicObject_AddRef (LPDIRECTMUSICOBJECT iface
);
465 extern ULONG WINAPI
IDirectMusicAudioPathImpl_IDirectMusicObject_Release (LPDIRECTMUSICOBJECT iface
);
466 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IDirectMusicObject_GetDescriptor (LPDIRECTMUSICOBJECT iface
, LPDMUS_OBJECTDESC pDesc
);
467 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IDirectMusicObject_SetDescriptor (LPDIRECTMUSICOBJECT iface
, LPDMUS_OBJECTDESC pDesc
);
468 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IDirectMusicObject_ParseDescriptor (LPDIRECTMUSICOBJECT iface
, LPSTREAM pStream
, LPDMUS_OBJECTDESC pDesc
);
469 /* IPersistStream: */
470 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
471 extern ULONG WINAPI
IDirectMusicAudioPathImpl_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
472 extern ULONG WINAPI
IDirectMusicAudioPathImpl_IPersistStream_Release (LPPERSISTSTREAM iface
);
473 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
474 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
475 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
476 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
477 extern HRESULT WINAPI
IDirectMusicAudioPathImpl_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
479 /*****************************************************************************
480 * IDirectMusicTool8Impl implementation structure
482 struct IDirectMusicTool8Impl
{
483 /* IUnknown fields */
484 IDirectMusicTool8Vtbl
*lpVtbl
;
487 /* IDirectMusicTool8Impl fields */
491 extern HRESULT WINAPI
IDirectMusicTool8Impl_QueryInterface (LPDIRECTMUSICTOOL8 iface
, REFIID riid
, LPVOID
*ppobj
);
492 extern ULONG WINAPI
IDirectMusicTool8Impl_AddRef (LPDIRECTMUSICTOOL8 iface
);
493 extern ULONG WINAPI
IDirectMusicTool8Impl_Release (LPDIRECTMUSICTOOL8 iface
);
494 /* IDirectMusicTool(8): */
495 extern HRESULT WINAPI
IDirectMusicTool8Impl_Init (LPDIRECTMUSICTOOL8 iface
, IDirectMusicGraph
* pGraph
);
496 extern HRESULT WINAPI
IDirectMusicTool8Impl_GetMsgDeliveryType (LPDIRECTMUSICTOOL8 iface
, DWORD
* pdwDeliveryType
);
497 extern HRESULT WINAPI
IDirectMusicTool8Impl_GetMediaTypeArraySize (LPDIRECTMUSICTOOL8 iface
, DWORD
* pdwNumElements
);
498 extern HRESULT WINAPI
IDirectMusicTool8Impl_GetMediaTypes (LPDIRECTMUSICTOOL8 iface
, DWORD
** padwMediaTypes
, DWORD dwNumElements
);
499 extern HRESULT WINAPI
IDirectMusicTool8Impl_ProcessPMsg (LPDIRECTMUSICTOOL8 iface
, IDirectMusicPerformance
* pPerf
, DMUS_PMSG
* pPMSG
);
500 extern HRESULT WINAPI
IDirectMusicTool8Impl_Flush (LPDIRECTMUSICTOOL8 iface
, IDirectMusicPerformance
* pPerf
, DMUS_PMSG
* pPMSG
, REFERENCE_TIME rtTime
);
501 extern HRESULT WINAPI
IDirectMusicTool8Impl_Clone (LPDIRECTMUSICTOOL8 iface
, IDirectMusicTool
** ppTool
);
503 /*****************************************************************************
504 * IDirectMusicPatternTrackImpl implementation structure
506 struct IDirectMusicPatternTrackImpl
{
507 /* IUnknown fields */
508 IDirectMusicPatternTrackVtbl
*lpVtbl
;
511 /* IDirectMusicPatternTrackImpl fields */
515 extern HRESULT WINAPI
IDirectMusicPatternTrackImpl_QueryInterface (LPDIRECTMUSICPATTERNTRACK iface
, REFIID riid
, LPVOID
*ppobj
);
516 extern ULONG WINAPI
IDirectMusicPatternTrackImpl_AddRef (LPDIRECTMUSICPATTERNTRACK iface
);
517 extern ULONG WINAPI
IDirectMusicPatternTrackImpl_Release (LPDIRECTMUSICPATTERNTRACK iface
);
518 /* IDirectMusicPatternTrack: */
519 extern HRESULT WINAPI
IDirectMusicPatternTrackImpl_CreateSegment (LPDIRECTMUSICPATTERNTRACK iface
, IDirectMusicStyle
* pStyle
, IDirectMusicSegment
** ppSegment
);
520 extern HRESULT WINAPI
IDirectMusicPatternTrackImpl_SetVariation (LPDIRECTMUSICPATTERNTRACK iface
, IDirectMusicSegmentState
* pSegState
, DWORD dwVariationFlags
, DWORD dwPart
);
521 extern HRESULT WINAPI
IDirectMusicPatternTrackImpl_SetPatternByName (LPDIRECTMUSICPATTERNTRACK iface
, IDirectMusicSegmentState
* pSegState
, WCHAR
* wszName
, IDirectMusicStyle
* pStyle
, DWORD dwPatternType
, DWORD
* pdwLength
);
523 /*****************************************************************************
524 * IDirectMusicLyricsTrack implementation structure
526 struct IDirectMusicLyricsTrack
528 /* IUnknown fields */
529 ICOM_VTABLE(IUnknown
) *UnknownVtbl
;
530 ICOM_VTABLE(IDirectMusicTrack8
) *TrackVtbl
;
531 ICOM_VTABLE(IPersistStream
) *PersistStreamVtbl
;
534 /* IDirectMusicLyricsTrack fields */
535 LPDMUS_OBJECTDESC pDesc
;
539 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
540 extern ULONG WINAPI
IDirectMusicLyricsTrack_IUnknown_AddRef (LPUNKNOWN iface
);
541 extern ULONG WINAPI
IDirectMusicLyricsTrack_IUnknown_Release (LPUNKNOWN iface
);
542 /* IDirectMusicTrack(8): */
543 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_QueryInterface (LPDIRECTMUSICTRACK8 iface
, REFIID riid
, LPVOID
*ppobj
);
544 extern ULONG WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_AddRef (LPDIRECTMUSICTRACK8 iface
);
545 extern ULONG WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_Release (LPDIRECTMUSICTRACK8 iface
);
546 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_Init (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegment
* pSegment
);
547 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_InitPlay (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegmentState
* pSegmentState
, IDirectMusicPerformance
* pPerformance
, void** ppStateData
, DWORD dwVirtualTrackID
, DWORD dwFlags
);
548 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_EndPlay (LPDIRECTMUSICTRACK8 iface
, void* pStateData
);
549 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
);
550 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_GetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
551 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_SetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, void* pParam
);
552 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_IsParamSupported (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
);
553 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_AddNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
554 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_RemoveNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
555 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_Clone (LPDIRECTMUSICTRACK8 iface
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, IDirectMusicTrack
** ppTrack
);
556 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
);
557 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_GetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, REFERENCE_TIME
* prtNext
, void* pParam
, void* pStateData
, DWORD dwFlags
);
558 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_SetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, void* pParam
, void* pStateData
, DWORD dwFlags
);
559 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_Compose (LPDIRECTMUSICTRACK8 iface
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
560 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IDirectMusicTrack_Join (LPDIRECTMUSICTRACK8 iface
, IDirectMusicTrack
* pNewTrack
, MUSIC_TIME mtJoin
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
561 /* IPersistStream: */
562 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
563 extern ULONG WINAPI
IDirectMusicLyricsTrack_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
564 extern ULONG WINAPI
IDirectMusicLyricsTrack_IPersistStream_Release (LPPERSISTSTREAM iface
);
565 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
566 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
567 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
568 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
569 extern HRESULT WINAPI
IDirectMusicLyricsTrack_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
571 /*****************************************************************************
572 * IDirectMusicMarkerTrack implementation structure
574 struct IDirectMusicMarkerTrack
{
575 /* IUnknown fields */
576 ICOM_VTABLE(IUnknown
) *UnknownVtbl
;
577 ICOM_VTABLE(IDirectMusicTrack8
) *TrackVtbl
;
578 ICOM_VTABLE(IPersistStream
) *PersistStreamVtbl
;
581 /* IDirectMusicMarkerTrack fields */
582 LPDMUS_OBJECTDESC pDesc
;
586 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
587 extern ULONG WINAPI
IDirectMusicMarkerTrack_IUnknown_AddRef (LPUNKNOWN iface
);
588 extern ULONG WINAPI
IDirectMusicMarkerTrack_IUnknown_Release (LPUNKNOWN iface
);
589 /* IDirectMusicTrack(8): */
590 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_QueryInterface (LPDIRECTMUSICTRACK8 iface
, REFIID riid
, LPVOID
*ppobj
);
591 extern ULONG WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_AddRef (LPDIRECTMUSICTRACK8 iface
);
592 extern ULONG WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_Release (LPDIRECTMUSICTRACK8 iface
);
593 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_Init (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegment
* pSegment
);
594 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_InitPlay (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegmentState
* pSegmentState
, IDirectMusicPerformance
* pPerformance
, void** ppStateData
, DWORD dwVirtualTrackID
, DWORD dwFlags
);
595 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_EndPlay (LPDIRECTMUSICTRACK8 iface
, void* pStateData
);
596 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
);
597 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_GetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
598 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_SetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, void* pParam
);
599 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_IsParamSupported (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
);
600 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_AddNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
601 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_RemoveNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
602 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_Clone (LPDIRECTMUSICTRACK8 iface
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, IDirectMusicTrack
** ppTrack
);
603 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
);
604 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_GetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, REFERENCE_TIME
* prtNext
, void* pParam
, void* pStateData
, DWORD dwFlags
);
605 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_SetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, void* pParam
, void* pStateData
, DWORD dwFlags
);
606 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_Compose (LPDIRECTMUSICTRACK8 iface
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
607 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IDirectMusicTrack_Join (LPDIRECTMUSICTRACK8 iface
, IDirectMusicTrack
* pNewTrack
, MUSIC_TIME mtJoin
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
608 /* IPersistStream: */
609 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
610 extern ULONG WINAPI
IDirectMusicMarkerTrack_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
611 extern ULONG WINAPI
IDirectMusicMarkerTrack_IPersistStream_Release (LPPERSISTSTREAM iface
);
612 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
613 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
614 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
615 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
616 extern HRESULT WINAPI
IDirectMusicMarkerTrack_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
618 /*****************************************************************************
619 * IDirectMusicParamControlTrack implementation structure
621 struct IDirectMusicParamControlTrack
{
622 /* IUnknown fields */
623 ICOM_VTABLE(IUnknown
) *UnknownVtbl
;
624 ICOM_VTABLE(IDirectMusicTrack8
) *TrackVtbl
;
625 ICOM_VTABLE(IPersistStream
) *PersistStreamVtbl
;
628 /* IDirectMusicParamControlTrack fields */
629 LPDMUS_OBJECTDESC pDesc
;
633 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
634 extern ULONG WINAPI
IDirectMusicParamControlTrack_IUnknown_AddRef (LPUNKNOWN iface
);
635 extern ULONG WINAPI
IDirectMusicParamControlTrack_IUnknown_Release (LPUNKNOWN iface
);
636 /* IDirectMusicTrack(8): */
637 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_QueryInterface (LPDIRECTMUSICTRACK8 iface
, REFIID riid
, LPVOID
*ppobj
);
638 extern ULONG WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_AddRef (LPDIRECTMUSICTRACK8 iface
);
639 extern ULONG WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_Release (LPDIRECTMUSICTRACK8 iface
);
640 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_Init (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegment
* pSegment
);
641 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_InitPlay (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegmentState
* pSegmentState
, IDirectMusicPerformance
* pPerformance
, void** ppStateData
, DWORD dwVirtualTrackID
, DWORD dwFlags
);
642 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_EndPlay (LPDIRECTMUSICTRACK8 iface
, void* pStateData
);
643 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
);
644 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_GetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
645 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_SetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, void* pParam
);
646 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_IsParamSupported (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
);
647 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_AddNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
648 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_RemoveNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
649 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_Clone (LPDIRECTMUSICTRACK8 iface
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, IDirectMusicTrack
** ppTrack
);
650 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
);
651 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_GetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, REFERENCE_TIME
* prtNext
, void* pParam
, void* pStateData
, DWORD dwFlags
);
652 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_SetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, void* pParam
, void* pStateData
, DWORD dwFlags
);
653 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_Compose (LPDIRECTMUSICTRACK8 iface
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
654 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IDirectMusicTrack_Join (LPDIRECTMUSICTRACK8 iface
, IDirectMusicTrack
* pNewTrack
, MUSIC_TIME mtJoin
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
655 /* IPersistStream: */
656 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
657 extern ULONG WINAPI
IDirectMusicParamControlTrack_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
658 extern ULONG WINAPI
IDirectMusicParamControlTrack_IPersistStream_Release (LPPERSISTSTREAM iface
);
659 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
660 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
661 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
662 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
663 extern HRESULT WINAPI
IDirectMusicParamControlTrack_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
665 /*****************************************************************************
666 * IDirectMusicSegTriggerTrack implementation structure
668 struct IDirectMusicSegTriggerTrack
{
669 /* IUnknown fields */
670 ICOM_VTABLE(IUnknown
) *UnknownVtbl
;
671 ICOM_VTABLE(IDirectMusicTrack8
) *TrackVtbl
;
672 ICOM_VTABLE(IPersistStream
) *PersistStreamVtbl
;
675 /* IDirectMusicSegTriggerTrack fields */
676 LPDMUS_OBJECTDESC pDesc
;
682 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
683 extern ULONG WINAPI
IDirectMusicSegTriggerTrack_IUnknown_AddRef (LPUNKNOWN iface
);
684 extern ULONG WINAPI
IDirectMusicSegTriggerTrack_IUnknown_Release (LPUNKNOWN iface
);
685 /* IDirectMusicTrack(8): */
686 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_QueryInterface (LPDIRECTMUSICTRACK8 iface
, REFIID riid
, LPVOID
*ppobj
);
687 extern ULONG WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_AddRef (LPDIRECTMUSICTRACK8 iface
);
688 extern ULONG WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_Release (LPDIRECTMUSICTRACK8 iface
);
689 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_Init (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegment
* pSegment
);
690 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_InitPlay (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegmentState
* pSegmentState
, IDirectMusicPerformance
* pPerformance
, void** ppStateData
, DWORD dwVirtualTrackID
, DWORD dwFlags
);
691 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_EndPlay (LPDIRECTMUSICTRACK8 iface
, void* pStateData
);
692 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
);
693 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_GetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
694 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_SetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, void* pParam
);
695 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_IsParamSupported (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
);
696 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_AddNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
697 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_RemoveNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
698 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_Clone (LPDIRECTMUSICTRACK8 iface
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, IDirectMusicTrack
** ppTrack
);
699 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
);
700 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_GetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, REFERENCE_TIME
* prtNext
, void* pParam
, void* pStateData
, DWORD dwFlags
);
701 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_SetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, void* pParam
, void* pStateData
, DWORD dwFlags
);
702 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_Compose (LPDIRECTMUSICTRACK8 iface
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
703 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IDirectMusicTrack_Join (LPDIRECTMUSICTRACK8 iface
, IDirectMusicTrack
* pNewTrack
, MUSIC_TIME mtJoin
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
704 /* IPersistStream: */
705 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
706 extern ULONG WINAPI
IDirectMusicSegTriggerTrack_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
707 extern ULONG WINAPI
IDirectMusicSegTriggerTrack_IPersistStream_Release (LPPERSISTSTREAM iface
);
708 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
709 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
710 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
711 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
712 extern HRESULT WINAPI
IDirectMusicSegTriggerTrack_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
714 /*****************************************************************************
715 * IDirectMusicSeqTrack implementation structure
717 struct IDirectMusicSeqTrack
{
718 /* IUnknown fields */
719 ICOM_VTABLE(IUnknown
) *UnknownVtbl
;
720 ICOM_VTABLE(IDirectMusicTrack8
) *TrackVtbl
;
721 ICOM_VTABLE(IPersistStream
) *PersistStreamVtbl
;
724 /* IDirectMusicSeqTrack fields */
725 LPDMUS_OBJECTDESC pDesc
;
729 extern HRESULT WINAPI
IDirectMusicSeqTrack_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
730 extern ULONG WINAPI
IDirectMusicSeqTrack_IUnknown_AddRef (LPUNKNOWN iface
);
731 extern ULONG WINAPI
IDirectMusicSeqTrack_IUnknown_Release (LPUNKNOWN iface
);
732 /* IDirectMusicTrack(8): */
733 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_QueryInterface (LPDIRECTMUSICTRACK8 iface
, REFIID riid
, LPVOID
*ppobj
);
734 extern ULONG WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_AddRef (LPDIRECTMUSICTRACK8 iface
);
735 extern ULONG WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_Release (LPDIRECTMUSICTRACK8 iface
);
736 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_Init (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegment
* pSegment
);
737 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_InitPlay (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegmentState
* pSegmentState
, IDirectMusicPerformance
* pPerformance
, void** ppStateData
, DWORD dwVirtualTrackID
, DWORD dwFlags
);
738 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_EndPlay (LPDIRECTMUSICTRACK8 iface
, void* pStateData
);
739 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
);
740 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_GetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
741 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_SetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, void* pParam
);
742 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_IsParamSupported (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
);
743 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_AddNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
744 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_RemoveNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
745 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_Clone (LPDIRECTMUSICTRACK8 iface
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, IDirectMusicTrack
** ppTrack
);
746 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
);
747 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_GetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, REFERENCE_TIME
* prtNext
, void* pParam
, void* pStateData
, DWORD dwFlags
);
748 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_SetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, void* pParam
, void* pStateData
, DWORD dwFlags
);
749 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_Compose (LPDIRECTMUSICTRACK8 iface
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
750 extern HRESULT WINAPI
IDirectMusicSeqTrack_IDirectMusicTrack_Join (LPDIRECTMUSICTRACK8 iface
, IDirectMusicTrack
* pNewTrack
, MUSIC_TIME mtJoin
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
751 /* IPersistStream: */
752 extern HRESULT WINAPI
IDirectMusicSeqTrack_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
753 extern ULONG WINAPI
IDirectMusicSeqTrack_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
754 extern ULONG WINAPI
IDirectMusicSeqTrack_IPersistStream_Release (LPPERSISTSTREAM iface
);
755 extern HRESULT WINAPI
IDirectMusicSeqTrack_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
756 extern HRESULT WINAPI
IDirectMusicSeqTrack_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
757 extern HRESULT WINAPI
IDirectMusicSeqTrack_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
758 extern HRESULT WINAPI
IDirectMusicSeqTrack_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
759 extern HRESULT WINAPI
IDirectMusicSeqTrack_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
761 /*****************************************************************************
762 * IDirectMusicSysExTrack implementation structure
764 struct IDirectMusicSysExTrack
{
765 /* IUnknown fields */
766 ICOM_VTABLE(IUnknown
) *UnknownVtbl
;
767 ICOM_VTABLE(IDirectMusicTrack8
) *TrackVtbl
;
768 ICOM_VTABLE(IPersistStream
) *PersistStreamVtbl
;
771 /* IDirectMusicSysExTrack fields */
772 LPDMUS_OBJECTDESC pDesc
;
776 extern HRESULT WINAPI
IDirectMusicSysExTrack_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
777 extern ULONG WINAPI
IDirectMusicSysExTrack_IUnknown_AddRef (LPUNKNOWN iface
);
778 extern ULONG WINAPI
IDirectMusicSysExTrack_IUnknown_Release (LPUNKNOWN iface
);
779 /* IDirectMusicTrack(8): */
780 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_QueryInterface (LPDIRECTMUSICTRACK8 iface
, REFIID riid
, LPVOID
*ppobj
);
781 extern ULONG WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_AddRef (LPDIRECTMUSICTRACK8 iface
);
782 extern ULONG WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_Release (LPDIRECTMUSICTRACK8 iface
);
783 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_Init (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegment
* pSegment
);
784 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_InitPlay (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegmentState
* pSegmentState
, IDirectMusicPerformance
* pPerformance
, void** ppStateData
, DWORD dwVirtualTrackID
, DWORD dwFlags
);
785 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_EndPlay (LPDIRECTMUSICTRACK8 iface
, void* pStateData
);
786 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
);
787 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_GetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
788 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_SetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, void* pParam
);
789 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_IsParamSupported (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
);
790 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_AddNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
791 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_RemoveNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
792 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_Clone (LPDIRECTMUSICTRACK8 iface
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, IDirectMusicTrack
** ppTrack
);
793 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
);
794 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_GetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, REFERENCE_TIME
* prtNext
, void* pParam
, void* pStateData
, DWORD dwFlags
);
795 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_SetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, void* pParam
, void* pStateData
, DWORD dwFlags
);
796 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_Compose (LPDIRECTMUSICTRACK8 iface
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
797 extern HRESULT WINAPI
IDirectMusicSysExTrack_IDirectMusicTrack_Join (LPDIRECTMUSICTRACK8 iface
, IDirectMusicTrack
* pNewTrack
, MUSIC_TIME mtJoin
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
798 /* IPersistStream: */
799 extern HRESULT WINAPI
IDirectMusicSysExTrack_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
800 extern ULONG WINAPI
IDirectMusicSysExTrack_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
801 extern ULONG WINAPI
IDirectMusicSysExTrack_IPersistStream_Release (LPPERSISTSTREAM iface
);
802 extern HRESULT WINAPI
IDirectMusicSysExTrack_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
803 extern HRESULT WINAPI
IDirectMusicSysExTrack_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
804 extern HRESULT WINAPI
IDirectMusicSysExTrack_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
805 extern HRESULT WINAPI
IDirectMusicSysExTrack_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
806 extern HRESULT WINAPI
IDirectMusicSysExTrack_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
808 /*****************************************************************************
809 * IDirectMusicTempoTrack implementation structure
811 struct IDirectMusicTempoTrack
{
812 /* IUnknown fields */
813 ICOM_VTABLE(IUnknown
) *UnknownVtbl
;
814 ICOM_VTABLE(IDirectMusicTrack8
) *TrackVtbl
;
815 ICOM_VTABLE(IPersistStream
) *PersistStreamVtbl
;
818 /* IDirectMusicTempoTrack fields */
819 LPDMUS_OBJECTDESC pDesc
;
825 extern HRESULT WINAPI
IDirectMusicTempoTrack_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
826 extern ULONG WINAPI
IDirectMusicTempoTrack_IUnknown_AddRef (LPUNKNOWN iface
);
827 extern ULONG WINAPI
IDirectMusicTempoTrack_IUnknown_Release (LPUNKNOWN iface
);
828 /* IDirectMusicTrack(8): */
829 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_QueryInterface (LPDIRECTMUSICTRACK8 iface
, REFIID riid
, LPVOID
*ppobj
);
830 extern ULONG WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_AddRef (LPDIRECTMUSICTRACK8 iface
);
831 extern ULONG WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_Release (LPDIRECTMUSICTRACK8 iface
);
832 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_Init (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegment
* pSegment
);
833 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_InitPlay (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegmentState
* pSegmentState
, IDirectMusicPerformance
* pPerformance
, void** ppStateData
, DWORD dwVirtualTrackID
, DWORD dwFlags
);
834 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_EndPlay (LPDIRECTMUSICTRACK8 iface
, void* pStateData
);
835 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
);
836 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_GetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
837 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_SetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, void* pParam
);
838 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_IsParamSupported (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
);
839 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_AddNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
840 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_RemoveNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
841 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_Clone (LPDIRECTMUSICTRACK8 iface
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, IDirectMusicTrack
** ppTrack
);
842 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
);
843 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_GetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, REFERENCE_TIME
* prtNext
, void* pParam
, void* pStateData
, DWORD dwFlags
);
844 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_SetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, void* pParam
, void* pStateData
, DWORD dwFlags
);
845 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_Compose (LPDIRECTMUSICTRACK8 iface
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
846 extern HRESULT WINAPI
IDirectMusicTempoTrack_IDirectMusicTrack_Join (LPDIRECTMUSICTRACK8 iface
, IDirectMusicTrack
* pNewTrack
, MUSIC_TIME mtJoin
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
847 /* IPersistStream: */
848 extern HRESULT WINAPI
IDirectMusicTempoTrack_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
849 extern ULONG WINAPI
IDirectMusicTempoTrack_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
850 extern ULONG WINAPI
IDirectMusicTempoTrack_IPersistStream_Release (LPPERSISTSTREAM iface
);
851 extern HRESULT WINAPI
IDirectMusicTempoTrack_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
852 extern HRESULT WINAPI
IDirectMusicTempoTrack_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
853 extern HRESULT WINAPI
IDirectMusicTempoTrack_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
854 extern HRESULT WINAPI
IDirectMusicTempoTrack_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
855 extern HRESULT WINAPI
IDirectMusicTempoTrack_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
857 /*****************************************************************************
858 * IDirectMusicTimeSigTrack implementation structure
860 struct IDirectMusicTimeSigTrack
{
861 /* IUnknown fields */
862 ICOM_VTABLE(IUnknown
) *UnknownVtbl
;
863 ICOM_VTABLE(IDirectMusicTrack8
) *TrackVtbl
;
864 ICOM_VTABLE(IPersistStream
) *PersistStreamVtbl
;
867 /* IDirectMusicTimeSigTrack fields */
868 LPDMUS_OBJECTDESC pDesc
;
872 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
873 extern ULONG WINAPI
IDirectMusicTimeSigTrack_IUnknown_AddRef (LPUNKNOWN iface
);
874 extern ULONG WINAPI
IDirectMusicTimeSigTrack_IUnknown_Release (LPUNKNOWN iface
);
875 /* IDirectMusicTrack(8): */
876 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_QueryInterface (LPDIRECTMUSICTRACK8 iface
, REFIID riid
, LPVOID
*ppobj
);
877 extern ULONG WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_AddRef (LPDIRECTMUSICTRACK8 iface
);
878 extern ULONG WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_Release (LPDIRECTMUSICTRACK8 iface
);
879 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_Init (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegment
* pSegment
);
880 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_InitPlay (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegmentState
* pSegmentState
, IDirectMusicPerformance
* pPerformance
, void** ppStateData
, DWORD dwVirtualTrackID
, DWORD dwFlags
);
881 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_EndPlay (LPDIRECTMUSICTRACK8 iface
, void* pStateData
);
882 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
);
883 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_GetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
884 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_SetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, void* pParam
);
885 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_IsParamSupported (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
);
886 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_AddNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
887 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_RemoveNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
888 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_Clone (LPDIRECTMUSICTRACK8 iface
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, IDirectMusicTrack
** ppTrack
);
889 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
);
890 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_GetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, REFERENCE_TIME
* prtNext
, void* pParam
, void* pStateData
, DWORD dwFlags
);
891 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_SetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, void* pParam
, void* pStateData
, DWORD dwFlags
);
892 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_Compose (LPDIRECTMUSICTRACK8 iface
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
893 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IDirectMusicTrack_Join (LPDIRECTMUSICTRACK8 iface
, IDirectMusicTrack
* pNewTrack
, MUSIC_TIME mtJoin
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
894 /* IPersistStream: */
895 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
896 extern ULONG WINAPI
IDirectMusicTimeSigTrack_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
897 extern ULONG WINAPI
IDirectMusicTimeSigTrack_IPersistStream_Release (LPPERSISTSTREAM iface
);
898 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
899 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
900 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
901 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
902 extern HRESULT WINAPI
IDirectMusicTimeSigTrack_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
904 /*****************************************************************************
905 * IDirectMusicWaveTrack implementation structure
907 struct IDirectMusicWaveTrack
{
908 /* IUnknown fields */
909 ICOM_VTABLE(IUnknown
) *UnknownVtbl
;
910 ICOM_VTABLE(IDirectMusicTrack8
) *TrackVtbl
;
911 ICOM_VTABLE(IPersistStream
) *PersistStreamVtbl
;
914 /* IDirectMusicWaveTrack fields */
915 LPDMUS_OBJECTDESC pDesc
;
919 extern HRESULT WINAPI
IDirectMusicWaveTrack_IUnknown_QueryInterface (LPUNKNOWN iface
, REFIID riid
, LPVOID
*ppobj
);
920 extern ULONG WINAPI
IDirectMusicWaveTrack_IUnknown_AddRef (LPUNKNOWN iface
);
921 extern ULONG WINAPI
IDirectMusicWaveTrack_IUnknown_Release (LPUNKNOWN iface
);
922 /* IDirectMusicTrack(8): */
923 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_QueryInterface (LPDIRECTMUSICTRACK8 iface
, REFIID riid
, LPVOID
*ppobj
);
924 extern ULONG WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_AddRef (LPDIRECTMUSICTRACK8 iface
);
925 extern ULONG WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_Release (LPDIRECTMUSICTRACK8 iface
);
926 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_Init (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegment
* pSegment
);
927 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_InitPlay (LPDIRECTMUSICTRACK8 iface
, IDirectMusicSegmentState
* pSegmentState
, IDirectMusicPerformance
* pPerformance
, void** ppStateData
, DWORD dwVirtualTrackID
, DWORD dwFlags
);
928 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_EndPlay (LPDIRECTMUSICTRACK8 iface
, void* pStateData
);
929 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
);
930 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_GetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, MUSIC_TIME
* pmtNext
, void* pParam
);
931 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_SetParam (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, MUSIC_TIME mtTime
, void* pParam
);
932 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_IsParamSupported (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
);
933 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_AddNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
934 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_RemoveNotificationType (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidNotificationType
);
935 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_Clone (LPDIRECTMUSICTRACK8 iface
, MUSIC_TIME mtStart
, MUSIC_TIME mtEnd
, IDirectMusicTrack
** ppTrack
);
936 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
);
937 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_GetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, REFERENCE_TIME
* prtNext
, void* pParam
, void* pStateData
, DWORD dwFlags
);
938 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_SetParamEx (LPDIRECTMUSICTRACK8 iface
, REFGUID rguidType
, REFERENCE_TIME rtTime
, void* pParam
, void* pStateData
, DWORD dwFlags
);
939 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_Compose (LPDIRECTMUSICTRACK8 iface
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
940 extern HRESULT WINAPI
IDirectMusicWaveTrack_IDirectMusicTrack_Join (LPDIRECTMUSICTRACK8 iface
, IDirectMusicTrack
* pNewTrack
, MUSIC_TIME mtJoin
, IUnknown
* pContext
, DWORD dwTrackGroup
, IDirectMusicTrack
** ppResultTrack
);
941 /* IPersistStream: */
942 extern HRESULT WINAPI
IDirectMusicWaveTrack_IPersistStream_QueryInterface (LPPERSISTSTREAM iface
, REFIID riid
, void** ppvObject
);
943 extern ULONG WINAPI
IDirectMusicWaveTrack_IPersistStream_AddRef (LPPERSISTSTREAM iface
);
944 extern ULONG WINAPI
IDirectMusicWaveTrack_IPersistStream_Release (LPPERSISTSTREAM iface
);
945 extern HRESULT WINAPI
IDirectMusicWaveTrack_IPersistStream_GetClassID (LPPERSISTSTREAM iface
, CLSID
* pClassID
);
946 extern HRESULT WINAPI
IDirectMusicWaveTrack_IPersistStream_IsDirty (LPPERSISTSTREAM iface
);
947 extern HRESULT WINAPI
IDirectMusicWaveTrack_IPersistStream_Load (LPPERSISTSTREAM iface
, IStream
* pStm
);
948 extern HRESULT WINAPI
IDirectMusicWaveTrack_IPersistStream_Save (LPPERSISTSTREAM iface
, IStream
* pStm
, BOOL fClearDirty
);
949 extern HRESULT WINAPI
IDirectMusicWaveTrack_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface
, ULARGE_INTEGER
* pcbSize
);
952 /*****************************************************************************
958 #endif /* __WINE_DMIME_PRIVATE_H */