ReactOS 0.4.17-dev-934-g091855f
commandtrack.c File Reference
#include "dmstyle_private.h"
#include "dmobject.h"
Include dependency graph for commandtrack.c:

Go to the source code of this file.

Classes

struct  IDirectMusicCommandTrack
 

Typedefs

typedef struct IDirectMusicCommandTrack IDirectMusicCommandTrack
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (dmstyle)
 
 WINE_DECLARE_DEBUG_CHANNEL (dmfile)
 
static IDirectMusicCommandTrack * impl_from_IDirectMusicTrack8 (IDirectMusicTrack8 *iface)
 
static HRESULT WINAPI command_track_QueryInterface (IDirectMusicTrack8 *iface, REFIID riid, void **ret_iface)
 
static ULONG WINAPI command_track_AddRef (IDirectMusicTrack8 *iface)
 
static ULONG WINAPI command_track_Release (IDirectMusicTrack8 *iface)
 
static HRESULT WINAPI command_track_Init (IDirectMusicTrack8 *iface, IDirectMusicSegment *pSegment)
 
static HRESULT WINAPI command_track_InitPlay (IDirectMusicTrack8 *iface, IDirectMusicSegmentState *pSegmentState, IDirectMusicPerformance *pPerformance, void **ppStateData, DWORD dwVirtualTrack8ID, DWORD dwFlags)
 
static HRESULT WINAPI command_track_EndPlay (IDirectMusicTrack8 *iface, void *pStateData)
 
static HRESULT WINAPI command_track_Play (IDirectMusicTrack8 *iface, void *pStateData, MUSIC_TIME mtStart, MUSIC_TIME mtEnd, MUSIC_TIME mtOffset, DWORD dwFlags, IDirectMusicPerformance *pPerf, IDirectMusicSegmentState *pSegSt, DWORD dwVirtualID)
 
static HRESULT WINAPI command_track_GetParam (IDirectMusicTrack8 *iface, REFGUID type, MUSIC_TIME time, MUSIC_TIME *next, void *param)
 
static HRESULT WINAPI command_track_SetParam (IDirectMusicTrack8 *iface, REFGUID type, MUSIC_TIME time, void *param)
 
static HRESULT WINAPI command_track_IsParamSupported (IDirectMusicTrack8 *iface, REFGUID rguidType)
 
static HRESULT WINAPI command_track_AddNotificationType (IDirectMusicTrack8 *iface, REFGUID rguidNotificationType)
 
static HRESULT WINAPI command_track_RemoveNotificationType (IDirectMusicTrack8 *iface, REFGUID rguidNotificationType)
 
static HRESULT WINAPI command_track_Clone (IDirectMusicTrack8 *iface, MUSIC_TIME mtStart, MUSIC_TIME mtEnd, IDirectMusicTrack **ppTrack)
 
static HRESULT WINAPI command_track_PlayEx (IDirectMusicTrack8 *iface, void *pStateData, REFERENCE_TIME rtStart, REFERENCE_TIME rtEnd, REFERENCE_TIME rtOffset, DWORD dwFlags, IDirectMusicPerformance *pPerf, IDirectMusicSegmentState *pSegSt, DWORD dwVirtualID)
 
static HRESULT WINAPI command_track_GetParamEx (IDirectMusicTrack8 *iface, REFGUID rguidType, REFERENCE_TIME rtTime, REFERENCE_TIME *prtNext, void *pParam, void *pStateData, DWORD dwFlags)
 
static HRESULT WINAPI command_track_SetParamEx (IDirectMusicTrack8 *iface, REFGUID rguidType, REFERENCE_TIME rtTime, void *pParam, void *pStateData, DWORD dwFlags)
 
static HRESULT WINAPI command_track_Compose (IDirectMusicTrack8 *iface, IUnknown *context, DWORD trackgroup, IDirectMusicTrack **track)
 
static HRESULT WINAPI command_track_Join (IDirectMusicTrack8 *iface, IDirectMusicTrack *pNewTrack, MUSIC_TIME mtJoin, IUnknown *pContext, DWORD dwTrackGroup, IDirectMusicTrack **ppResultTrack)
 
static IDirectMusicCommandTrack * impl_from_IPersistStream (IPersistStream *iface)
 
static HRESULT WINAPI IPersistStreamImpl_Load (IPersistStream *iface, IStream *pStm)
 
