include: Be consistent in naming regarding MSF's block.
[wine.git] / dlls / dmsynth / dmsynth_private.h
blobb0e4c66f416b1c41ab87e9029462e7e53da25cfd
1 /* DirectMusicSynthesizer 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_DMSYNTH_PRIVATE_H
21 #define __WINE_DMSYNTH_PRIVATE_H
23 #include <stdarg.h>
25 #define COBJMACROS
27 #include "windef.h"
28 #include "winbase.h"
29 #include "winnt.h"
30 #include "wingdi.h"
31 #include "winuser.h"
33 #include "wine/debug.h"
34 #include "wine/list.h"
35 #include "winreg.h"
36 #include "objbase.h"
38 #include "dmusici.h"
39 #include "dmusicf.h"
40 #include "dmusics.h"
41 #include "dmksctrl.h"
43 /*****************************************************************************
44 * Interfaces
46 typedef struct IDirectMusicSynth8Impl IDirectMusicSynth8Impl;
47 typedef struct IDirectMusicSynthSinkImpl IDirectMusicSynthSinkImpl;
49 /*****************************************************************************
50 * ClassFactory
52 extern HRESULT DMUSIC_CreateDirectMusicSynthImpl(REFIID riid, void **ppobj) DECLSPEC_HIDDEN;
53 extern HRESULT DMUSIC_CreateDirectMusicSynthSinkImpl(REFIID riid, void **ppobj) DECLSPEC_HIDDEN;
55 /*****************************************************************************
56 * IDirectMusicSynth8Impl implementation structure
58 struct IDirectMusicSynth8Impl {
59 IDirectMusicSynth8 IDirectMusicSynth8_iface;
60 IKsControl IKsControl_iface;
61 LONG ref;
62 DMUS_PORTCAPS caps;
63 DMUS_PORTPARAMS params;
64 BOOL active;
65 BOOL open;
66 IReferenceClock *latency_clock;
67 IDirectMusicSynthSink *sink;
70 /*****************************************************************************
71 * IDirectMusicSynthSinkImpl implementation structure
73 struct IDirectMusicSynthSinkImpl {
74 IDirectMusicSynthSink IDirectMusicSynthSink_iface;
75 IKsControl IKsControl_iface;
76 LONG ref;
77 IReferenceClock *latency_clock;
78 IReferenceClock *master_clock;
79 IDirectMusicSynth *synth; /* No reference hold! */
80 BOOL active;
83 /**********************************************************************
84 * Dll lifetime tracking declaration for dmsynth.dll
86 extern LONG DMSYNTH_refCount DECLSPEC_HIDDEN;
87 static inline void DMSYNTH_LockModule(void) { InterlockedIncrement( &DMSYNTH_refCount ); }
88 static inline void DMSYNTH_UnlockModule(void) { InterlockedDecrement( &DMSYNTH_refCount ); }
90 /*****************************************************************************
91 * Misc.
93 /* used for generic dumping (copied from ddraw) */
94 typedef struct {
95 DWORD val;
96 const char* name;
97 } flag_info;
99 typedef struct {
100 const GUID *guid;
101 const char* name;
102 } guid_info;
104 /* used for initialising structs (primarily for DMUS_OBJECTDESC) */
105 #define FE(x) { x, #x }
106 #define GE(x) { &x, #x }
108 /* returns name of given GUID */
109 extern const char *debugstr_dmguid (const GUID *id) DECLSPEC_HIDDEN;
111 #endif /* __WINE_DMSYNTH_PRIVATE_H */