~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/dlls/dmsynth/dmsynth_private.h

Version: ~ [ wine-1.1.33 ] ~ [ wine-1.1.32 ] ~ [ wine-1.1.31 ] ~ [ wine-1.1.30 ] ~ [ wine-1.1.29 ] ~ [ wine-1.1.28 ] ~ [ wine-1.1.27 ] ~ [ wine-1.1.26 ] ~ [ wine-1.1.25 ] ~ [ wine-1.1.24 ] ~ [ wine-1.1.23 ] ~ [ wine-1.1.22 ] ~ [ wine-1.1.21 ] ~ [ wine-1.1.20 ] ~ [ wine-1.1.19 ] ~ [ wine-1.1.18 ] ~ [ wine-1.1.17 ] ~ [ wine-1.1.16 ] ~ [ wine-1.1.15 ] ~ [ wine-1.1.14 ] ~ [ wine-1.1.13 ] ~ [ wine-1.1.12 ] ~ [ wine-1.1.11 ] ~ [ wine-1.1.10 ] ~ [ wine-1.1.9 ] ~ [ wine-1.1.8 ] ~ [ wine-1.1.7 ] ~ [ wine-1.0.1 ] ~ [ wine-1.1.6 ] ~ [ wine-1.1.5 ] ~ [ wine-1.1.4 ] ~ [ wine-1.1.3 ] ~ [ wine-1.1.2 ] ~ [ wine-1.1.1 ] ~ [ wine-1.1.0 ] ~ [ wine-1.0 ] ~

  1 /* DirectMusicSynthesizer Private Include
  2  *
  3  * Copyright (C) 2003-2004 Rok Mandeljc
  4  *
  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.
  9  *
 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.
 14  *
 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
 18  */
 19 
 20 #ifndef __WINE_DMSYNTH_PRIVATE_H
 21 #define __WINE_DMSYNTH_PRIVATE_H
 22 
 23 #include <stdarg.h>
 24 
 25 #define COBJMACROS
 26 
 27 #include "windef.h"
 28 #include "winbase.h"
 29 #include "winnt.h"
 30 #include "wingdi.h"
 31 #include "winuser.h"
 32 
 33 #include "wine/debug.h"
 34 #include "wine/list.h"
 35 #include "wine/unicode.h"
 36 #include "winreg.h"
 37 #include "objbase.h"
 38 
 39 #include "dmusici.h"
 40 #include "dmusicf.h"
 41 #include "dmusics.h"
 42 
 43 /*****************************************************************************
 44  * Interfaces
 45  */
 46 typedef struct IDirectMusicSynth8Impl IDirectMusicSynth8Impl;
 47 typedef struct IDirectMusicSynthSinkImpl IDirectMusicSynthSinkImpl;
 48 
 49 /*****************************************************************************
 50  * ClassFactory
 51  */
 52 extern HRESULT WINAPI DMUSIC_CreateDirectMusicSynthImpl (LPCGUID lpcGUID, LPVOID* ppobj, LPUNKNOWN pUnkOuter);
 53 extern HRESULT WINAPI DMUSIC_CreateDirectMusicSynthSinkImpl (LPCGUID lpcGUID, LPVOID* ppobj, LPUNKNOWN pUnkOuter);
 54 
 55 /*****************************************************************************
 56  * IDirectMusicSynth8Impl implementation structure
 57  */
 58 struct IDirectMusicSynth8Impl {
 59   /* IUnknown fields */
 60   const IDirectMusicSynth8Vtbl *lpVtbl;
 61   LONG          ref;
 62 
 63   /* IDirectMusicSynth8 fields */
 64   DMUS_PORTCAPS pCaps;
 65   BOOL fActive;
 66   IReferenceClock* pLatencyClock;
 67   IDirectMusicSynthSinkImpl* pSynthSink;
 68 };
 69 
 70 /*****************************************************************************
 71  * IDirectMusicSynthSinkImpl implementation structure
 72  */
 73 struct IDirectMusicSynthSinkImpl {
 74   /* IUnknown fields */
 75   const IDirectMusicSynthSinkVtbl *lpVtbl;
 76   LONG          ref;
 77 
 78   /* IDirectMusicSynthSinkImpl fields */
 79 };
 80 
 81 /**********************************************************************
 82  * Dll lifetime tracking declaration for dmsynth.dll
 83  */
 84 extern LONG DMSYNTH_refCount;
 85 static inline void DMSYNTH_LockModule(void) { InterlockedIncrement( &DMSYNTH_refCount ); }
 86 static inline void DMSYNTH_UnlockModule(void) { InterlockedDecrement( &DMSYNTH_refCount ); }
 87 
 88 /*****************************************************************************
 89  * Misc.
 90  */
 91 /* used for generic dumping (copied from ddraw) */
 92 typedef struct {
 93     DWORD val;
 94     const char* name;
 95 } flag_info;
 96 
 97 typedef struct {
 98     const GUID *guid;
 99     const char* name;
100 } guid_info;
101 
102 /* used for initialising structs (primarily for DMUS_OBJECTDESC) */
103 #define DM_STRUCT_INIT(x)                               \
104         do {                                                            \
105                 memset((x), 0, sizeof(*(x)));   \
106                 (x)->dwSize = sizeof(*x);               \
107         } while (0)
108 
109 #define FE(x) { x, #x } 
110 #define GE(x) { &x, #x }
111 
112 /* FOURCC to string conversion for debug messages */
113 extern const char *debugstr_fourcc (DWORD fourcc);
114 /* DMUS_VERSION struct to string conversion for debug messages */
115 extern const char *debugstr_dmversion (LPDMUS_VERSION version);
116 /* returns name of given GUID */
117 extern const char *debugstr_dmguid (const GUID *id);
118 /* returns name of given error code */
119 extern const char *debugstr_dmreturn (DWORD code);
120 /* generic flags-dumping function */
121 extern const char *debugstr_flags (DWORD flags, const flag_info* names, size_t num_names);
122 
123 
124 #endif  /* __WINE_DMSYNTH_PRIVATE_H */
125 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.