msacmdrv.h 4.54 KB
Newer Older
1
/*
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
 * 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
18
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 20 21 22 23
 */

#ifndef __WINE_MSACMDRV_H
#define __WINE_MSACMDRV_H

24 25
#include <stdarg.h>

26 27 28 29 30
#include <windef.h>
#include <winbase.h>
#include <mmsystem.h>
#include <mmreg.h>
#include <msacm.h>
31 32 33 34 35 36 37 38 39 40

/***********************************************************************
 * Types
 */

/***********************************************************************
 * Defines/Enums
 */

#define MAKE_ACM_VERSION(mjr, mnr, bld) \
41
  (((LONG)(mjr)<<24) | ((LONG)(mnr)<<16) | ((LONG)bld))
42

43
#define ACMDRVOPENDESC_SECTIONNAME_CHARS
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70

#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
 */

71
typedef struct _ACMDRVOPENDESCA
72 73 74 75 76 77 78 79 80 81
{
  DWORD  cbStruct;
  FOURCC fccType;
  FOURCC fccComp;
  DWORD  dwVersion;
  DWORD  dwFlags;
  DWORD  dwError;
  LPCSTR pszSectionName;
  LPCSTR pszAliasName;
  DWORD  dnDevNode;
82
} ACMDRVOPENDESCA, *PACMDRVOPENDESCA;
83

84
typedef struct _ACMDRVOPENDESCW
85 86 87 88 89 90 91 92 93 94
{
  DWORD   cbStruct;
  FOURCC  fccType;
  FOURCC  fccComp;
  DWORD   dwVersion;
  DWORD   dwFlags;
  DWORD   dwError;
  LPCWSTR pszSectionName;
  LPCWSTR pszAliasName;
  DWORD   dnDevNode;
95
} ACMDRVOPENDESCW, *PACMDRVOPENDESCW;
96

97
typedef struct _ACMDRVSTREAMINSTANCE
98 99
{
  DWORD           cbStruct;
100 101 102
  PWAVEFORMATEX   pwfxSrc;
  PWAVEFORMATEX   pwfxDst;
  PWAVEFILTER     pwfltr;
103 104
  DWORD_PTR       dwCallback;
  DWORD_PTR       dwInstance;
105 106
  DWORD           fdwOpen;
  DWORD           fdwDriver;
107
  DWORD_PTR       dwDriver;
108 109
  HACMSTREAM    has;
} ACMDRVSTREAMINSTANCE, *PACMDRVSTREAMINSTANCE;
110

111
typedef struct _ACMDRVSTREAMHEADER *PACMDRVSTREAMHEADER;
112
#include <pshpack1.h>
113
typedef struct _ACMDRVSTREAMHEADER {
114 115 116 117 118 119 120 121 122 123 124 125 126
  DWORD                cbStruct;
  DWORD                fdwStatus;
  DWORD_PTR            dwUser;
  LPBYTE               pbSrc;
  DWORD                cbSrcLength;
  DWORD                cbSrcLengthUsed;
  DWORD_PTR            dwSrcUser;
  LPBYTE               pbDst;
  DWORD                cbDstLength;
  DWORD                cbDstLengthUsed;
  DWORD_PTR            dwDstUser;

  DWORD                fdwConvert;
127
  PACMDRVSTREAMHEADER *padshNext;
128 129
  DWORD                fdwDriver;
  DWORD_PTR            dwDriver;
130 131

  /* Internal fields for ACM */
132 133 134 135 136 137
  DWORD                fdwPrepared;
  DWORD_PTR            dwPrepared;
  LPBYTE               pbPreparedSrc;
  DWORD                cbPreparedSrcLength;
  LPBYTE               pbPreparedDst;
  DWORD                cbPreparedDstLength;
138
} ACMDRVSTREAMHEADER;
139
#include <poppack.h>
140 141 142 143 144 145 146

typedef struct _ACMDRVSTREAMSIZE
{
  DWORD cbStruct;
  DWORD fdwSize;
  DWORD cbSrcLength;
  DWORD cbDstLength;
147
} ACMDRVSTREAMSIZE, *PACMDRVSTREAMSIZE;
148

149
typedef struct _ACMDRVFORMATSUGGEST
150 151 152
{
  DWORD           cbStruct;
  DWORD           fdwSuggest;
153
  PWAVEFORMATEX   pwfxSrc;
154
  DWORD           cbwfxSrc;
155
  PWAVEFORMATEX   pwfxDst;
156
  DWORD           cbwfxDst;
157
} ACMDRVFORMATSUGGEST, *PACMDRVFORMATSUGGEST;
158 159

#endif  /* __WINE_MSACMDRV_H */