wined3d: Pass a wined3d_device_context to wined3d_cs_emit_set_material().
[wine.git] / dlls / dmime / dmime_private.h
blobc2221a15fd275664f960ae67cb9c59f98a9208f9
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 "winreg.h"
38 #include "objbase.h"
40 #include "dmusici.h"
41 #include "dmusicf.h"
42 #include "dmusics.h"
43 #include "dmusicc.h"
45 /*****************************************************************************
46 * Interfaces
48 typedef struct IDirectMusicGraphImpl IDirectMusicGraphImpl;
49 typedef struct IDirectMusicAudioPathImpl IDirectMusicAudioPathImpl;
51 /*****************************************************************************
52 * ClassFactory
54 extern HRESULT WINAPI create_dmperformance(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
55 extern HRESULT WINAPI create_dmsegment(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
56 extern HRESULT WINAPI create_dmsegmentstate(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
57 extern HRESULT WINAPI create_dmgraph(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
58 extern HRESULT WINAPI create_dmaudiopath(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
60 extern HRESULT WINAPI create_dmlyricstrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
61 extern HRESULT WINAPI create_dmmarkertrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
62 extern HRESULT WINAPI create_dmparamcontroltrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
63 extern HRESULT WINAPI create_dmsegtriggertrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
64 extern HRESULT WINAPI create_dmseqtrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
65 extern HRESULT WINAPI create_dmsysextrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
66 extern HRESULT WINAPI create_dmtempotrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
67 extern HRESULT WINAPI create_dmtimesigtrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
68 extern HRESULT WINAPI create_dmwavetrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
70 extern void set_audiopath_perf_pointer(IDirectMusicAudioPath*,IDirectMusicPerformance8*) DECLSPEC_HIDDEN;
71 extern void set_audiopath_dsound_buffer(IDirectMusicAudioPath*,IDirectSoundBuffer*) DECLSPEC_HIDDEN;
72 extern void set_audiopath_primary_dsound_buffer(IDirectMusicAudioPath*,IDirectSoundBuffer*) DECLSPEC_HIDDEN;
74 /*****************************************************************************
75 * Auxiliary definitions
77 typedef struct _DMUS_PRIVATE_SEGMENT_TRACK {
78 struct list entry; /* for listing elements */
79 DWORD dwGroupBits;
80 DWORD flags;
81 IDirectMusicTrack* pTrack;
82 } DMUS_PRIVATE_SEGMENT_TRACK, *LPDMUS_PRIVATE_SEGMENT_TRACK;
84 typedef struct _DMUS_PRIVATE_TEMPO_ITEM {
85 struct list entry; /* for listing elements */
86 DMUS_IO_TEMPO_ITEM item;
87 } DMUS_PRIVATE_TEMPO_ITEM, *LPDMUS_PRIVATE_TEMPO_ITEM;
89 typedef struct _DMUS_PRIVATE_GRAPH_TOOL {
90 struct list entry; /* for listing elements */
91 DWORD dwIndex;
92 IDirectMusicTool* pTool;
93 } DMUS_PRIVATE_GRAPH_TOOL, *LPDMUS_PRIVATE_GRAPH_TOOL;
95 typedef struct _DMUS_PRIVATE_TEMPO_PLAY_STATE {
96 DWORD dummy;
97 } DMUS_PRIVATE_TEMPO_PLAY_STATE, *LPDMUS_PRIVATE_TEMPO_PLAY_STATE;
99 /**********************************************************************
100 * Dll lifetime tracking declaration for dmime.dll
102 extern LONG DMIME_refCount DECLSPEC_HIDDEN;
103 static inline void DMIME_LockModule(void) { InterlockedIncrement( &DMIME_refCount ); }
104 static inline void DMIME_UnlockModule(void) { InterlockedDecrement( &DMIME_refCount ); }
106 /*****************************************************************************
107 * Misc.
110 #endif /* __WINE_DMIME_PRIVATE_H */