mpr: Don't stop enumeration on the first failing network provider.
[wine.git] / include / msacmdrv.h
blob09249fc3480cd43eaccc39407cd2ff837ce84de2
1 /*
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
24 #include <stdarg.h>
26 #include <windef.h>
27 #include <winbase.h>
28 #include <mmsystem.h>
29 #include <mmreg.h>
30 #include <msacm.h>
32 /***********************************************************************
33 * Types
36 /***********************************************************************
37 * Defines/Enums
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)
47 #define ACMDM_DRIVER_ABOUT (ACMDM_BASE + 11)
49 #define ACMDM_HARDWARE_WAVE_CAPS_INPUT (ACMDM_BASE + 20)
50 #define ACMDM_HARDWARE_WAVE_CAPS_OUTPUT (ACMDM_BASE + 21)
52 #define ACMDM_FORMATTAG_DETAILS (ACMDM_BASE + 25)
53 #define ACMDM_FORMAT_DETAILS (ACMDM_BASE + 26)
54 #define ACMDM_FORMAT_SUGGEST (ACMDM_BASE + 27)
56 #define ACMDM_FILTERTAG_DETAILS (ACMDM_BASE + 50)
57 #define ACMDM_FILTER_DETAILS (ACMDM_BASE + 51)
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)
68 /***********************************************************************
69 * Structures
72 typedef struct _ACMDRVOPENDESCA
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;
85 typedef struct _ACMDRVOPENDESCW
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;
98 typedef struct _ACMDRVSTREAMINSTANCE
100 DWORD cbStruct;
101 PWAVEFORMATEX pwfxSrc;
102 PWAVEFORMATEX pwfxDst;
103 PWAVEFILTER pwfltr;
104 DWORD_PTR dwCallback;
105 DWORD_PTR dwInstance;
106 DWORD fdwOpen;
107 DWORD fdwDriver;
108 DWORD_PTR dwDriver;
109 HACMSTREAM has;
110 } ACMDRVSTREAMINSTANCE, *PACMDRVSTREAMINSTANCE;
112 typedef struct _ACMDRVSTREAMHEADER *PACMDRVSTREAMHEADER;
113 #include <pshpack1.h>
114 typedef struct _ACMDRVSTREAMHEADER {
115 DWORD cbStruct;
116 DWORD fdwStatus;
117 DWORD_PTR dwUser;
118 LPBYTE pbSrc;
119 DWORD cbSrcLength;
120 DWORD cbSrcLengthUsed;
121 DWORD_PTR dwSrcUser;
122 LPBYTE pbDst;
123 DWORD cbDstLength;
124 DWORD cbDstLengthUsed;
125 DWORD_PTR dwDstUser;
127 DWORD fdwConvert;
128 PACMDRVSTREAMHEADER *padshNext;
129 DWORD fdwDriver;
130 DWORD_PTR dwDriver;
132 /* Internal fields for ACM */
133 DWORD fdwPrepared;
134 DWORD_PTR dwPrepared;
135 LPBYTE pbPreparedSrc;
136 DWORD cbPreparedSrcLength;
137 LPBYTE pbPreparedDst;
138 DWORD cbPreparedDstLength;
139 } ACMDRVSTREAMHEADER;
140 #include <poppack.h>
142 typedef struct _ACMDRVSTREAMSIZE
144 DWORD cbStruct;
145 DWORD fdwSize;
146 DWORD cbSrcLength;
147 DWORD cbDstLength;
148 } ACMDRVSTREAMSIZE, *PACMDRVSTREAMSIZE;
150 typedef struct _ACMDRVFORMATSUGGEST
152 DWORD cbStruct;
153 DWORD fdwSuggest;
154 PWAVEFORMATEX pwfxSrc;
155 DWORD cbwfxSrc;
156 PWAVEFORMATEX pwfxDst;
157 DWORD cbwfxDst;
158 } ACMDRVFORMATSUGGEST, *PACMDRVFORMATSUGGEST;
160 #endif /* __WINE_MSACMDRV_H */