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
33 #include "wine/debug.h"
34 #include "wine/list.h"
43 /*****************************************************************************
46 typedef struct IDirectMusicSynth8Impl IDirectMusicSynth8Impl
;
47 typedef struct IDirectMusicSynthSinkImpl IDirectMusicSynthSinkImpl
;
49 /*****************************************************************************
52 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicSynthImpl(REFIID riid
, void **ppobj
) DECLSPEC_HIDDEN
;
53 extern HRESULT WINAPI
DMUSIC_CreateDirectMusicSynthSinkImpl(REFIID riid
, void **ppobj
) DECLSPEC_HIDDEN
;
55 /*****************************************************************************
56 * IDirectMusicSynth8Impl implementation structure
58 struct IDirectMusicSynth8Impl
{
60 IDirectMusicSynth8 IDirectMusicSynth8_iface
;
61 IKsControl IKsControl_iface
;
64 /* IDirectMusicSynth8 fields */
67 IReferenceClock
* pLatencyClock
;
68 IDirectMusicSynthSink
*synth_sink
;
71 /*****************************************************************************
72 * IDirectMusicSynthSinkImpl implementation structure
74 struct IDirectMusicSynthSinkImpl
{
76 IDirectMusicSynthSink IDirectMusicSynthSink_iface
;
77 IKsControl IKsControl_iface
;
80 /* IDirectMusicSynthSinkImpl fields */
81 IReferenceClock
* latency_clock
;
84 /**********************************************************************
85 * Dll lifetime tracking declaration for dmsynth.dll
87 extern LONG DMSYNTH_refCount DECLSPEC_HIDDEN
;
88 static inline void DMSYNTH_LockModule(void) { InterlockedIncrement( &DMSYNTH_refCount
); }
89 static inline void DMSYNTH_UnlockModule(void) { InterlockedDecrement( &DMSYNTH_refCount
); }
91 /*****************************************************************************
94 /* used for generic dumping (copied from ddraw) */
105 /* used for initialising structs (primarily for DMUS_OBJECTDESC) */
106 #define FE(x) { x, #x }
107 #define GE(x) { &x, #x }
109 /* returns name of given GUID */
110 extern const char *debugstr_dmguid (const GUID
*id
) DECLSPEC_HIDDEN
;
112 #endif /* __WINE_DMSYNTH_PRIVATE_H */