static HRESULT WINAPI IPersistStreamImpl_Save (IPersistStream *iface, IStream *stream, BOOL cleardirty)
 
HRESULT create_dmcommandtrack (REFIID lpcGUID, void **ppobj)
 

Variables

static const IDirectMusicTrack8Vtbl dmtrack8_vtbl
 
static const IPersistStreamVtbl persiststream_vtbl
 

Typedef Documentation

◆ IDirectMusicCommandTrack

Function Documentation

◆ command_track_AddNotificationType()

static HRESULT WINAPI command_track_AddNotificationType ( IDirectMusicTrack8 *  iface,
REFGUID  rguidNotificationType 
)
static

Definition at line 184 of file commandtrack.c.

186{
188 FIXME("(%p, %s): stub\n", This, debugstr_dmguid(rguidNotificationType));
189 return S_OK;
190}
#define FIXME(fmt,...)
Definition: precomp.h:53
static IDirectMusicCommandTrack * impl_from_IDirectMusicTrack8(IDirectMusicTrack8 *iface)
Definition: commandtrack.c:37
const char * debugstr_dmguid(const GUID *id)
Definition: dmobject.c:36
#define S_OK
Definition: intsafe.h:52

◆ command_track_AddRef()

static ULONG WINAPI command_track_AddRef ( IDirectMusicTrack8 *  iface)
static

Definition at line 65 of file commandtrack.c.

66{
69
70 TRACE("(%p) ref=%ld\n", This, ref);
71
72 return ref;
73}
#define InterlockedIncrement
Definition: armddk.h:53
long LONG
Definition: pedump.c:60
#define TRACE(s)
Definition: solgame.cpp:4
Definition: send.c:48

◆ command_track_Clone()

static HRESULT WINAPI command_track_Clone ( IDirectMusicTrack8 *  iface,
MUSIC_TIME  mtStart,
MUSIC_TIME  mtEnd,
IDirectMusicTrack **  ppTrack 
)
static

Definition at line 200 of file commandtrack.c.

202{
204 FIXME("(%p, %ld, %ld, %p): stub\n", This, mtStart, mtEnd, ppTrack);
205 return S_OK;
206}

◆ command_track_Compose()

static HRESULT WINAPI command_track_Compose ( IDirectMusicTrack8 *  iface,
IUnknown *  context,
DWORD  trackgroup,
IDirectMusicTrack **  track 
)
static

Definition at line 237 of file commandtrack.c.

239{
241
242 TRACE("(%p, %p, %ld, %p): method not implemented\n", This, context, trackgroup, track);
243 return E_NOTIMPL;
244}
#define E_NOTIMPL
Definition: ddrawi.h:99
Definition: http.c:7252

◆ command_track_EndPlay()

static HRESULT WINAPI command_track_EndPlay ( IDirectMusicTrack8 *  iface,
void *  pStateData 
)
static

Definition at line 103 of file commandtrack.c.

104{
106 FIXME("(%p, %p): stub\n", This, pStateData);
107 return S_OK;
108}

◆ command_track_GetParam()

static HRESULT WINAPI command_track_GetParam ( IDirectMusicTrack8 *  iface,
REFGUID  type,
MUSIC_TIME  time,
MUSIC_TIME *  next,
void *  param 
)
static

Definition at line 119 of file commandtrack.c.

121{
123
124 TRACE("(%p, %s, %ld, %p, %p):\n", This, debugstr_dmguid(type), time, next, param);
125
126 if (!type)
127 return E_POINTER;
128
129 if (IsEqualGUID(type, &GUID_CommandParam)) {
130 FIXME("GUID_CommandParam not handled yet\n");
131 return S_OK;
132 } else if (IsEqualGUID(type, &GUID_CommandParam2)) {
133 FIXME("GUID_CommandParam2 not handled yet\n");
134 return S_OK;
135 } else if (IsEqualGUID(type, &GUID_CommandParamNext)) {
136 FIXME("GUID_CommandParamNext not handled yet\n");
137 return S_OK;
138 }
139
141}
#define DMUS_E_GET_UNSUPPORTED
Definition: dmerror.h:72
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GLfloat param
Definition: glext.h:5796
__u16 time
Definition: mkdosfs.c:8
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
static unsigned __int64 next
Definition: rand_nt.c:6
#define E_POINTER
Definition: winerror.h:3480

◆ command_track_GetParamEx()

