1998-10-11 19:00:29 +02:00
|
|
|
/*
|
2002-03-10 00:29:33 +01:00
|
|
|
* Declarations for MSACM driver
|
|
|
|
*
|
|
|
|
* Copyright 1998 Patrik Stridvall
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
1998-10-11 19:00:29 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_MSACMDRV_H
|
|
|
|
#define __WINE_MSACMDRV_H
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
1999-03-14 17:35:05 +01:00
|
|
|
#include "windef.h"
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "winbase.h"
|
2000-09-27 00:20:14 +02:00
|
|
|
#include "wine/windef16.h"
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "mmsystem.h"
|
|
|
|
#include "mmreg.h"
|
1998-10-11 19:00:29 +02:00
|
|
|
#include "msacm.h"
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* Types
|
|
|
|
*/
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* Defines/Enums
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define MAKE_ACM_VERSION(mjr, mnr, bld) \
|
|
|
|
(((long)(mjr)<<24) | ((long)(mnr)<<16) | ((long)bld))
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
#define ACMDRVOPENDESC_SECTIONNAME_CHARS
|
1998-10-11 19:00:29 +02:00
|
|
|
|
|
|
|
#define ACMDM_DRIVER_NOTIFY (ACMDM_BASE + 1)
|
|
|
|
#define ACMDM_DRIVER_DETAILS (ACMDM_BASE + 10)
|
|
|
|
|
|
|
|
#define ACMDM_HARDWARE_WAVE_CAPS_INPUT (ACMDM_BASE + 20)
|
|
|
|
#define ACMDM_HARDWARE_WAVE_CAPS_OUTPUT (ACMDM_BASE + 21)
|
|
|
|
|
|
|
|
#define ACMDM_FORMATTAG_DETAILS (ACMDM_BASE + 25)
|
|
|
|
#define ACMDM_FORMAT_DETAILS (ACMDM_BASE + 26)
|
|
|
|
#define ACMDM_FORMAT_SUGGEST (ACMDM_BASE + 27)
|
|
|
|
|
|
|
|
#define ACMDM_FILTERTAG_DETAILS (ACMDM_BASE + 50)
|
|
|
|
#define ACMDM_FILTER_DETAILS (ACMDM_BASE + 51)
|
|
|
|
|
|
|
|
#define ACMDM_STREAM_OPEN (ACMDM_BASE + 76)
|
|
|
|
#define ACMDM_STREAM_CLOSE (ACMDM_BASE + 77)
|
|
|
|
#define ACMDM_STREAM_SIZE (ACMDM_BASE + 78)
|
|
|
|
#define ACMDM_STREAM_CONVERT (ACMDM_BASE + 79)
|
|
|
|
#define ACMDM_STREAM_RESET (ACMDM_BASE + 80)
|
|
|
|
#define ACMDM_STREAM_PREPARE (ACMDM_BASE + 81)
|
|
|
|
#define ACMDM_STREAM_UNPREPARE (ACMDM_BASE + 82)
|
|
|
|
#define ACMDM_STREAM_UPDATE (ACMDM_BASE + 83)
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* Structures
|
|
|
|
*/
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
typedef struct _ACMDRVOPENDESCA
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
|
|
|
DWORD cbStruct;
|
|
|
|
FOURCC fccType;
|
|
|
|
FOURCC fccComp;
|
|
|
|
DWORD dwVersion;
|
|
|
|
DWORD dwFlags;
|
|
|
|
DWORD dwError;
|
|
|
|
LPCSTR pszSectionName;
|
|
|
|
LPCSTR pszAliasName;
|
|
|
|
DWORD dnDevNode;
|
1999-02-26 12:11:13 +01:00
|
|
|
} ACMDRVOPENDESCA, *PACMDRVOPENDESCA;
|
1998-10-11 19:00:29 +02:00
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
typedef struct _ACMDRVOPENDESCW
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
|
|
|
DWORD cbStruct;
|
|
|
|
FOURCC fccType;
|
|
|
|
FOURCC fccComp;
|
|
|
|
DWORD dwVersion;
|
|
|
|
DWORD dwFlags;
|
|
|
|
DWORD dwError;
|
|
|
|
LPCWSTR pszSectionName;
|
|
|
|
LPCWSTR pszAliasName;
|
|
|
|
DWORD dnDevNode;
|
1999-02-26 12:11:13 +01:00
|
|
|
} ACMDRVOPENDESCW, *PACMDRVOPENDESCW;
|
1998-10-11 19:00:29 +02:00
|
|
|
|
|
|
|
typedef struct _ACMDRVOPENDESC16
|
|
|
|
{
|
|
|
|
DWORD cbStruct;
|
|
|
|
FOURCC fccType;
|
|
|
|
FOURCC fccComp;
|
|
|
|
DWORD dwVersion;
|
|
|
|
DWORD dwFlags;
|
|
|
|
DWORD dwError;
|
|
|
|
LPCSTR pszSectionName;
|
|
|
|
LPCSTR pszAliasName;
|
|
|
|
DWORD dnDevNode;
|
|
|
|
} ACMDRVOPENDESC16, *NPACMDRVOPENDESC16, *LPACMDRVOPENDESC16;
|
|
|
|
|
|
|
|
typedef struct _ACMDRVSTREAMINSTANCE16
|
|
|
|
{
|
|
|
|
DWORD cbStruct;
|
1999-02-14 10:41:42 +01:00
|
|
|
LPWAVEFORMATEX pwfxSrc;
|
|
|
|
LPWAVEFORMATEX pwfxDst;
|
|
|
|
LPWAVEFILTER pwfltr;
|
1998-10-11 19:00:29 +02:00
|
|
|
DWORD dwCallback;
|
|
|
|
DWORD dwInstance;
|
|
|
|
DWORD fdwOpen;
|
|
|
|
DWORD fdwDriver;
|
|
|
|
DWORD dwDriver;
|
|
|
|
HACMSTREAM16 has;
|
|
|
|
} ACMDRVSTREAMINSTANCE16, *NPACMDRVSTREAMINSTANCE16, *LPACMDRVSTREAMINSTANCE16;
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
typedef struct _ACMDRVSTREAMINSTANCE
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
|
|
|
DWORD cbStruct;
|
1999-02-14 10:41:42 +01:00
|
|
|
PWAVEFORMATEX pwfxSrc;
|
|
|
|
PWAVEFORMATEX pwfxDst;
|
|
|
|
PWAVEFILTER pwfltr;
|
1998-10-11 19:00:29 +02:00
|
|
|
DWORD dwCallback;
|
|
|
|
DWORD dwInstance;
|
|
|
|
DWORD fdwOpen;
|
|
|
|
DWORD fdwDriver;
|
|
|
|
DWORD dwDriver;
|
1999-02-26 12:11:13 +01:00
|
|
|
HACMSTREAM has;
|
|
|
|
} ACMDRVSTREAMINSTANCE, *PACMDRVSTREAMINSTANCE;
|
1998-10-11 19:00:29 +02:00
|
|
|
|
|
|
|
typedef struct _ACMDRVSTREAMHEADER16 *LPACMDRVSTREAMHEADER16;
|
|
|
|
typedef struct _ACMDRVSTREAMHEADER16 {
|
|
|
|
DWORD cbStruct;
|
|
|
|
DWORD fdwStatus;
|
|
|
|
DWORD dwUser;
|
|
|
|
LPBYTE pbSrc;
|
|
|
|
DWORD cbSrcLength;
|
|
|
|
DWORD cbSrcLengthUsed;
|
|
|
|
DWORD dwSrcUser;
|
|
|
|
LPBYTE pbDst;
|
|
|
|
DWORD cbDstLength;
|
|
|
|
DWORD cbDstLengthUsed;
|
|
|
|
DWORD dwDstUser;
|
|
|
|
|
|
|
|
DWORD fdwConvert;
|
|
|
|
LPACMDRVSTREAMHEADER16 *padshNext;
|
|
|
|
DWORD fdwDriver;
|
|
|
|
DWORD dwDriver;
|
|
|
|
|
|
|
|
/* Internal fields for ACM */
|
|
|
|
DWORD fdwPrepared;
|
|
|
|
DWORD dwPrepared;
|
|
|
|
LPBYTE pbPreparedSrc;
|
|
|
|
DWORD cbPreparedSrcLength;
|
|
|
|
LPBYTE pbPreparedDst;
|
|
|
|
DWORD cbPreparedDstLength;
|
|
|
|
} ACMDRVSTREAMHEADER16, *NPACMDRVSTREAMHEADER16;
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
typedef struct _ACMDRVSTREAMHEADER *PACMDRVSTREAMHEADER;
|
|
|
|
typedef struct _ACMDRVSTREAMHEADER {
|
1998-10-11 19:00:29 +02:00
|
|
|
DWORD cbStruct;
|
|
|
|
DWORD fdwStatus;
|
|
|
|
DWORD dwUser;
|
|
|
|
LPBYTE pbSrc;
|
|
|
|
DWORD cbSrcLength;
|
|
|
|
DWORD cbSrcLengthUsed;
|
|
|
|
DWORD dwSrcUser;
|
|
|
|
LPBYTE pbDst;
|
|
|
|
DWORD cbDstLength;
|
|
|
|
DWORD cbDstLengthUsed;
|
|
|
|
DWORD dwDstUser;
|
|
|
|
|
|
|
|
DWORD fdwConvert;
|
1999-02-26 12:11:13 +01:00
|
|
|
PACMDRVSTREAMHEADER *padshNext;
|
1998-10-11 19:00:29 +02:00
|
|
|
DWORD fdwDriver;
|
|
|
|
DWORD dwDriver;
|
|
|
|
|
|
|
|
/* Internal fields for ACM */
|
|
|
|
DWORD fdwPrepared;
|
|
|
|
DWORD dwPrepared;
|
|
|
|
LPBYTE pbPreparedSrc;
|
|
|
|
DWORD cbPreparedSrcLength;
|
|
|
|
LPBYTE pbPreparedDst;
|
|
|
|
DWORD cbPreparedDstLength;
|
1999-02-26 12:11:13 +01:00
|
|
|
} ACMDRVSTREAMHEADER;
|
1998-10-11 19:00:29 +02:00
|
|
|
|
|
|
|
typedef struct _ACMDRVSTREAMSIZE
|
|
|
|
{
|
|
|
|
DWORD cbStruct;
|
|
|
|
DWORD fdwSize;
|
|
|
|
DWORD cbSrcLength;
|
|
|
|
DWORD cbDstLength;
|
|
|
|
} ACMDRVSTREAMSIZE16, *NPACMDRVSTREAMSIZE16, *LPACMDRVSTREAMSIZE16,
|
1999-02-26 12:11:13 +01:00
|
|
|
ACMDRVSTREAMSIZE, *PACMDRVSTREAMSIZE;
|
1998-10-11 19:00:29 +02:00
|
|
|
|
|
|
|
typedef struct _ACMDRVFORMATSUGGEST16
|
|
|
|
{
|
|
|
|
DWORD cbStruct;
|
|
|
|
DWORD fdwSuggest;
|
1999-02-14 10:41:42 +01:00
|
|
|
LPWAVEFORMATEX pwfxSrc;
|
1998-10-11 19:00:29 +02:00
|
|
|
DWORD cbwfxSrc;
|
1999-02-14 10:41:42 +01:00
|
|
|
LPWAVEFORMATEX pwfxDst;
|
1998-10-11 19:00:29 +02:00
|
|
|
DWORD cbwfxDst;
|
|
|
|
} ACMDRVFORMATSUGGEST16, *NPACMDRVFORMATSUGGEST, *LPACMDRVFORMATSUGGEST;
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
typedef struct _ACMDRVFORMATSUGGEST
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
|
|
|
DWORD cbStruct;
|
|
|
|
DWORD fdwSuggest;
|
1999-02-14 10:41:42 +01:00
|
|
|
PWAVEFORMATEX pwfxSrc;
|
1998-10-11 19:00:29 +02:00
|
|
|
DWORD cbwfxSrc;
|
1999-02-14 10:41:42 +01:00
|
|
|
PWAVEFORMATEX pwfxDst;
|
1998-10-11 19:00:29 +02:00
|
|
|
DWORD cbwfxDst;
|
1999-02-26 12:11:13 +01:00
|
|
|
} ACMDRVFORMATSUGGEST, *PACMDRVFORMATSUGGEST;
|
1998-10-11 19:00:29 +02:00
|
|
|
|
|
|
|
#endif /* __WINE_MSACMDRV_H */
|