system.drv16: Remove an unneeded NONAMELESSSTRUCT directive.
[wine.git] / dlls / dmime / dmime_private.h
blob35b51a251fe1fadac664b0b7154c8269ce122f94
1 /* DirectMusicInteractiveEngine Private Include
3 * Copyright (C) 2003-2004 Rok Mandeljc
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (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 GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #ifndef __WINE_DMIME_PRIVATE_H
21 #define __WINE_DMIME_PRIVATE_H
23 #include <stdio.h>
24 #include <stdarg.h>
25 #include <string.h>
27 #define COBJMACROS
29 #include "windef.h"
30 #include "winbase.h"
31 #include "winnt.h"
32 #include "wingdi.h"
33 #include "winuser.h"
35 #include "wine/debug.h"
36 #include "wine/list.h"
37 #include "wine/unicode.h"
38 #include "winreg.h"
39 #include "objbase.h"
41 #include "dmusici.h"
42 #include "dmusicf.h"
43 #include "dmusics.h"
44 #include "dmusicc.h"
46 /*****************************************************************************
47 * Interfaces
49 typedef struct IDirectMusicGraphImpl IDirectMusicGraphImpl;
50 typedef struct IDirectMusicAudioPathImpl IDirectMusicAudioPathImpl;
52 typedef struct IDirectMusicLyricsTrack IDirectMusicLyricsTrack;
53 typedef struct IDirectMusicMarkerTrack IDirectMusicMarkerTrack;
54 typedef struct IDirectMusicParamControlTrack IDirectMusicParamControlTrack;
55 typedef struct IDirectMusicSegTriggerTrack IDirectMusicSegTriggerTrack;
56 typedef struct IDirectMusicSeqTrack IDirectMusicSeqTrack;
57 typedef struct IDirectMusicSysExTrack IDirectMusicSysExTrack;
58 typedef struct IDirectMusicTempoTrack IDirectMusicTempoTrack;
59 typedef struct IDirectMusicTimeSigTrack IDirectMusicTimeSigTrack;
60 typedef struct IDirectMusicWaveTrack IDirectMusicWaveTrack;
62 /*****************************************************************************
63 * ClassFactory
65 extern HRESULT WINAPI create_dmperformance(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
66 extern HRESULT WINAPI create_dmsegment(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
67 extern HRESULT WINAPI create_dmsegmentstate(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
68 extern HRESULT WINAPI create_dmgraph(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
69 extern HRESULT WINAPI create_dmaudiopath(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
71 extern HRESULT WINAPI create_dmlyricstrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
72 extern HRESULT WINAPI create_dmmarkertrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
73 extern HRESULT WINAPI create_dmparamcontroltrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
74 extern HRESULT WINAPI create_dmsegtriggertrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
75 extern HRESULT WINAPI create_dmseqtrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
76 extern HRESULT WINAPI create_dmsysextrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
77 extern HRESULT WINAPI create_dmtempotrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
78 extern HRESULT WINAPI create_dmtimesigtrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
79 extern HRESULT WINAPI create_dmwavetrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
82 /*****************************************************************************
83 * Auxiliary definitions
85 typedef struct _DMUS_PRIVATE_SEGMENT_TRACK {
86 struct list entry; /* for listing elements */
87 DWORD dwGroupBits;
88 IDirectMusicTrack* pTrack;
89 } DMUS_PRIVATE_SEGMENT_TRACK, *LPDMUS_PRIVATE_SEGMENT_TRACK;
91 typedef struct _DMUS_PRIVATE_TEMPO_ITEM {
92 struct list entry; /* for listing elements */
93 DMUS_IO_TEMPO_ITEM item;
94 } DMUS_PRIVATE_TEMPO_ITEM, *LPDMUS_PRIVATE_TEMPO_ITEM;
96 typedef struct _DMUS_PRIVATE_SEGMENT_ITEM {
97 struct list entry; /* for listing elements */
98 DMUS_IO_SEGMENT_ITEM_HEADER header;
99 IDirectMusicObject* pObject;
100 WCHAR wszName[DMUS_MAX_NAME];
101 } DMUS_PRIVATE_SEGMENT_ITEM, *LPDMUS_PRIVATE_SEGMENT_ITEM;
103 typedef struct _DMUS_PRIVATE_GRAPH_TOOL {
104 struct list entry; /* for listing elements */
105 DWORD dwIndex;
106 IDirectMusicTool* pTool;
107 } DMUS_PRIVATE_GRAPH_TOOL, *LPDMUS_PRIVATE_GRAPH_TOOL;
109 typedef struct _DMUS_PRIVATE_TEMPO_PLAY_STATE {
110 DWORD dummy;
111 } DMUS_PRIVATE_TEMPO_PLAY_STATE, *LPDMUS_PRIVATE_TEMPO_PLAY_STATE;
113 /* some sort of aux. performance channel: as far as i can understand, these are
114 used to represent a particular midi channel in particular group at particular
115 group; so all we need to do is to fill it with parent port, group and midi
116 channel ? */
117 typedef struct DMUSIC_PRIVATE_PCHANNEL_ {
118 DWORD channel; /* map to this channel... */
119 DWORD group; /* ... in this group ... */
120 IDirectMusicPort *port; /* ... at this port */
121 } DMUSIC_PRIVATE_PCHANNEL, *LPDMUSIC_PRIVATE_PCHANNEL;
123 /*****************************************************************************
124 * IDirectMusicAudioPathImpl implementation structure
126 struct IDirectMusicAudioPathImpl {
127 /* IUnknown fields */
128 const IUnknownVtbl *UnknownVtbl;
129 const IDirectMusicAudioPathVtbl *AudioPathVtbl;
130 const IDirectMusicObjectVtbl *ObjectVtbl;
131 const IPersistStreamVtbl *PersistStreamVtbl;
132 LONG ref;
134 /* IDirectMusicAudioPathImpl fields */
135 LPDMUS_OBJECTDESC pDesc;
137 IDirectMusicPerformance8* pPerf;
138 IDirectMusicGraph* pToolGraph;
139 IDirectSoundBuffer* pDSBuffer;
140 IDirectSoundBuffer* pPrimary;
142 BOOL fActive;
145 /*****************************************************************************
146 * IDirectMusicLyricsTrack implementation structure
148 struct IDirectMusicLyricsTrack
150 /* IUnknown fields */
151 const IUnknownVtbl *UnknownVtbl;
152 const IDirectMusicTrack8Vtbl *TrackVtbl;
153 const IPersistStreamVtbl *PersistStreamVtbl;
154 LONG ref;
156 /* IDirectMusicLyricsTrack fields */
157 LPDMUS_OBJECTDESC pDesc;
160 /*****************************************************************************
161 * IDirectMusicMarkerTrack implementation structure
163 struct IDirectMusicMarkerTrack {
164 /* IUnknown fields */
165 const IUnknownVtbl *UnknownVtbl;
166 const IDirectMusicTrack8Vtbl *TrackVtbl;
167 const IPersistStreamVtbl *PersistStreamVtbl;
168 LONG ref;
170 /* IDirectMusicMarkerTrack fields */
171 LPDMUS_OBJECTDESC pDesc;
174 /*****************************************************************************
175 * IDirectMusicParamControlTrack implementation structure
177 struct IDirectMusicParamControlTrack {
178 /* IUnknown fields */
179 const IUnknownVtbl *UnknownVtbl;
180 const IDirectMusicTrack8Vtbl *TrackVtbl;
181 const IPersistStreamVtbl *PersistStreamVtbl;
182 LONG ref;
184 /* IDirectMusicParamControlTrack fields */
185 LPDMUS_OBJECTDESC pDesc;
188 /*****************************************************************************
189 * IDirectMusicSegTriggerTrack implementation structure
191 struct IDirectMusicSegTriggerTrack {
192 /* IUnknown fields */
193 const IUnknownVtbl *UnknownVtbl;
194 const IDirectMusicTrack8Vtbl *TrackVtbl;
195 const IPersistStreamVtbl *PersistStreamVtbl;
196 LONG ref;
198 /* IDirectMusicSegTriggerTrack fields */
199 LPDMUS_OBJECTDESC pDesc;
201 struct list Items;
204 /*****************************************************************************
205 * IDirectMusicSeqTrack implementation structure
207 struct IDirectMusicSeqTrack {
208 /* IUnknown fields */
209 const IUnknownVtbl *UnknownVtbl;
210 const IDirectMusicTrack8Vtbl *TrackVtbl;
211 const IPersistStreamVtbl *PersistStreamVtbl;
212 LONG ref;
214 /* IDirectMusicSeqTrack fields */
215 LPDMUS_OBJECTDESC pDesc;
218 /*****************************************************************************
219 * IDirectMusicSysExTrack implementation structure
221 struct IDirectMusicSysExTrack {
222 /* IUnknown fields */
223 const IUnknownVtbl *UnknownVtbl;
224 const IDirectMusicTrack8Vtbl *TrackVtbl;
225 const IPersistStreamVtbl *PersistStreamVtbl;
226 LONG ref;
228 /* IDirectMusicSysExTrack fields */
229 LPDMUS_OBJECTDESC pDesc;
232 /*****************************************************************************
233 * IDirectMusicTempoTrack implementation structure
235 struct IDirectMusicTempoTrack {
236 /* IUnknown fields */
237 const IUnknownVtbl *UnknownVtbl;
238 const IDirectMusicTrack8Vtbl *TrackVtbl;
239 const IPersistStreamVtbl *PersistStreamVtbl;
240 LONG ref;
242 /* IDirectMusicTempoTrack fields */
243 LPDMUS_OBJECTDESC pDesc;
244 BOOL enabled;
245 struct list Items;
248 /*****************************************************************************
249 * IDirectMusicTimeSigTrack implementation structure
251 struct IDirectMusicTimeSigTrack {
252 /* IUnknown fields */
253 const IUnknownVtbl *UnknownVtbl;
254 const IDirectMusicTrack8Vtbl *TrackVtbl;
255 const IPersistStreamVtbl *PersistStreamVtbl;
256 LONG ref;
258 /* IDirectMusicTimeSigTrack fields */
259 LPDMUS_OBJECTDESC pDesc;
262 /*****************************************************************************
263 * IDirectMusicWaveTrack implementation structure
265 struct IDirectMusicWaveTrack {
266 /* IUnknown fields */
267 const IUnknownVtbl *UnknownVtbl;
268 const IDirectMusicTrack8Vtbl *TrackVtbl;
269 const IPersistStreamVtbl *PersistStreamVtbl;
270 LONG ref;
272 /* IDirectMusicWaveTrack fields */
273 LPDMUS_OBJECTDESC pDesc;
276 /**********************************************************************
277 * Dll lifetime tracking declaration for dmime.dll
279 extern LONG DMIME_refCount DECLSPEC_HIDDEN;
280 static inline void DMIME_LockModule(void) { InterlockedIncrement( &DMIME_refCount ); }
281 static inline void DMIME_UnlockModule(void) { InterlockedDecrement( &DMIME_refCount ); }
283 /*****************************************************************************
284 * Misc.
287 #include "dmutils.h"
289 #endif /* __WINE_DMIME_PRIVATE_H */