static HRESULT WINAPI command_track_GetParamEx ( IDirectMusicTrack8 *  iface,
REFGUID  rguidType,
REFERENCE_TIME  rtTime,
REFERENCE_TIME *  prtNext,
void *  pParam,
void *  pStateData,
DWORD  dwFlags 
)
static

Definition at line 218 of file commandtrack.c.

221{
223 FIXME("(%p, %s, 0x%s, %p, %p, %p, %ld): stub\n", This, debugstr_dmguid(rguidType),
224 wine_dbgstr_longlong(rtTime), prtNext, pParam, pStateData, dwFlags);
225 return S_OK;
226}
static __inline const char * wine_dbgstr_longlong(ULONGLONG ll)
Definition: compat.h:49
_In_ LPWSTR _In_ DWORD _In_ DWORD _In_ DWORD dwFlags
Definition: netsh.h:141

◆ command_track_Init()

static HRESULT WINAPI command_track_Init ( IDirectMusicTrack8 *  iface,
IDirectMusicSegment *  pSegment 
)
static

Definition at line 87 of file commandtrack.c.

88{
90 FIXME("(%p, %p): stub\n", This, pSegment);
91 return S_OK;
92}

◆ command_track_InitPlay()

static HRESULT WINAPI command_track_InitPlay ( IDirectMusicTrack8 *  iface,
IDirectMusicSegmentState *  pSegmentState,
IDirectMusicPerformance *  pPerformance,
void **  ppStateData,
DWORD  dwVirtualTrack8ID,
DWORD  dwFlags 
)
static

Definition at line 94 of file commandtrack.c.

97{
99 FIXME("(%p, %p, %p, %p, %ld, %ld): stub\n", This, pSegmentState, pPerformance, ppStateData, dwVirtualTrack8ID, dwFlags);
100 return S_OK;
101}

◆ command_track_IsParamSupported()

static HRESULT WINAPI command_track_IsParamSupported ( IDirectMusicTrack8 *  iface,
REFGUID  rguidType 
)
static

Definition at line 164 of file commandtrack.c.

165{
167
168 TRACE("(%p, %s)\n", This, debugstr_dmguid(rguidType));
169
170 if (!rguidType)
171 return E_POINTER;
172
173 if (IsEqualGUID (rguidType, &GUID_CommandParam)
174 || IsEqualGUID (rguidType, &GUID_CommandParam2)
175 || IsEqualGUID (rguidType, &GUID_CommandParamNext)) {
176 TRACE("param supported\n");
177 return S_OK;
178 }
179
180 TRACE("param unsupported\n");
182}
#define DMUS_E_TYPE_UNSUPPORTED
Definition: dmerror.h:112

◆ command_track_Join()

static HRESULT WINAPI command_track_Join ( IDirectMusicTrack8 *  iface,
IDirectMusicTrack *  pNewTrack,
MUSIC_TIME  mtJoin,
IUnknown *  pContext,
DWORD  dwTrackGroup,
IDirectMusicTrack **  ppResultTrack 
)
static

Definition at line 246 of file commandtrack.c.

249{
251 FIXME("(%p, %p, %ld, %p, %ld, %p): stub\n", This, pNewTrack, mtJoin, pContext, dwTrackGroup, ppResultTrack);
252 return S_OK;
253}

◆ command_track_Play()

static HRESULT WINAPI command_track_Play ( IDirectMusicTrack8 *  iface,
void *  pStateData,
MUSIC_TIME  mtStart,
MUSIC_TIME  mtEnd,
MUSIC_TIME  mtOffset,
DWORD  dwFlags,
IDirectMusicPerformance *  pPerf,
IDirectMusicSegmentState *  pSegSt,
DWORD  dwVirtualID 
)
static

Definition at line 110 of file commandtrack.c.

113{
115 FIXME("(%p, %p, %ld, %ld, %ld, %ld, %p, %p, %ld): stub\n", This, pStateData, mtStart, mtEnd, mtOffset, dwFlags, pPerf, pSegSt, dwVirtualID);
116 return S_OK;
117}

◆ command_track_PlayEx()

static HRESULT WINAPI command_track_PlayEx ( IDirectMusicTrack8 *  iface,
void *  pStateData,
REFERENCE_TIME  rtStart,
REFERENCE_TIME  rtEnd,
REFERENCE_TIME  rtOffset,
DWORD  dwFlags,
IDirectMusicPerformance *  pPerf,
IDirectMusicSegmentState *  pSegSt,
DWORD  dwVirtualID 
)
static

