Fixed header dependencies to be fully compatible with the Windows
[wine] / dlls / msacm / msacmdrv.h
1 /*
2  * Declarations for MSACM driver
3  *
4  * Copyright 1998 Patrik Stridvall
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #ifndef __WINE_MSACMDRV_H
22 #define __WINE_MSACMDRV_H
23
24 #include <stdarg.h>
25
26 #include "windef.h"
27 #include "winbase.h"
28 #include "wine/windef16.h"
29 #include "mmsystem.h"
30 #include "mmreg.h"
31 #include "msacm.h"
32
33 /***********************************************************************
34  * Types
35  */
36
37 /***********************************************************************
38  * Defines/Enums
39  */
40
41 #define MAKE_ACM_VERSION(mjr, mnr, bld) \
42   (((long)(mjr)<<24) | ((long)(mnr)<<16) | ((long)bld))
43
44 #define ACMDRVOPENDESC_SECTIONNAME_CHARS
45
46 #define ACMDM_DRIVER_NOTIFY             (ACMDM_BASE + 1)
47 #define ACMDM_DRIVER_DETAILS            (ACMDM_BASE + 10)
48
49 #define ACMDM_HARDWARE_WAVE_CAPS_INPUT  (ACMDM_BASE + 20)
50 #define ACMDM_HARDWARE_WAVE_CAPS_OUTPUT (ACMDM_BASE + 21)
51
52 #define ACMDM_FORMATTAG_DETAILS         (ACMDM_BASE + 25)
53 #define ACMDM_FORMAT_DETAILS            (ACMDM_BASE + 26)
54 #define ACMDM_FORMAT_SUGGEST            (ACMDM_BASE + 27)
55
56 #define ACMDM_FILTERTAG_DETAILS         (ACMDM_BASE + 50)
57 #define ACMDM_FILTER_DETAILS            (ACMDM_BASE + 51)
58
59 #define ACMDM_STREAM_OPEN               (ACMDM_BASE + 76)
60 #define ACMDM_STREAM_CLOSE              (ACMDM_BASE + 77)
61 #define ACMDM_STREAM_SIZE               (ACMDM_BASE + 78)
62 #define ACMDM_STREAM_CONVERT            (ACMDM_BASE + 79)
63 #define ACMDM_STREAM_RESET              (ACMDM_BASE + 80)
64 #define ACMDM_STREAM_PREPARE            (ACMDM_BASE + 81)
65 #define ACMDM_STREAM_UNPREPARE          (ACMDM_BASE + 82)
66 #define ACMDM_STREAM_UPDATE             (ACMDM_BASE + 83)
67
68 /***********************************************************************
69  * Structures
70  */
71
72 typedef struct _ACMDRVOPENDESCA
73 {
74   DWORD  cbStruct;
75   FOURCC fccType;
76   FOURCC fccComp;
77   DWORD  dwVersion;
78   DWORD  dwFlags;
79   DWORD  dwError;
80   LPCSTR pszSectionName;
81   LPCSTR pszAliasName;
82   DWORD  dnDevNode;
83 } ACMDRVOPENDESCA, *PACMDRVOPENDESCA;
84
85 typedef struct _ACMDRVOPENDESCW
86 {
87   DWORD   cbStruct;
88   FOURCC  fccType;
89   FOURCC  fccComp;
90   DWORD   dwVersion;
91   DWORD   dwFlags;
92   DWORD   dwError;
93   LPCWSTR pszSectionName;
94   LPCWSTR pszAliasName;
95   DWORD   dnDevNode;
96 } ACMDRVOPENDESCW, *PACMDRVOPENDESCW;
97
98 typedef struct _ACMDRVOPENDESC16
99 {
100   DWORD  cbStruct;
101   FOURCC fccType;
102   FOURCC fccComp;
103   DWORD  dwVersion;
104   DWORD  dwFlags;
105   DWORD  dwError;
106   LPCSTR pszSectionName;
107   LPCSTR pszAliasName;
108   DWORD  dnDevNode;
109 } ACMDRVOPENDESC16, *NPACMDRVOPENDESC16, *LPACMDRVOPENDESC16;
110
111 typedef struct _ACMDRVSTREAMINSTANCE16
112 {
113   DWORD            cbStruct;
114   LPWAVEFORMATEX   pwfxSrc;
115   LPWAVEFORMATEX   pwfxDst;
116   LPWAVEFILTER     pwfltr;
117   DWORD            dwCallback;
118   DWORD            dwInstance;
119   DWORD            fdwOpen;
120   DWORD            fdwDriver;
121   DWORD            dwDriver;
122   HACMSTREAM16     has;
123 } ACMDRVSTREAMINSTANCE16, *NPACMDRVSTREAMINSTANCE16, *LPACMDRVSTREAMINSTANCE16;
124
125 typedef struct _ACMDRVSTREAMINSTANCE
126 {
127   DWORD           cbStruct;
128   PWAVEFORMATEX   pwfxSrc;
129   PWAVEFORMATEX   pwfxDst;
130   PWAVEFILTER     pwfltr;
131   DWORD           dwCallback;
132   DWORD           dwInstance;
133   DWORD           fdwOpen;
134   DWORD           fdwDriver;
135   DWORD           dwDriver;
136   HACMSTREAM    has;
137 } ACMDRVSTREAMINSTANCE, *PACMDRVSTREAMINSTANCE;
138
139 typedef struct _ACMDRVSTREAMHEADER16 *LPACMDRVSTREAMHEADER16;
140 typedef struct _ACMDRVSTREAMHEADER16 {
141   DWORD  cbStruct;
142   DWORD  fdwStatus;
143   DWORD  dwUser;
144   LPBYTE pbSrc;
145   DWORD  cbSrcLength;
146   DWORD  cbSrcLengthUsed;
147   DWORD  dwSrcUser;
148   LPBYTE pbDst;
149   DWORD  cbDstLength;
150   DWORD  cbDstLengthUsed;
151   DWORD  dwDstUser;
152
153   DWORD fdwConvert;
154   LPACMDRVSTREAMHEADER16 *padshNext;
155   DWORD fdwDriver;
156   DWORD dwDriver;
157
158   /* Internal fields for ACM */
159   DWORD  fdwPrepared;
160   DWORD  dwPrepared;
161   LPBYTE pbPreparedSrc;
162   DWORD  cbPreparedSrcLength;
163   LPBYTE pbPreparedDst;
164   DWORD  cbPreparedDstLength;
165 } ACMDRVSTREAMHEADER16, *NPACMDRVSTREAMHEADER16;
166
167 typedef struct _ACMDRVSTREAMHEADER *PACMDRVSTREAMHEADER;
168 typedef struct _ACMDRVSTREAMHEADER {
169   DWORD  cbStruct;
170   DWORD  fdwStatus;
171   DWORD  dwUser;
172   LPBYTE pbSrc;
173   DWORD  cbSrcLength;
174   DWORD  cbSrcLengthUsed;
175   DWORD  dwSrcUser;
176   LPBYTE pbDst;
177   DWORD  cbDstLength;
178   DWORD  cbDstLengthUsed;
179   DWORD  dwDstUser;
180
181   DWORD fdwConvert;
182   PACMDRVSTREAMHEADER *padshNext;
183   DWORD fdwDriver;
184   DWORD dwDriver;
185
186   /* Internal fields for ACM */
187   DWORD  fdwPrepared;
188   DWORD  dwPrepared;
189   LPBYTE pbPreparedSrc;
190   DWORD  cbPreparedSrcLength;
191   LPBYTE pbPreparedDst;
192   DWORD  cbPreparedDstLength;
193 } ACMDRVSTREAMHEADER;
194
195 typedef struct _ACMDRVSTREAMSIZE
196 {
197   DWORD cbStruct;
198   DWORD fdwSize;
199   DWORD cbSrcLength;
200   DWORD cbDstLength;
201 } ACMDRVSTREAMSIZE16, *NPACMDRVSTREAMSIZE16, *LPACMDRVSTREAMSIZE16,
202   ACMDRVSTREAMSIZE, *PACMDRVSTREAMSIZE;
203
204 typedef struct _ACMDRVFORMATSUGGEST16
205 {
206   DWORD            cbStruct;
207   DWORD            fdwSuggest;
208   LPWAVEFORMATEX   pwfxSrc;
209   DWORD            cbwfxSrc;
210   LPWAVEFORMATEX   pwfxDst;
211   DWORD            cbwfxDst;
212 } ACMDRVFORMATSUGGEST16, *NPACMDRVFORMATSUGGEST, *LPACMDRVFORMATSUGGEST;
213
214 typedef struct _ACMDRVFORMATSUGGEST
215 {
216   DWORD           cbStruct;
217   DWORD           fdwSuggest;
218   PWAVEFORMATEX   pwfxSrc;
219   DWORD           cbwfxSrc;
220   PWAVEFORMATEX   pwfxDst;
221   DWORD           cbwfxDst;
222 } ACMDRVFORMATSUGGEST, *PACMDRVFORMATSUGGEST;
223
224 #endif  /* __WINE_MSACMDRV_H */