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
35 #include "wine/debug.h"
36 #include "wine/list.h"
45 /*****************************************************************************
48 typedef struct IDirectMusicGraphImpl IDirectMusicGraphImpl
;
49 typedef struct IDirectMusicAudioPathImpl IDirectMusicAudioPathImpl
;
51 /*****************************************************************************
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 */
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_SEGMENT_ITEM
{
90 struct list entry
; /* for listing elements */
91 DMUS_IO_SEGMENT_ITEM_HEADER header
;
92 IDirectMusicObject
* pObject
;
93 WCHAR wszName
[DMUS_MAX_NAME
];
94 } DMUS_PRIVATE_SEGMENT_ITEM
, *LPDMUS_PRIVATE_SEGMENT_ITEM
;
96 typedef struct _DMUS_PRIVATE_GRAPH_TOOL
{
97 struct list entry
; /* for listing elements */
99 IDirectMusicTool
* pTool
;
100 } DMUS_PRIVATE_GRAPH_TOOL
, *LPDMUS_PRIVATE_GRAPH_TOOL
;
102 typedef struct _DMUS_PRIVATE_TEMPO_PLAY_STATE
{
104 } DMUS_PRIVATE_TEMPO_PLAY_STATE
, *LPDMUS_PRIVATE_TEMPO_PLAY_STATE
;
106 /**********************************************************************
107 * Dll lifetime tracking declaration for dmime.dll
109 extern LONG DMIME_refCount DECLSPEC_HIDDEN
;
110 static inline void DMIME_LockModule(void) { InterlockedIncrement( &DMIME_refCount
); }
111 static inline void DMIME_UnlockModule(void) { InterlockedDecrement( &DMIME_refCount
); }
113 /*****************************************************************************
119 #endif /* __WINE_DMIME_PRIVATE_H */