Definition at line 208 of file commandtrack.c.

211{
213 FIXME("(%p, %p, 0x%s, 0x%s, 0x%s, %ld, %p, %p, %ld): stub\n", This, pStateData, wine_dbgstr_longlong(rtStart),
214 wine_dbgstr_longlong(rtEnd), wine_dbgstr_longlong(rtOffset), dwFlags, pPerf, pSegSt, dwVirtualID);
215 return S_OK;
216}

◆ command_track_QueryInterface()

static HRESULT WINAPI command_track_QueryInterface ( IDirectMusicTrack8 *  iface,
REFIID  riid,
void **  ret_iface 
)
static

Definition at line 42 of file commandtrack.c.

44{
46
47 TRACE("(%p, %s, %p)\n", This, debugstr_dmguid(riid), ret_iface);
48
49 *ret_iface = NULL;
50
51 if (IsEqualIID(riid, &IID_IUnknown) || IsEqualIID(riid, &IID_IDirectMusicTrack) ||
52 IsEqualIID(riid, &IID_IDirectMusicTrack8))
53 *ret_iface = iface;
55 *ret_iface = &This->dmobj.IPersistStream_iface;
56 else {
57 WARN("(%p, %s, %p): not found\n", This, debugstr_dmguid(riid), ret_iface);
58 return E_NOINTERFACE;
59 }
60
61 IUnknown_AddRef((IUnknown*)*ret_iface);
62 return S_OK;
63}
#define WARN(fmt,...)
Definition: precomp.h:61
const GUID IID_IUnknown
#define NULL
Definition: types.h:112
REFIID riid
Definition: atlbase.h:39
const GUID IID_IPersistStream
Definition: proxy.cpp:13
#define IsEqualIID(riid1, riid2)
Definition: guiddef.h:95
#define E_NOINTERFACE
Definition: winerror.h:3479

◆ command_track_Release()

static ULONG WINAPI command_track_Release ( IDirectMusicTrack8 *  iface)
static

Definition at line 75 of file commandtrack.c.

76{
79
80 TRACE("(%p) ref=%ld\n", This, ref);
81
82 if (!ref) free(This);
83
84 return ref;
85}
#define InterlockedDecrement
Definition: armddk.h:52
#define free
Definition: debug_ros.c:5

◆ command_track_RemoveNotificationType()

static HRESULT WINAPI command_track_RemoveNotificationType ( IDirectMusicTrack8 *  iface,
REFGUID  rguidNotificationType 
)
static

Definition at line 192 of file commandtrack.c.

194{
196 FIXME("(%p, %s): stub\n", This, debugstr_dmguid(rguidNotificationType));
197 return S_OK;
198}

◆ command_track_SetParam()

static HRESULT WINAPI command_track_SetParam ( IDirectMusicTrack8 *  iface,
REFGUID  type,
MUSIC_TIME  time,
void *  param 
)
static

Definition at line 143 of file commandtrack.c.

145{
147
148 TRACE("(%p, %s, %ld, %p)\n", This, debugstr_dmguid(type), time, param);
149
150 if (!type)
151 return E_POINTER;
152
153 if (IsEqualGUID(type, &GUID_CommandParam)) {
154 FIXME("GUID_CommandParam not handled yet\n");
155 return S_OK;
156 } else if (IsEqualGUID(type, &GUID_CommandParamNext)) {
157 FIXME("GUID_CommandParamNext not handled yet\n");
158 return S_OK;
159 }
160
162}
#define DMUS_E_SET_UNSUPPORTED
Definition: dmerror.h:71

◆ command_track_SetParamEx()

static HRESULT WINAPI command_track_SetParamEx ( IDirectMusicTrack8 *  iface,
REFGUID  rguidType,
REFERENCE_TIME  rtTime,
void *  pParam,
void *  pStateData,
DWORD  dwFlags 
)
static

Definition at line 228 of file commandtrack.c.

230{
232 FIXME("(%p, %s, 0x%s, %p, %p, %ld): stub\n", This, debugstr_dmguid(rguidType),
233 wine_dbgstr_longlong(rtTime), pParam, pStateData, dwFlags);
234 return S_OK;
235}

◆ create_dmcommandtrack()

HRESULT create_dmcommandtrack ( REFIID  lpcGUID,
void **  ppobj 
)

Definition at line 368 of file commandtrack.c.

