2 * Declarations for MSACM driver
4 * Copyright 1998 Patrik Stridvall
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.
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.
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
21 #ifndef __WINE_MSACMDRV_H
22 #define __WINE_MSACMDRV_H
25 #include "wine/windef16.h"
28 /***********************************************************************
32 /***********************************************************************
36 #define MAKE_ACM_VERSION(mjr, mnr, bld) \
37 (((long)(mjr)<<24) | ((long)(mnr)<<16) | ((long)bld))
39 #define ACMDRVOPENDESC_SECTIONNAME_CHARS
41 #define ACMDM_DRIVER_NOTIFY (ACMDM_BASE + 1)
42 #define ACMDM_DRIVER_DETAILS (ACMDM_BASE + 10)
44 #define ACMDM_HARDWARE_WAVE_CAPS_INPUT (ACMDM_BASE + 20)
45 #define ACMDM_HARDWARE_WAVE_CAPS_OUTPUT (ACMDM_BASE + 21)
47 #define ACMDM_FORMATTAG_DETAILS (ACMDM_BASE + 25)
48 #define ACMDM_FORMAT_DETAILS (ACMDM_BASE + 26)
49 #define ACMDM_FORMAT_SUGGEST (ACMDM_BASE + 27)
51 #define ACMDM_FILTERTAG_DETAILS (ACMDM_BASE + 50)
52 #define ACMDM_FILTER_DETAILS (ACMDM_BASE + 51)
54 #define ACMDM_STREAM_OPEN (ACMDM_BASE + 76)
55 #define ACMDM_STREAM_CLOSE (ACMDM_BASE + 77)
56 #define ACMDM_STREAM_SIZE (ACMDM_BASE + 78)
57 #define ACMDM_STREAM_CONVERT (ACMDM_BASE + 79)
58 #define ACMDM_STREAM_RESET (ACMDM_BASE + 80)
59 #define ACMDM_STREAM_PREPARE (ACMDM_BASE + 81)
60 #define ACMDM_STREAM_UNPREPARE (ACMDM_BASE + 82)
61 #define ACMDM_STREAM_UPDATE (ACMDM_BASE + 83)
63 /***********************************************************************
67 typedef struct _ACMDRVOPENDESCA
75 LPCSTR pszSectionName
;
78 } ACMDRVOPENDESCA
, *PACMDRVOPENDESCA
;
80 typedef struct _ACMDRVOPENDESCW
88 LPCWSTR pszSectionName
;
91 } ACMDRVOPENDESCW
, *PACMDRVOPENDESCW
;
93 typedef struct _ACMDRVOPENDESC16
101 LPCSTR pszSectionName
;
104 } ACMDRVOPENDESC16
, *NPACMDRVOPENDESC16
, *LPACMDRVOPENDESC16
;
106 typedef struct _ACMDRVSTREAMINSTANCE16
109 LPWAVEFORMATEX pwfxSrc
;
110 LPWAVEFORMATEX pwfxDst
;
118 } ACMDRVSTREAMINSTANCE16
, *NPACMDRVSTREAMINSTANCE16
, *LPACMDRVSTREAMINSTANCE16
;
120 typedef struct _ACMDRVSTREAMINSTANCE
123 PWAVEFORMATEX pwfxSrc
;
124 PWAVEFORMATEX pwfxDst
;
132 } ACMDRVSTREAMINSTANCE
, *PACMDRVSTREAMINSTANCE
;
134 typedef struct _ACMDRVSTREAMHEADER16
*LPACMDRVSTREAMHEADER16
;
135 typedef struct _ACMDRVSTREAMHEADER16
{
141 DWORD cbSrcLengthUsed
;
145 DWORD cbDstLengthUsed
;
149 LPACMDRVSTREAMHEADER16
*padshNext
;
153 /* Internal fields for ACM */
156 LPBYTE pbPreparedSrc
;
157 DWORD cbPreparedSrcLength
;
158 LPBYTE pbPreparedDst
;
159 DWORD cbPreparedDstLength
;
160 } ACMDRVSTREAMHEADER16
, *NPACMDRVSTREAMHEADER16
;
162 typedef struct _ACMDRVSTREAMHEADER
*PACMDRVSTREAMHEADER
;
163 typedef struct _ACMDRVSTREAMHEADER
{
169 DWORD cbSrcLengthUsed
;
173 DWORD cbDstLengthUsed
;
177 PACMDRVSTREAMHEADER
*padshNext
;
181 /* Internal fields for ACM */
184 LPBYTE pbPreparedSrc
;
185 DWORD cbPreparedSrcLength
;
186 LPBYTE pbPreparedDst
;
187 DWORD cbPreparedDstLength
;
188 } ACMDRVSTREAMHEADER
;
190 typedef struct _ACMDRVSTREAMSIZE
196 } ACMDRVSTREAMSIZE16
, *NPACMDRVSTREAMSIZE16
, *LPACMDRVSTREAMSIZE16
,
197 ACMDRVSTREAMSIZE
, *PACMDRVSTREAMSIZE
;
199 typedef struct _ACMDRVFORMATSUGGEST16
203 LPWAVEFORMATEX pwfxSrc
;
205 LPWAVEFORMATEX pwfxDst
;
207 } ACMDRVFORMATSUGGEST16
, *NPACMDRVFORMATSUGGEST
, *LPACMDRVFORMATSUGGEST
;
209 typedef struct _ACMDRVFORMATSUGGEST
213 PWAVEFORMATEX pwfxSrc
;
215 PWAVEFORMATEX pwfxDst
;
217 } ACMDRVFORMATSUGGEST
, *PACMDRVFORMATSUGGEST
;
219 #endif /* __WINE_MSACMDRV_H */