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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __WINE_MSACMDRV_H
22 #define __WINE_MSACMDRV_H
32 /***********************************************************************
36 /***********************************************************************
40 #define MAKE_ACM_VERSION(mjr, mnr, bld) \
41 (((LONG)(mjr)<<24) | ((LONG)(mnr)<<16) | ((LONG)bld))
43 #define ACMDRVOPENDESC_SECTIONNAME_CHARS
45 #define ACMDM_DRIVER_NOTIFY (ACMDM_BASE + 1)
46 #define ACMDM_DRIVER_DETAILS (ACMDM_BASE + 10)
48 #define ACMDM_HARDWARE_WAVE_CAPS_INPUT (ACMDM_BASE + 20)
49 #define ACMDM_HARDWARE_WAVE_CAPS_OUTPUT (ACMDM_BASE + 21)
51 #define ACMDM_FORMATTAG_DETAILS (ACMDM_BASE + 25)
52 #define ACMDM_FORMAT_DETAILS (ACMDM_BASE + 26)
53 #define ACMDM_FORMAT_SUGGEST (ACMDM_BASE + 27)
55 #define ACMDM_FILTERTAG_DETAILS (ACMDM_BASE + 50)
56 #define ACMDM_FILTER_DETAILS (ACMDM_BASE + 51)
58 #define ACMDM_STREAM_OPEN (ACMDM_BASE + 76)
59 #define ACMDM_STREAM_CLOSE (ACMDM_BASE + 77)
60 #define ACMDM_STREAM_SIZE (ACMDM_BASE + 78)
61 #define ACMDM_STREAM_CONVERT (ACMDM_BASE + 79)
62 #define ACMDM_STREAM_RESET (ACMDM_BASE + 80)
63 #define ACMDM_STREAM_PREPARE (ACMDM_BASE + 81)
64 #define ACMDM_STREAM_UNPREPARE (ACMDM_BASE + 82)
65 #define ACMDM_STREAM_UPDATE (ACMDM_BASE + 83)
67 /***********************************************************************
71 typedef struct _ACMDRVOPENDESCA
79 LPCSTR pszSectionName;
82 } ACMDRVOPENDESCA, *PACMDRVOPENDESCA;
84 typedef struct _ACMDRVOPENDESCW
92 LPCWSTR pszSectionName;
95 } ACMDRVOPENDESCW, *PACMDRVOPENDESCW;
97 typedef struct _ACMDRVSTREAMINSTANCE
100 PWAVEFORMATEX pwfxSrc;
101 PWAVEFORMATEX pwfxDst;
103 DWORD_PTR dwCallback;
104 DWORD_PTR dwInstance;
109 } ACMDRVSTREAMINSTANCE, *PACMDRVSTREAMINSTANCE;
111 typedef struct _ACMDRVSTREAMHEADER *PACMDRVSTREAMHEADER;
112 typedef struct _ACMDRVSTREAMHEADER {
118 DWORD cbSrcLengthUsed;
122 DWORD cbDstLengthUsed;
126 PACMDRVSTREAMHEADER *padshNext;
130 /* Internal fields for ACM */
132 DWORD_PTR dwPrepared;
133 LPBYTE pbPreparedSrc;
134 DWORD cbPreparedSrcLength;
135 LPBYTE pbPreparedDst;
136 DWORD cbPreparedDstLength;
137 } ACMDRVSTREAMHEADER;
139 typedef struct _ACMDRVSTREAMSIZE
145 } ACMDRVSTREAMSIZE, *PACMDRVSTREAMSIZE;
147 typedef struct _ACMDRVFORMATSUGGEST
151 PWAVEFORMATEX pwfxSrc;
153 PWAVEFORMATEX pwfxDst;
155 } ACMDRVFORMATSUGGEST, *PACMDRVFORMATSUGGEST;
157 #endif /* __WINE_MSACMDRV_H */