369{
371 HRESULT hr;
372
373 *ppobj = NULL;
374 if (!(track = calloc(1, sizeof(*track)))) return E_OUTOFMEMORY;
376 track->ref = 1;
377 dmobject_init(&track->dmobj, &CLSID_DirectMusicCommandTrack,
379 track->dmobj.IPersistStream_iface.lpVtbl = &persiststream_vtbl;
380 list_init (&track->Commands);
381
383 lpcGUID, ppobj);
385
386 return hr;
387}
static void list_init(struct list_entry *head)
Definition: list.h:51
static const IPersistStreamVtbl persiststream_vtbl
Definition: commandtrack.c:356
static const IDirectMusicTrack8Vtbl dmtrack8_vtbl
Definition: commandtrack.c:255
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
HRESULT hr
Definition: delayimp.cpp:582
void dmobject_init(struct dmobject *dmobj, const GUID *class, IUnknown *outer_unk)
Definition: dmobject.c:749
#define IDirectMusicTrack8_Release(p)
Definition: dmplugin.h:275
#define IDirectMusicTrack8_QueryInterface(p, a, b)
Definition: dmplugin.h:273
#define calloc
Definition: rosglue.h:14
IDirectMusicTrack8 IDirectMusicTrack8_iface
Definition: commandtrack.c:30
struct dmobject dmobj
Definition: commandtrack.c:31

◆ impl_from_IDirectMusicTrack8()

◆ impl_from_IPersistStream()

static IDirectMusicCommandTrack * impl_from_IPersistStream ( IPersistStream *  iface)
inlinestatic

Definition at line 276 of file commandtrack.c.

277{
278 return CONTAINING_RECORD(iface, IDirectMusicCommandTrack, dmobj.IPersistStream_iface);
279}

Referenced by IPersistStreamImpl_Load(), and IPersistStreamImpl_Save().

◆ IPersistStreamImpl_Load()

static HRESULT WINAPI IPersistStreamImpl_Load ( IPersistStream *  iface,
IStream *  pStm 
)
static

Definition at line 281 of file commandtrack.c.

282{
284 FOURCC chunkID;
285 DWORD chunkSize, dwSizeOfStruct, nrCommands;
286 LARGE_INTEGER liMove; /* used when skipping chunks */
287
288 IStream_Read (pStm, &chunkID, sizeof(FOURCC), NULL);
289 IStream_Read (pStm, &chunkSize, sizeof(DWORD), NULL);
290 TRACE_(dmfile)(": %s chunk (size = %ld)", debugstr_fourcc (chunkID), chunkSize);
291 switch (chunkID) {
293 DWORD count;
294 TRACE_(dmfile)(": command track chunk\n");
295 IStream_Read (pStm, &dwSizeOfStruct, sizeof(DWORD), NULL);
296 if (dwSizeOfStruct != sizeof(DMUS_IO_COMMAND)) {
297 TRACE_(dmfile)(": declared size of struct (=%ld) != actual size; indicates older direct music version\n", dwSizeOfStruct);
298 }
299 chunkSize -= sizeof(DWORD); /* now chunk size is one DWORD shorter */
300 nrCommands = chunkSize/dwSizeOfStruct; /* and this is the number of commands */
301 /* load each command separately in new entry */
302 for (count = 0; count < nrCommands; count++) {
303 LPDMUS_PRIVATE_COMMAND pNewCommand = calloc(1, sizeof(*pNewCommand));
304 IStream_Read (pStm, &pNewCommand->pCommand, dwSizeOfStruct, NULL);
305 list_add_tail (&This->Commands, &pNewCommand->entry);
306 }
307 TRACE_(dmfile)(": reading finished\n");
308 This->dmobj.desc.dwValidData |= DMUS_OBJ_LOADED;
309 break;
310 }
311 default: {
312 TRACE_(dmfile)(": unexpected chunk; loading failed)\n");
313 liMove.QuadPart = chunkSize;
314 IStream_Seek (pStm, liMove, STREAM_SEEK_CUR, NULL); /* skip the rest of the chunk */
315 return E_FAIL;
316 }
317 }
318
319 /* DEBUG: dumps whole band track object tree: */
320 if (TRACE_ON(dmstyle)) {
321 int r = 0;
322 DMUS_PRIVATE_COMMAND *tmpEntry;
323 struct list *listEntry;
324 TRACE("*** IDirectMusicCommandTrack (%p) ***\n", This);
325 TRACE(" - Commands:\n");
326 LIST_FOR_EACH (listEntry, &This->Commands) {
327 tmpEntry = LIST_ENTRY (listEntry, DMUS_PRIVATE_COMMAND, entry);
328 TRACE(" - Command[%i]:\n", r);
329 TRACE(" - mtTime = %li\n", tmpEntry->pCommand.mtTime);
330 TRACE(" - wMeasure = %d\n", tmpEntry->pCommand.wMeasure);
331 TRACE(" - bBeat = %i\n", tmpEntry->pCommand.bBeat);
332 TRACE(" - bCommand = %i\n", tmpEntry->pCommand.bCommand);
333 TRACE(" - bGrooveLevel = %i\n", tmpEntry->pCommand.bGrooveLevel);
334 TRACE(" - bGrooveRange = %i\n", tmpEntry->pCommand.bGrooveRange);
335 TRACE(" - bRepeatMode = %i\n", tmpEntry->pCommand.bRepeatMode);
336 r++;
337 }
338 }
339
340 return S_OK;
341}
static void list_add_tail(struct list_entry *head, struct list_entry *entry)
Definition: list.h:83
Definition: list.h:39
static IDirectMusicCommandTrack * impl_from_IPersistStream(IPersistStream *iface)
Definition: commandtrack.c:276
#define E_FAIL
Definition: ddrawi.h:102
#define TRACE_(x)
Definition: compat.h:76
#define TRACE_ON(x)
Definition: compat.h:75
DWORD FOURCC
Definition: dmdls.h:25
#define DMUS_FOURCC_COMMANDTRACK_CHUNK
Definition: dmusicf.h:160
#define DMUS_OBJ_LOADED
Definition: dmusici.h:274
unsigned long DWORD
Definition: ntddk_ex.h:95
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
uint32_t entry
Definition: isohybrid.c:63
#define DWORD
Definition: nt_native.h:44
static __inline const char * debugstr_fourcc(unsigned int cc)
Definition: debug.h:397
#define LIST_FOR_EACH(cursor, list)
Definition: list.h:226
BYTE bGrooveLevel
Definition: dmusicf.h:623
BYTE bRepeatMode
Definition: dmusicf.h:625
BYTE bGrooveRange
Definition: dmusicf.h:624
MUSIC_TIME mtTime
Definition: dmusicf.h:619
DMUS_IO_COMMAND pCommand
#define LIST_ENTRY(type)
Definition: queue.h:175
LONGLONG QuadPart
Definition: typedefs.h:114

◆ IPersistStreamImpl_Save()

static HRESULT WINAPI IPersistStreamImpl_Save ( IPersistStream *  iface,
IStream *  stream,
BOOL  cleardirty 
)
static

Definition at line 343 of file commandtrack.c.

345{
347
348 FIXME("(%p, %p, %d): stub\n", This, stream, cleardirty);
349
350 if (!stream)
351 return E_POINTER;
352
353 return E_NOTIMPL;
354}
Definition: parse.h:23

◆ WINE_DECLARE_DEBUG_CHANNEL()

WINE_DECLARE_DEBUG_CHANNEL ( dmfile  )

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( dmstyle  )

Variable Documentation

◆ dmtrack8_vtbl

const IDirectMusicTrack8Vtbl dmtrack8_vtbl
static
Initial value:
= {
}
static HRESULT WINAPI command_track_QueryInterface(IDirectMusicTrack8 *iface, REFIID riid, void **ret_iface)
Definition: commandtrack.c:42
static HRESULT WINAPI command_track_Play(IDirectMusicTrack8 *iface, void *pStateData, MUSIC_TIME mtStart, MUSIC_TIME mtEnd, MUSIC_TIME mtOffset, DWORD dwFlags, IDirectMusicPerformance *pPerf, IDirectMusicSegmentState *pSegSt, DWORD dwVirtualID)
Definition: commandtrack.c:110
static HRESULT WINAPI command_track_RemoveNotificationType(IDirectMusicTrack8 *iface, REFGUID rguidNotificationType)
Definition: commandtrack.c:192
static HRESULT WINAPI command_track_SetParam(IDirectMusicTrack8 *iface, REFGUID type, MUSIC_TIME time, void *param)
Definition: commandtrack.c:143
static HRESULT WINAPI command_track_PlayEx(IDirectMusicTrack8 *iface, void *pStateData, REFERENCE_TIME rtStart, REFERENCE_TIME rtEnd, REFERENCE_TIME rtOffset, DWORD dwFlags, IDirectMusicPerformance *pPerf, IDirectMusicSegmentState *pSegSt, DWORD dwVirtualID)
Definition: commandtrack.c:208
static HRESULT WINAPI command_track_Compose(IDirectMusicTrack8 *iface, IUnknown *context, DWORD trackgroup, IDirectMusicTrack **track)
Definition: commandtrack.c:237
static HRESULT WINAPI command_track_AddNotificationType(IDirectMusicTrack8 *iface, REFGUID rguidNotificationType)
Definition: commandtrack.c:184
static HRESULT WINAPI command_track_InitPlay(IDirectMusicTrack8 *iface, IDirectMusicSegmentState *pSegmentState, IDirectMusicPerformance *pPerformance, void **ppStateData, DWORD dwVirtualTrack8ID, DWORD dwFlags)
Definition: commandtrack.c:94
static ULONG WINAPI command_track_Release(IDirectMusicTrack8 *iface)
Definition: commandtrack.c:75
static HRESULT WINAPI command_track_GetParam(IDirectMusicTrack8 *iface, REFGUID type, MUSIC_TIME time, MUSIC_TIME *next, void *param)
Definition: commandtrack.c:119
static HRESULT WINAPI command_track_Join(IDirectMusicTrack8 *iface, IDirectMusicTrack *pNewTrack, MUSIC_TIME mtJoin, IUnknown *pContext, DWORD dwTrackGroup, IDirectMusicTrack **ppResultTrack)
Definition: commandtrack.c:246
static HRESULT WINAPI command_track_SetParamEx(IDirectMusicTrack8 *iface, REFGUID rguidType, REFERENCE_TIME rtTime, void *pParam, void *pStateData, DWORD dwFlags)
Definition: commandtrack.c:228
static HRESULT WINAPI command_track_Init(IDirectMusicTrack8 *iface, IDirectMusicSegment *pSegment)
Definition: commandtrack.c:87
static HRESULT WINAPI command_track_EndPlay(IDirectMusicTrack8 *iface, void *pStateData)
Definition: commandtrack.c:103
static HRESULT WINAPI command_track_Clone(IDirectMusicTrack8 *iface, MUSIC_TIME mtStart, MUSIC_TIME mtEnd, IDirectMusicTrack **ppTrack)
Definition: commandtrack.c:200
static HRESULT WINAPI command_track_IsParamSupported(IDirectMusicTrack8 *iface, REFGUID rguidType)
Definition: commandtrack.c:164
static HRESULT WINAPI command_track_GetParamEx(IDirectMusicTrack8 *iface, REFGUID rguidType, REFERENCE_TIME rtTime, REFERENCE_TIME *prtNext, void *pParam, void *pStateData, DWORD dwFlags)
Definition: commandtrack.c:218
static ULONG WINAPI command_track_AddRef(IDirectMusicTrack8 *iface)
Definition: commandtrack.c:65

Definition at line 255 of file commandtrack.c.

Referenced by create_dmcommandtrack().

◆ persiststream_vtbl

const IPersistStreamVtbl persiststream_vtbl
static
Initial value:
= {
}
static HRESULT WINAPI IPersistStreamImpl_Save(IPersistStream *iface, IStream *stream, BOOL cleardirty)
Definition: commandtrack.c:343
static HRESULT WINAPI IPersistStreamImpl_Load(IPersistStream *iface, IStream *pStm)
Definition: commandtrack.c:281
ULONG WINAPI dmobj_IPersistStream_Release(IPersistStream *iface)
Definition: dmobject.c:702
HRESULT WINAPI unimpl_IPersistStream_GetSizeMax(IPersistStream *iface, ULARGE_INTEGER *size)
Definition: dmobject.c:742
HRESULT WINAPI dmobj_IPersistStream_GetClassID(IPersistStream *iface, CLSID *class)
Definition: dmobject.c:708
ULONG WINAPI dmobj_IPersistStream_AddRef(IPersistStream *iface)
Definition: dmobject.c:696
HRESULT WINAPI dmobj_IPersistStream_QueryInterface(IPersistStream *iface, REFIID riid, void **ret_iface)
Definition: dmobject.c:689
HRESULT WINAPI unimpl_IPersistStream_IsDirty(IPersistStream *iface)
Definition: dmobject.c:729

Definition at line 356 of file commandtrack.c.

Referenced by create_dmcommandtrack().