Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | pmbaty | 1 | /*==========================================================================; |
| 2 | * |
||
| 3 | * Copyright (c) Microsoft Corporation. All rights reserved. |
||
| 4 | * |
||
| 5 | * File: dsound.h |
||
| 6 | * Content: DirectSound include file |
||
| 7 | * |
||
| 8 | **************************************************************************/ |
||
| 9 | |||
| 10 | #define COM_NO_WINDOWS_H |
||
| 11 | #include <objbase.h> |
||
| 12 | #include <float.h> |
||
| 13 | #include <sal.h> |
||
| 14 | |||
| 15 | #ifndef DIRECTSOUND_VERSION |
||
| 16 | |||
| 17 | #if (NTDDI_VERSION < NTDDI_WINXP) /* Windows 2000 */ |
||
| 18 | #define DIRECTSOUND_VERSION 0x0700 /* Version 7.0 */ |
||
| 19 | #elif (NTDDI_VERSION < NTDDI_WINXPSP2 || NTDDI_VERSION == NTDDI_WS03) /* Windows XP and SP1, or Windows Server 2003 */ |
||
| 20 | #define DIRECTSOUND_VERSION 0x0800 /* Version 8.0 */ |
||
| 21 | #else /* Windows XP SP2 and higher, Windows Server 2003 SP1 and higher, Longhorn, or higher */ |
||
| 22 | #define DIRECTSOUND_VERSION 0x0900 /* Version 9.0 */ |
||
| 23 | #endif |
||
| 24 | |||
| 25 | #endif // DIRECTSOUND_VERSION |
||
| 26 | |||
| 27 | #ifdef __cplusplus |
||
| 28 | extern "C" { |
||
| 29 | #endif // __cplusplus |
||
| 30 | |||
| 31 | #ifndef __DSOUND_INCLUDED__ |
||
| 32 | #define __DSOUND_INCLUDED__ |
||
| 33 | |||
| 34 | /* Type definitions shared with Direct3D */ |
||
| 35 | |||
| 36 | #ifndef DX_SHARED_DEFINES |
||
| 37 | |||
| 38 | typedef float D3DVALUE, *LPD3DVALUE; |
||
| 39 | |||
| 40 | #ifndef D3DCOLOR_DEFINED |
||
| 41 | typedef DWORD D3DCOLOR; |
||
| 42 | #define D3DCOLOR_DEFINED |
||
| 43 | #endif |
||
| 44 | |||
| 45 | #ifndef LPD3DCOLOR_DEFINED |
||
| 46 | typedef DWORD *LPD3DCOLOR; |
||
| 47 | #define LPD3DCOLOR_DEFINED |
||
| 48 | #endif |
||
| 49 | |||
| 50 | #ifndef D3DVECTOR_DEFINED |
||
| 51 | typedef struct _D3DVECTOR { |
||
| 52 | float x; |
||
| 53 | float y; |
||
| 54 | float z; |
||
| 55 | } D3DVECTOR; |
||
| 56 | #define D3DVECTOR_DEFINED |
||
| 57 | #endif |
||
| 58 | |||
| 59 | #ifndef LPD3DVECTOR_DEFINED |
||
| 60 | typedef D3DVECTOR *LPD3DVECTOR; |
||
| 61 | #define LPD3DVECTOR_DEFINED |
||
| 62 | #endif |
||
| 63 | |||
| 64 | #define DX_SHARED_DEFINES |
||
| 65 | #endif // DX_SHARED_DEFINES |
||
| 66 | |||
| 67 | #define _FACDS 0x878 /* DirectSound's facility code */ |
||
| 68 | #define MAKE_DSHRESULT(code) MAKE_HRESULT(1, _FACDS, code) |
||
| 69 | |||
| 70 | // DirectSound Component GUID {47D4D946-62E8-11CF-93BC-444553540000} |
||
| 71 | DEFINE_GUID(CLSID_DirectSound, 0x47d4d946, 0x62e8, 0x11cf, 0x93, 0xbc, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0); |
||
| 72 | |||
| 73 | // DirectSound 8.0 Component GUID {3901CC3F-84B5-4FA4-BA35-AA8172B8A09B} |
||
| 74 | DEFINE_GUID(CLSID_DirectSound8, 0x3901cc3f, 0x84b5, 0x4fa4, 0xba, 0x35, 0xaa, 0x81, 0x72, 0xb8, 0xa0, 0x9b); |
||
| 75 | |||
| 76 | // DirectSound Capture Component GUID {B0210780-89CD-11D0-AF08-00A0C925CD16} |
||
| 77 | DEFINE_GUID(CLSID_DirectSoundCapture, 0xb0210780, 0x89cd, 0x11d0, 0xaf, 0x8, 0x0, 0xa0, 0xc9, 0x25, 0xcd, 0x16); |
||
| 78 | |||
| 79 | // DirectSound 8.0 Capture Component GUID {E4BCAC13-7F99-4908-9A8E-74E3BF24B6E1} |
||
| 80 | DEFINE_GUID(CLSID_DirectSoundCapture8, 0xe4bcac13, 0x7f99, 0x4908, 0x9a, 0x8e, 0x74, 0xe3, 0xbf, 0x24, 0xb6, 0xe1); |
||
| 81 | |||
| 82 | // DirectSound Full Duplex Component GUID {FEA4300C-7959-4147-B26A-2377B9E7A91D} |
||
| 83 | DEFINE_GUID(CLSID_DirectSoundFullDuplex, 0xfea4300c, 0x7959, 0x4147, 0xb2, 0x6a, 0x23, 0x77, 0xb9, 0xe7, 0xa9, 0x1d); |
||
| 84 | |||
| 85 | |||
| 86 | // DirectSound default playback device GUID {DEF00000-9C6D-47ED-AAF1-4DDA8F2B5C03} |
||
| 87 | DEFINE_GUID(DSDEVID_DefaultPlayback, 0xdef00000, 0x9c6d, 0x47ed, 0xaa, 0xf1, 0x4d, 0xda, 0x8f, 0x2b, 0x5c, 0x03); |
||
| 88 | |||
| 89 | // DirectSound default capture device GUID {DEF00001-9C6D-47ED-AAF1-4DDA8F2B5C03} |
||
| 90 | DEFINE_GUID(DSDEVID_DefaultCapture, 0xdef00001, 0x9c6d, 0x47ed, 0xaa, 0xf1, 0x4d, 0xda, 0x8f, 0x2b, 0x5c, 0x03); |
||
| 91 | |||
| 92 | // DirectSound default device for voice playback {DEF00002-9C6D-47ED-AAF1-4DDA8F2B5C03} |
||
| 93 | DEFINE_GUID(DSDEVID_DefaultVoicePlayback, 0xdef00002, 0x9c6d, 0x47ed, 0xaa, 0xf1, 0x4d, 0xda, 0x8f, 0x2b, 0x5c, 0x03); |
||
| 94 | |||
| 95 | // DirectSound default device for voice capture {DEF00003-9C6D-47ED-AAF1-4DDA8F2B5C03} |
||
| 96 | DEFINE_GUID(DSDEVID_DefaultVoiceCapture, 0xdef00003, 0x9c6d, 0x47ed, 0xaa, 0xf1, 0x4d, 0xda, 0x8f, 0x2b, 0x5c, 0x03); |
||
| 97 | |||
| 98 | |||
| 99 | // |
||
| 100 | // Forward declarations for interfaces. |
||
| 101 | // 'struct' not 'class' per the way DECLARE_INTERFACE_ is defined |
||
| 102 | // |
||
| 103 | |||
| 104 | #ifdef __cplusplus |
||
| 105 | struct IDirectSound; |
||
| 106 | struct IDirectSoundBuffer; |
||
| 107 | struct IDirectSound3DListener; |
||
| 108 | struct IDirectSound3DBuffer; |
||
| 109 | struct IDirectSoundCapture; |
||
| 110 | struct IDirectSoundCaptureBuffer; |
||
| 111 | struct IDirectSoundNotify; |
||
| 112 | #endif // __cplusplus |
||
| 113 | |||
| 114 | // |
||
| 115 | // DirectSound 8.0 interfaces. |
||
| 116 | // |
||
| 117 | |||
| 118 | #if DIRECTSOUND_VERSION >= 0x0800 |
||
| 119 | |||
| 120 | #ifdef __cplusplus |
||
| 121 | struct IDirectSound8; |
||
| 122 | struct IDirectSoundBuffer8; |
||
| 123 | struct IDirectSoundCaptureBuffer8; |
||
| 124 | struct IDirectSoundFXGargle; |
||
| 125 | struct IDirectSoundFXChorus; |
||
| 126 | struct IDirectSoundFXFlanger; |
||
| 127 | struct IDirectSoundFXEcho; |
||
| 128 | struct IDirectSoundFXDistortion; |
||
| 129 | struct IDirectSoundFXCompressor; |
||
| 130 | struct IDirectSoundFXParamEq; |
||
| 131 | struct IDirectSoundFXWavesReverb; |
||
| 132 | struct IDirectSoundFXI3DL2Reverb; |
||
| 133 | struct IDirectSoundCaptureFXAec; |
||
| 134 | struct IDirectSoundCaptureFXNoiseSuppress; |
||
| 135 | struct IDirectSoundFullDuplex; |
||
| 136 | #endif // __cplusplus |
||
| 137 | |||
| 138 | // IDirectSound8, IDirectSoundBuffer8 and IDirectSoundCaptureBuffer8 are the |
||
| 139 | // only DirectSound 7.0 interfaces with changed functionality in version 8.0. |
||
| 140 | // The other level 8 interfaces as equivalent to their level 7 counterparts: |
||
| 141 | |||
| 142 | #define IDirectSoundCapture8 IDirectSoundCapture |
||
| 143 | #define IDirectSound3DListener8 IDirectSound3DListener |
||
| 144 | #define IDirectSound3DBuffer8 IDirectSound3DBuffer |
||
| 145 | #define IDirectSoundNotify8 IDirectSoundNotify |
||
| 146 | #define IDirectSoundFXGargle8 IDirectSoundFXGargle |
||
| 147 | #define IDirectSoundFXChorus8 IDirectSoundFXChorus |
||
| 148 | #define IDirectSoundFXFlanger8 IDirectSoundFXFlanger |
||
| 149 | #define IDirectSoundFXEcho8 IDirectSoundFXEcho |
||
| 150 | #define IDirectSoundFXDistortion8 IDirectSoundFXDistortion |
||
| 151 | #define IDirectSoundFXCompressor8 IDirectSoundFXCompressor |
||
| 152 | #define IDirectSoundFXParamEq8 IDirectSoundFXParamEq |
||
| 153 | #define IDirectSoundFXWavesReverb8 IDirectSoundFXWavesReverb |
||
| 154 | #define IDirectSoundFXI3DL2Reverb8 IDirectSoundFXI3DL2Reverb |
||
| 155 | #define IDirectSoundCaptureFXAec8 IDirectSoundCaptureFXAec |
||
| 156 | #define IDirectSoundCaptureFXNoiseSuppress8 IDirectSoundCaptureFXNoiseSuppress |
||
| 157 | #define IDirectSoundFullDuplex8 IDirectSoundFullDuplex |
||
| 158 | |||
| 159 | #endif // DIRECTSOUND_VERSION >= 0x0800 |
||
| 160 | |||
| 161 | typedef struct IDirectSound *LPDIRECTSOUND; |
||
| 162 | typedef struct IDirectSoundBuffer *LPDIRECTSOUNDBUFFER; |
||
| 163 | typedef struct IDirectSound3DListener *LPDIRECTSOUND3DLISTENER; |
||
| 164 | typedef struct IDirectSound3DBuffer *LPDIRECTSOUND3DBUFFER; |
||
| 165 | typedef struct IDirectSoundCapture *LPDIRECTSOUNDCAPTURE; |
||
| 166 | typedef struct IDirectSoundCaptureBuffer *LPDIRECTSOUNDCAPTUREBUFFER; |
||
| 167 | typedef struct IDirectSoundNotify *LPDIRECTSOUNDNOTIFY; |
||
| 168 | |||
| 169 | #if DIRECTSOUND_VERSION >= 0x0800 |
||
| 170 | |||
| 171 | typedef struct IDirectSoundFXGargle *LPDIRECTSOUNDFXGARGLE; |
||
| 172 | typedef struct IDirectSoundFXChorus *LPDIRECTSOUNDFXCHORUS; |
||
| 173 | typedef struct IDirectSoundFXFlanger *LPDIRECTSOUNDFXFLANGER; |
||
| 174 | typedef struct IDirectSoundFXEcho *LPDIRECTSOUNDFXECHO; |
||
| 175 | typedef struct IDirectSoundFXDistortion *LPDIRECTSOUNDFXDISTORTION; |
||
| 176 | typedef struct IDirectSoundFXCompressor *LPDIRECTSOUNDFXCOMPRESSOR; |
||
| 177 | typedef struct IDirectSoundFXParamEq *LPDIRECTSOUNDFXPARAMEQ; |
||
| 178 | typedef struct IDirectSoundFXWavesReverb *LPDIRECTSOUNDFXWAVESREVERB; |
||
| 179 | typedef struct IDirectSoundFXI3DL2Reverb *LPDIRECTSOUNDFXI3DL2REVERB; |
||
| 180 | typedef struct IDirectSoundCaptureFXAec *LPDIRECTSOUNDCAPTUREFXAEC; |
||
| 181 | typedef struct IDirectSoundCaptureFXNoiseSuppress *LPDIRECTSOUNDCAPTUREFXNOISESUPPRESS; |
||
| 182 | typedef struct IDirectSoundFullDuplex *LPDIRECTSOUNDFULLDUPLEX; |
||
| 183 | |||
| 184 | typedef struct IDirectSound8 *LPDIRECTSOUND8; |
||
| 185 | typedef struct IDirectSoundBuffer8 *LPDIRECTSOUNDBUFFER8; |
||
| 186 | typedef struct IDirectSound3DListener8 *LPDIRECTSOUND3DLISTENER8; |
||
| 187 | typedef struct IDirectSound3DBuffer8 *LPDIRECTSOUND3DBUFFER8; |
||
| 188 | typedef struct IDirectSoundCapture8 *LPDIRECTSOUNDCAPTURE8; |
||
| 189 | typedef struct IDirectSoundCaptureBuffer8 *LPDIRECTSOUNDCAPTUREBUFFER8; |
||
| 190 | typedef struct IDirectSoundNotify8 *LPDIRECTSOUNDNOTIFY8; |
||
| 191 | typedef struct IDirectSoundFXGargle8 *LPDIRECTSOUNDFXGARGLE8; |
||
| 192 | typedef struct IDirectSoundFXChorus8 *LPDIRECTSOUNDFXCHORUS8; |
||
| 193 | typedef struct IDirectSoundFXFlanger8 *LPDIRECTSOUNDFXFLANGER8; |
||
| 194 | typedef struct IDirectSoundFXEcho8 *LPDIRECTSOUNDFXECHO8; |
||
| 195 | typedef struct IDirectSoundFXDistortion8 *LPDIRECTSOUNDFXDISTORTION8; |
||
| 196 | typedef struct IDirectSoundFXCompressor8 *LPDIRECTSOUNDFXCOMPRESSOR8; |
||
| 197 | typedef struct IDirectSoundFXParamEq8 *LPDIRECTSOUNDFXPARAMEQ8; |
||
| 198 | typedef struct IDirectSoundFXWavesReverb8 *LPDIRECTSOUNDFXWAVESREVERB8; |
||
| 199 | typedef struct IDirectSoundFXI3DL2Reverb8 *LPDIRECTSOUNDFXI3DL2REVERB8; |
||
| 200 | typedef struct IDirectSoundCaptureFXAec8 *LPDIRECTSOUNDCAPTUREFXAEC8; |
||
| 201 | typedef struct IDirectSoundCaptureFXNoiseSuppress8 *LPDIRECTSOUNDCAPTUREFXNOISESUPPRESS8; |
||
| 202 | typedef struct IDirectSoundFullDuplex8 *LPDIRECTSOUNDFULLDUPLEX8; |
||
| 203 | |||
| 204 | #endif // DIRECTSOUND_VERSION >= 0x0800 |
||
| 205 | |||
| 206 | // |
||
| 207 | // IID definitions for the unchanged DirectSound 8.0 interfaces |
||
| 208 | // |
||
| 209 | |||
| 210 | #if DIRECTSOUND_VERSION >= 0x0800 |
||
| 211 | |||
| 212 | #define IID_IDirectSoundCapture8 IID_IDirectSoundCapture |
||
| 213 | #define IID_IDirectSound3DListener8 IID_IDirectSound3DListener |
||
| 214 | #define IID_IDirectSound3DBuffer8 IID_IDirectSound3DBuffer |
||
| 215 | #define IID_IDirectSoundNotify8 IID_IDirectSoundNotify |
||
| 216 | #define IID_IDirectSoundFXGargle8 IID_IDirectSoundFXGargle |
||
| 217 | #define IID_IDirectSoundFXChorus8 IID_IDirectSoundFXChorus |
||
| 218 | #define IID_IDirectSoundFXFlanger8 IID_IDirectSoundFXFlanger |
||
| 219 | #define IID_IDirectSoundFXEcho8 IID_IDirectSoundFXEcho |
||
| 220 | #define IID_IDirectSoundFXDistortion8 IID_IDirectSoundFXDistortion |
||
| 221 | #define IID_IDirectSoundFXCompressor8 IID_IDirectSoundFXCompressor |
||
| 222 | #define IID_IDirectSoundFXParamEq8 IID_IDirectSoundFXParamEq |
||
| 223 | #define IID_IDirectSoundFXWavesReverb8 IID_IDirectSoundFXWavesReverb |
||
| 224 | #define IID_IDirectSoundFXI3DL2Reverb8 IID_IDirectSoundFXI3DL2Reverb |
||
| 225 | #define IID_IDirectSoundCaptureFXAec8 IID_IDirectSoundCaptureFXAec |
||
| 226 | #define IID_IDirectSoundCaptureFXNoiseSuppress8 IID_IDirectSoundCaptureFXNoiseSuppress |
||
| 227 | #define IID_IDirectSoundFullDuplex8 IID_IDirectSoundFullDuplex |
||
| 228 | |||
| 229 | #endif // DIRECTSOUND_VERSION >= 0x0800 |
||
| 230 | |||
| 231 | // |
||
| 232 | // Compatibility typedefs |
||
| 233 | // |
||
| 234 | |||
| 235 | #ifndef _LPCWAVEFORMATEX_DEFINED |
||
| 236 | #define _LPCWAVEFORMATEX_DEFINED |
||
| 237 | typedef const WAVEFORMATEX *LPCWAVEFORMATEX; |
||
| 238 | #endif // _LPCWAVEFORMATEX_DEFINED |
||
| 239 | |||
| 240 | #ifndef __LPCGUID_DEFINED__ |
||
| 241 | #define __LPCGUID_DEFINED__ |
||
| 242 | typedef const GUID *LPCGUID; |
||
| 243 | #endif // __LPCGUID_DEFINED__ |
||
| 244 | |||
| 245 | typedef LPDIRECTSOUND *LPLPDIRECTSOUND; |
||
| 246 | typedef LPDIRECTSOUNDBUFFER *LPLPDIRECTSOUNDBUFFER; |
||
| 247 | typedef LPDIRECTSOUND3DLISTENER *LPLPDIRECTSOUND3DLISTENER; |
||
| 248 | typedef LPDIRECTSOUND3DBUFFER *LPLPDIRECTSOUND3DBUFFER; |
||
| 249 | typedef LPDIRECTSOUNDCAPTURE *LPLPDIRECTSOUNDCAPTURE; |
||
| 250 | typedef LPDIRECTSOUNDCAPTUREBUFFER *LPLPDIRECTSOUNDCAPTUREBUFFER; |
||
| 251 | typedef LPDIRECTSOUNDNOTIFY *LPLPDIRECTSOUNDNOTIFY; |
||
| 252 | |||
| 253 | #if DIRECTSOUND_VERSION >= 0x0800 |
||
| 254 | typedef LPDIRECTSOUND8 *LPLPDIRECTSOUND8; |
||
| 255 | typedef LPDIRECTSOUNDBUFFER8 *LPLPDIRECTSOUNDBUFFER8; |
||
| 256 | typedef LPDIRECTSOUNDCAPTURE8 *LPLPDIRECTSOUNDCAPTURE8; |
||
| 257 | typedef LPDIRECTSOUNDCAPTUREBUFFER8 *LPLPDIRECTSOUNDCAPTUREBUFFER8; |
||
| 258 | #endif // DIRECTSOUND_VERSION >= 0x0800 |
||
| 259 | |||
| 260 | // |
||
| 261 | // Structures |
||
| 262 | // |
||
| 263 | |||
| 264 | typedef struct _DSCAPS |
||
| 265 | { |
||
| 266 | DWORD dwSize; |
||
| 267 | DWORD dwFlags; |
||
| 268 | DWORD dwMinSecondarySampleRate; |
||
| 269 | DWORD dwMaxSecondarySampleRate; |
||
| 270 | DWORD dwPrimaryBuffers; |
||
| 271 | DWORD dwMaxHwMixingAllBuffers; |
||
| 272 | DWORD dwMaxHwMixingStaticBuffers; |
||
| 273 | DWORD dwMaxHwMixingStreamingBuffers; |
||
| 274 | DWORD dwFreeHwMixingAllBuffers; |
||
| 275 | DWORD dwFreeHwMixingStaticBuffers; |
||
| 276 | DWORD dwFreeHwMixingStreamingBuffers; |
||
| 277 | DWORD dwMaxHw3DAllBuffers; |
||
| 278 | DWORD dwMaxHw3DStaticBuffers; |
||
| 279 | DWORD dwMaxHw3DStreamingBuffers; |
||
| 280 | DWORD dwFreeHw3DAllBuffers; |
||
| 281 | DWORD dwFreeHw3DStaticBuffers; |
||
| 282 | DWORD dwFreeHw3DStreamingBuffers; |
||
| 283 | DWORD dwTotalHwMemBytes; |
||
| 284 | DWORD dwFreeHwMemBytes; |
||
| 285 | DWORD dwMaxContigFreeHwMemBytes; |
||
| 286 | DWORD dwUnlockTransferRateHwBuffers; |
||
| 287 | DWORD dwPlayCpuOverheadSwBuffers; |
||
| 288 | DWORD dwReserved1; |
||
| 289 | DWORD dwReserved2; |
||
| 290 | } DSCAPS, *LPDSCAPS; |
||
| 291 | |||
| 292 | typedef const DSCAPS *LPCDSCAPS; |
||
| 293 | |||
| 294 | typedef struct _DSBCAPS |
||
| 295 | { |
||
| 296 | DWORD dwSize; |
||
| 297 | DWORD dwFlags; |
||
| 298 | DWORD dwBufferBytes; |
||
| 299 | DWORD dwUnlockTransferRate; |
||
| 300 | DWORD dwPlayCpuOverhead; |
||
| 301 | } DSBCAPS, *LPDSBCAPS; |
||
| 302 | |||
| 303 | typedef const DSBCAPS *LPCDSBCAPS; |
||
| 304 | |||
| 305 | #if DIRECTSOUND_VERSION >= 0x0800 |
||
| 306 | |||
| 307 | typedef struct _DSEFFECTDESC |
||
| 308 | { |
||
| 309 | DWORD dwSize; |
||
| 310 | DWORD dwFlags; |
||
| 311 | GUID guidDSFXClass; |
||
| 312 | DWORD_PTR dwReserved1; |
||
| 313 | DWORD_PTR dwReserved2; |
||
| 314 | } DSEFFECTDESC, *LPDSEFFECTDESC; |
||
| 315 | typedef const DSEFFECTDESC *LPCDSEFFECTDESC; |
||
| 316 | |||
| 317 | #define DSFX_LOCHARDWARE 0x00000001 |
||
| 318 | #define DSFX_LOCSOFTWARE 0x00000002 |
||
| 319 | |||
| 320 | enum |
||
| 321 | { |
||
| 322 | DSFXR_PRESENT, // 0 |
||
| 323 | DSFXR_LOCHARDWARE, // 1 |
||
| 324 | DSFXR_LOCSOFTWARE, // 2 |
||
| 325 | DSFXR_UNALLOCATED, // 3 |
||
| 326 | DSFXR_FAILED, // 4 |
||
| 327 | DSFXR_UNKNOWN, // 5 |
||
| 328 | DSFXR_SENDLOOP // 6 |
||
| 329 | }; |
||
| 330 | |||
| 331 | typedef struct _DSCEFFECTDESC |
||
| 332 | { |
||
| 333 | DWORD dwSize; |
||
| 334 | DWORD dwFlags; |
||
| 335 | GUID guidDSCFXClass; |
||
| 336 | GUID guidDSCFXInstance; |
||
| 337 | DWORD dwReserved1; |
||
| 338 | DWORD dwReserved2; |
||
| 339 | } DSCEFFECTDESC, *LPDSCEFFECTDESC; |
||
| 340 | typedef const DSCEFFECTDESC *LPCDSCEFFECTDESC; |
||
| 341 | |||
| 342 | #define DSCFX_LOCHARDWARE 0x00000001 |
||
| 343 | #define DSCFX_LOCSOFTWARE 0x00000002 |
||
| 344 | |||
| 345 | #define DSCFXR_LOCHARDWARE 0x00000010 |
||
| 346 | #define DSCFXR_LOCSOFTWARE 0x00000020 |
||
| 347 | |||
| 348 | #endif // DIRECTSOUND_VERSION >= 0x0800 |
||
| 349 | |||
| 350 | typedef struct _DSBUFFERDESC |
||
| 351 | { |
||
| 352 | DWORD dwSize; |
||
| 353 | DWORD dwFlags; |
||
| 354 | DWORD dwBufferBytes; |
||
| 355 | DWORD dwReserved; |
||
| 356 | LPWAVEFORMATEX lpwfxFormat; |
||
| 357 | #if DIRECTSOUND_VERSION >= 0x0700 |
||
| 358 | GUID guid3DAlgorithm; |
||
| 359 | #endif |
||
| 360 | } DSBUFFERDESC, *LPDSBUFFERDESC; |
||
| 361 | |||
| 362 | typedef const DSBUFFERDESC *LPCDSBUFFERDESC; |
||
| 363 | |||
| 364 | // Older version of this structure: |
||
| 365 | |||
| 366 | typedef struct _DSBUFFERDESC1 |
||
| 367 | { |
||
| 368 | DWORD dwSize; |
||
| 369 | DWORD dwFlags; |
||
| 370 | DWORD dwBufferBytes; |
||
| 371 | DWORD dwReserved; |
||
| 372 | LPWAVEFORMATEX lpwfxFormat; |
||
| 373 | } DSBUFFERDESC1, *LPDSBUFFERDESC1; |
||
| 374 | |||
| 375 | typedef const DSBUFFERDESC1 *LPCDSBUFFERDESC1; |
||
| 376 | |||
| 377 | typedef struct _DS3DBUFFER |
||
| 378 | { |
||
| 379 | DWORD dwSize; |
||
| 380 | D3DVECTOR vPosition; |
||
| 381 | D3DVECTOR vVelocity; |
||
| 382 | DWORD dwInsideConeAngle; |
||
| 383 | DWORD dwOutsideConeAngle; |
||
| 384 | D3DVECTOR vConeOrientation; |
||
| 385 | LONG lConeOutsideVolume; |
||
| 386 | D3DVALUE flMinDistance; |
||
| 387 | D3DVALUE flMaxDistance; |
||
| 388 | DWORD dwMode; |
||
| 389 | } DS3DBUFFER, *LPDS3DBUFFER; |
||
| 390 | |||
| 391 | typedef const DS3DBUFFER *LPCDS3DBUFFER; |
||
| 392 | |||
| 393 | typedef struct _DS3DLISTENER |
||
| 394 | { |
||
| 395 | DWORD dwSize; |
||
| 396 | D3DVECTOR vPosition; |
||
| 397 | D3DVECTOR vVelocity; |
||
| 398 | D3DVECTOR vOrientFront; |
||
| 399 | D3DVECTOR vOrientTop; |
||
| 400 | D3DVALUE flDistanceFactor; |
||
| 401 | D3DVALUE flRolloffFactor; |
||
| 402 | D3DVALUE flDopplerFactor; |
||
| 403 | } DS3DLISTENER, *LPDS3DLISTENER; |
||
| 404 | |||
| 405 | typedef const DS3DLISTENER *LPCDS3DLISTENER; |
||
| 406 | |||
| 407 | typedef struct _DSCCAPS |
||
| 408 | { |
||
| 409 | DWORD dwSize; |
||
| 410 | DWORD dwFlags; |
||
| 411 | DWORD dwFormats; |
||
| 412 | DWORD dwChannels; |
||
| 413 | } DSCCAPS, *LPDSCCAPS; |
||
| 414 | |||
| 415 | typedef const DSCCAPS *LPCDSCCAPS; |
||
| 416 | |||
| 417 | typedef struct _DSCBUFFERDESC1 |
||
| 418 | { |
||
| 419 | DWORD dwSize; |
||
| 420 | DWORD dwFlags; |
||
| 421 | DWORD dwBufferBytes; |
||
| 422 | DWORD dwReserved; |
||
| 423 | LPWAVEFORMATEX lpwfxFormat; |
||
| 424 | } DSCBUFFERDESC1, *LPDSCBUFFERDESC1; |
||
| 425 | |||
| 426 | typedef struct _DSCBUFFERDESC |
||
| 427 | { |
||
| 428 | DWORD dwSize; |
||
| 429 | DWORD dwFlags; |
||
| 430 | DWORD dwBufferBytes; |
||
| 431 | DWORD dwReserved; |
||
| 432 | LPWAVEFORMATEX lpwfxFormat; |
||
| 433 | #if DIRECTSOUND_VERSION >= 0x0800 |
||
| 434 | DWORD dwFXCount; |
||
| 435 | LPDSCEFFECTDESC lpDSCFXDesc; |
||
| 436 | #endif |
||
| 437 | } DSCBUFFERDESC, *LPDSCBUFFERDESC; |
||
| 438 | |||
| 439 | typedef const DSCBUFFERDESC *LPCDSCBUFFERDESC; |
||
| 440 | |||
| 441 | typedef struct _DSCBCAPS |
||
| 442 | { |
||
| 443 | DWORD dwSize; |
||
| 444 | DWORD dwFlags; |
||
| 445 | DWORD dwBufferBytes; |
||
| 446 | DWORD dwReserved; |
||
| 447 | } DSCBCAPS, *LPDSCBCAPS; |
||
| 448 | |||
| 449 | typedef const DSCBCAPS *LPCDSCBCAPS; |
||
| 450 | |||
| 451 | typedef struct _DSBPOSITIONNOTIFY |
||
| 452 | { |
||
| 453 | DWORD dwOffset; |
||
| 454 | HANDLE hEventNotify; |
||
| 455 | } DSBPOSITIONNOTIFY, *LPDSBPOSITIONNOTIFY; |
||
| 456 | |||
| 457 | typedef const DSBPOSITIONNOTIFY *LPCDSBPOSITIONNOTIFY; |
||
| 458 | |||
| 459 | // |
||
| 460 | // DirectSound API |
||
| 461 | // |
||
| 462 | |||
| 463 | typedef BOOL (CALLBACK *LPDSENUMCALLBACKA)(LPGUID, LPCSTR, LPCSTR, LPVOID); |
||
| 464 | typedef BOOL (CALLBACK *LPDSENUMCALLBACKW)(LPGUID, LPCWSTR, LPCWSTR, LPVOID); |
||
| 465 | |||
| 466 | extern HRESULT WINAPI DirectSoundCreate(__in_opt LPCGUID pcGuidDevice, __deref_out LPDIRECTSOUND *ppDS, __null LPUNKNOWN pUnkOuter); |
||
| 467 | extern HRESULT WINAPI DirectSoundEnumerateA(__in LPDSENUMCALLBACKA pDSEnumCallback, __in_opt LPVOID pContext); |
||
| 468 | extern HRESULT WINAPI DirectSoundEnumerateW(__in LPDSENUMCALLBACKW pDSEnumCallback, __in_opt LPVOID pContext); |
||
| 469 | |||
| 470 | extern HRESULT WINAPI DirectSoundCaptureCreate(__in_opt LPCGUID pcGuidDevice, __deref_out LPDIRECTSOUNDCAPTURE *ppDSC, __null LPUNKNOWN pUnkOuter); |
||
| 471 | extern HRESULT WINAPI DirectSoundCaptureEnumerateA(__in LPDSENUMCALLBACKA pDSEnumCallback, __in_opt LPVOID pContext); |
||
| 472 | extern HRESULT WINAPI DirectSoundCaptureEnumerateW(__in LPDSENUMCALLBACKW pDSEnumCallback, __in_opt LPVOID pContext); |
||
| 473 | |||
| 474 | #if DIRECTSOUND_VERSION >= 0x0800 |
||
| 475 | extern HRESULT WINAPI DirectSoundCreate8(__in_opt LPCGUID pcGuidDevice, __deref_out LPDIRECTSOUND8 *ppDS8, __null LPUNKNOWN pUnkOuter); |
||
| 476 | extern HRESULT WINAPI DirectSoundCaptureCreate8(__in_opt LPCGUID pcGuidDevice, __deref_out LPDIRECTSOUNDCAPTURE8 *ppDSC8, __null LPUNKNOWN pUnkOuter); |
||
| 477 | extern HRESULT WINAPI DirectSoundFullDuplexCreate |
||
| 478 | ( |
||
| 479 | __in_opt LPCGUID pcGuidCaptureDevice, |
||
| 480 | __in_opt LPCGUID pcGuidRenderDevice, |
||
| 481 | __in LPCDSCBUFFERDESC pcDSCBufferDesc, |
||
| 482 | __in LPCDSBUFFERDESC pcDSBufferDesc, |
||
| 483 | HWND hWnd, |
||
| 484 | DWORD dwLevel, |
||
| 485 | __deref_out LPDIRECTSOUNDFULLDUPLEX* ppDSFD, |
||
| 486 | __deref_out LPDIRECTSOUNDCAPTUREBUFFER8 *ppDSCBuffer8, |
||
| 487 | __deref_out LPDIRECTSOUNDBUFFER8 *ppDSBuffer8, |
||
| 488 | __null LPUNKNOWN pUnkOuter |
||
| 489 | ); |
||
| 490 | #define DirectSoundFullDuplexCreate8 DirectSoundFullDuplexCreate |
||
| 491 | |||
| 492 | extern HRESULT WINAPI GetDeviceID(__in_opt LPCGUID pGuidSrc, __out LPGUID pGuidDest); |
||
| 493 | #endif // DIRECTSOUND_VERSION >= 0x0800 |
||
| 494 | |||
| 495 | #ifdef UNICODE |
||
| 496 | #define LPDSENUMCALLBACK LPDSENUMCALLBACKW |
||
| 497 | #define DirectSoundEnumerate DirectSoundEnumerateW |
||
| 498 | #define DirectSoundCaptureEnumerate DirectSoundCaptureEnumerateW |
||
| 499 | #else // UNICODE |
||
| 500 | #define LPDSENUMCALLBACK LPDSENUMCALLBACKA |
||
| 501 | #define DirectSoundEnumerate DirectSoundEnumerateA |
||
| 502 | #define DirectSoundCaptureEnumerate DirectSoundCaptureEnumerateA |
||
| 503 | #endif // UNICODE |
||
| 504 | |||
| 505 | // |
||
| 506 | // IUnknown |
||
| 507 | // |
||
| 508 | |||
| 509 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 510 | #ifndef IUnknown_QueryInterface |
||
| 511 | #define IUnknown_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
||
| 512 | #endif // IUnknown_QueryInterface |
||
| 513 | #ifndef IUnknown_AddRef |
||
| 514 | #define IUnknown_AddRef(p) (p)->lpVtbl->AddRef(p) |
||
| 515 | #endif // IUnknown_AddRef |
||
| 516 | #ifndef IUnknown_Release |
||
| 517 | #define IUnknown_Release(p) (p)->lpVtbl->Release(p) |
||
| 518 | #endif // IUnknown_Release |
||
| 519 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 520 | #ifndef IUnknown_QueryInterface |
||
| 521 | #define IUnknown_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
||
| 522 | #endif // IUnknown_QueryInterface |
||
| 523 | #ifndef IUnknown_AddRef |
||
| 524 | #define IUnknown_AddRef(p) (p)->AddRef() |
||
| 525 | #endif // IUnknown_AddRef |
||
| 526 | #ifndef IUnknown_Release |
||
| 527 | #define IUnknown_Release(p) (p)->Release() |
||
| 528 | #endif // IUnknown_Release |
||
| 529 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 530 | |||
| 531 | #ifndef __IReferenceClock_INTERFACE_DEFINED__ |
||
| 532 | #define __IReferenceClock_INTERFACE_DEFINED__ |
||
| 533 | |||
| 534 | typedef LONGLONG REFERENCE_TIME; |
||
| 535 | typedef REFERENCE_TIME *LPREFERENCE_TIME; |
||
| 536 | |||
| 537 | DEFINE_GUID(IID_IReferenceClock, 0x56a86897, 0x0ad4, 0x11ce, 0xb0, 0x3a, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70); |
||
| 538 | |||
| 539 | #undef INTERFACE |
||
| 540 | #define INTERFACE IReferenceClock |
||
| 541 | |||
| 542 | DECLARE_INTERFACE_(IReferenceClock, IUnknown) |
||
| 543 | { |
||
| 544 | // IUnknown methods |
||
| 545 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 546 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 547 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 548 | |||
| 549 | // IReferenceClock methods |
||
| 550 | STDMETHOD(GetTime) (THIS_ __out REFERENCE_TIME *pTime) PURE; |
||
| 551 | STDMETHOD(AdviseTime) (THIS_ REFERENCE_TIME rtBaseTime, REFERENCE_TIME rtStreamTime, |
||
| 552 | HANDLE hEvent, __out LPDWORD pdwAdviseCookie) PURE; |
||
| 553 | STDMETHOD(AdvisePeriodic) (THIS_ REFERENCE_TIME rtStartTime, REFERENCE_TIME rtPeriodTime, |
||
| 554 | HANDLE hSemaphore, __out LPDWORD pdwAdviseCookie) PURE; |
||
| 555 | STDMETHOD(Unadvise) (THIS_ DWORD dwAdviseCookie) PURE; |
||
| 556 | }; |
||
| 557 | |||
| 558 | #endif // __IReferenceClock_INTERFACE_DEFINED__ |
||
| 559 | |||
| 560 | #ifndef IReferenceClock_QueryInterface |
||
| 561 | |||
| 562 | #define IReferenceClock_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) |
||
| 563 | #define IReferenceClock_AddRef(p) IUnknown_AddRef(p) |
||
| 564 | #define IReferenceClock_Release(p) IUnknown_Release(p) |
||
| 565 | |||
| 566 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 567 | #define IReferenceClock_GetTime(p,a) (p)->lpVtbl->GetTime(p,a) |
||
| 568 | #define IReferenceClock_AdviseTime(p,a,b,c,d) (p)->lpVtbl->AdviseTime(p,a,b,c,d) |
||
| 569 | #define IReferenceClock_AdvisePeriodic(p,a,b,c,d) (p)->lpVtbl->AdvisePeriodic(p,a,b,c,d) |
||
| 570 | #define IReferenceClock_Unadvise(p,a) (p)->lpVtbl->Unadvise(p,a) |
||
| 571 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 572 | #define IReferenceClock_GetTime(p,a) (p)->GetTime(a) |
||
| 573 | #define IReferenceClock_AdviseTime(p,a,b,c,d) (p)->AdviseTime(a,b,c,d) |
||
| 574 | #define IReferenceClock_AdvisePeriodic(p,a,b,c,d) (p)->AdvisePeriodic(a,b,c,d) |
||
| 575 | #define IReferenceClock_Unadvise(p,a) (p)->Unadvise(a) |
||
| 576 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 577 | |||
| 578 | #endif // IReferenceClock_QueryInterface |
||
| 579 | |||
| 580 | // |
||
| 581 | // IDirectSound |
||
| 582 | // |
||
| 583 | |||
| 584 | DEFINE_GUID(IID_IDirectSound, 0x279AFA83, 0x4981, 0x11CE, 0xA5, 0x21, 0x00, 0x20, 0xAF, 0x0B, 0xE5, 0x60); |
||
| 585 | |||
| 586 | #undef INTERFACE |
||
| 587 | #define INTERFACE IDirectSound |
||
| 588 | |||
| 589 | DECLARE_INTERFACE_(IDirectSound, IUnknown) |
||
| 590 | { |
||
| 591 | // IUnknown methods |
||
| 592 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 593 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 594 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 595 | |||
| 596 | // IDirectSound methods |
||
| 597 | STDMETHOD(CreateSoundBuffer) (THIS_ __in LPCDSBUFFERDESC pcDSBufferDesc, __deref_out LPDIRECTSOUNDBUFFER *ppDSBuffer, __null LPUNKNOWN pUnkOuter) PURE; |
||
| 598 | STDMETHOD(GetCaps) (THIS_ __out LPDSCAPS pDSCaps) PURE; |
||
| 599 | STDMETHOD(DuplicateSoundBuffer) (THIS_ __in LPDIRECTSOUNDBUFFER pDSBufferOriginal, __deref_out LPDIRECTSOUNDBUFFER *ppDSBufferDuplicate) PURE; |
||
| 600 | STDMETHOD(SetCooperativeLevel) (THIS_ HWND hwnd, DWORD dwLevel) PURE; |
||
| 601 | STDMETHOD(Compact) (THIS) PURE; |
||
| 602 | STDMETHOD(GetSpeakerConfig) (THIS_ __out LPDWORD pdwSpeakerConfig) PURE; |
||
| 603 | STDMETHOD(SetSpeakerConfig) (THIS_ DWORD dwSpeakerConfig) PURE; |
||
| 604 | STDMETHOD(Initialize) (THIS_ __in_opt LPCGUID pcGuidDevice) PURE; |
||
| 605 | }; |
||
| 606 | |||
| 607 | #define IDirectSound_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) |
||
| 608 | #define IDirectSound_AddRef(p) IUnknown_AddRef(p) |
||
| 609 | #define IDirectSound_Release(p) IUnknown_Release(p) |
||
| 610 | |||
| 611 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 612 | #define IDirectSound_CreateSoundBuffer(p,a,b,c) (p)->lpVtbl->CreateSoundBuffer(p,a,b,c) |
||
| 613 | #define IDirectSound_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) |
||
| 614 | #define IDirectSound_DuplicateSoundBuffer(p,a,b) (p)->lpVtbl->DuplicateSoundBuffer(p,a,b) |
||
| 615 | #define IDirectSound_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b) |
||
| 616 | #define IDirectSound_Compact(p) (p)->lpVtbl->Compact(p) |
||
| 617 | #define IDirectSound_GetSpeakerConfig(p,a) (p)->lpVtbl->GetSpeakerConfig(p,a) |
||
| 618 | #define IDirectSound_SetSpeakerConfig(p,b) (p)->lpVtbl->SetSpeakerConfig(p,b) |
||
| 619 | #define IDirectSound_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) |
||
| 620 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 621 | #define IDirectSound_CreateSoundBuffer(p,a,b,c) (p)->CreateSoundBuffer(a,b,c) |
||
| 622 | #define IDirectSound_GetCaps(p,a) (p)->GetCaps(a) |
||
| 623 | #define IDirectSound_DuplicateSoundBuffer(p,a,b) (p)->DuplicateSoundBuffer(a,b) |
||
| 624 | #define IDirectSound_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b) |
||
| 625 | #define IDirectSound_Compact(p) (p)->Compact() |
||
| 626 | #define IDirectSound_GetSpeakerConfig(p,a) (p)->GetSpeakerConfig(a) |
||
| 627 | #define IDirectSound_SetSpeakerConfig(p,b) (p)->SetSpeakerConfig(b) |
||
| 628 | #define IDirectSound_Initialize(p,a) (p)->Initialize(a) |
||
| 629 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 630 | |||
| 631 | #if DIRECTSOUND_VERSION >= 0x0800 |
||
| 632 | |||
| 633 | // |
||
| 634 | // IDirectSound8 |
||
| 635 | // |
||
| 636 | |||
| 637 | DEFINE_GUID(IID_IDirectSound8, 0xC50A7E93, 0xF395, 0x4834, 0x9E, 0xF6, 0x7F, 0xA9, 0x9D, 0xE5, 0x09, 0x66); |
||
| 638 | |||
| 639 | #undef INTERFACE |
||
| 640 | #define INTERFACE IDirectSound8 |
||
| 641 | |||
| 642 | DECLARE_INTERFACE_(IDirectSound8, IDirectSound) |
||
| 643 | { |
||
| 644 | // IUnknown methods |
||
| 645 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 646 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 647 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 648 | |||
| 649 | // IDirectSound methods |
||
| 650 | STDMETHOD(CreateSoundBuffer) (THIS_ __in LPCDSBUFFERDESC pcDSBufferDesc, __out LPDIRECTSOUNDBUFFER *ppDSBuffer, __null LPUNKNOWN pUnkOuter) PURE; |
||
| 651 | STDMETHOD(GetCaps) (THIS_ __out LPDSCAPS pDSCaps) PURE; |
||
| 652 | STDMETHOD(DuplicateSoundBuffer) (THIS_ __in LPDIRECTSOUNDBUFFER pDSBufferOriginal, __out LPDIRECTSOUNDBUFFER *ppDSBufferDuplicate) PURE; |
||
| 653 | STDMETHOD(SetCooperativeLevel) (THIS_ HWND hwnd, DWORD dwLevel) PURE; |
||
| 654 | STDMETHOD(Compact) (THIS) PURE; |
||
| 655 | STDMETHOD(GetSpeakerConfig) (THIS_ __out LPDWORD pdwSpeakerConfig) PURE; |
||
| 656 | STDMETHOD(SetSpeakerConfig) (THIS_ DWORD dwSpeakerConfig) PURE; |
||
| 657 | STDMETHOD(Initialize) (THIS_ __in_opt LPCGUID pcGuidDevice) PURE; |
||
| 658 | |||
| 659 | // IDirectSound8 methods |
||
| 660 | STDMETHOD(VerifyCertification) (THIS_ __in __out LPDWORD pdwCertified) PURE; |
||
| 661 | }; |
||
| 662 | |||
| 663 | #define IDirectSound8_QueryInterface(p,a,b) IDirectSound_QueryInterface(p,a,b) |
||
| 664 | #define IDirectSound8_AddRef(p) IDirectSound_AddRef(p) |
||
| 665 | #define IDirectSound8_Release(p) IDirectSound_Release(p) |
||
| 666 | #define IDirectSound8_CreateSoundBuffer(p,a,b,c) IDirectSound_CreateSoundBuffer(p,a,b,c) |
||
| 667 | #define IDirectSound8_GetCaps(p,a) IDirectSound_GetCaps(p,a) |
||
| 668 | #define IDirectSound8_DuplicateSoundBuffer(p,a,b) IDirectSound_DuplicateSoundBuffer(p,a,b) |
||
| 669 | #define IDirectSound8_SetCooperativeLevel(p,a,b) IDirectSound_SetCooperativeLevel(p,a,b) |
||
| 670 | #define IDirectSound8_Compact(p) IDirectSound_Compact(p) |
||
| 671 | #define IDirectSound8_GetSpeakerConfig(p,a) IDirectSound_GetSpeakerConfig(p,a) |
||
| 672 | #define IDirectSound8_SetSpeakerConfig(p,a) IDirectSound_SetSpeakerConfig(p,a) |
||
| 673 | #define IDirectSound8_Initialize(p,a) IDirectSound_Initialize(p,a) |
||
| 674 | |||
| 675 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 676 | #define IDirectSound8_VerifyCertification(p,a) (p)->lpVtbl->VerifyCertification(p,a) |
||
| 677 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 678 | #define IDirectSound8_VerifyCertification(p,a) (p)->VerifyCertification(a) |
||
| 679 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 680 | |||
| 681 | #endif // DIRECTSOUND_VERSION >= 0x0800 |
||
| 682 | |||
| 683 | // |
||
| 684 | // IDirectSoundBuffer |
||
| 685 | // |
||
| 686 | |||
| 687 | DEFINE_GUID(IID_IDirectSoundBuffer, 0x279AFA85, 0x4981, 0x11CE, 0xA5, 0x21, 0x00, 0x20, 0xAF, 0x0B, 0xE5, 0x60); |
||
| 688 | |||
| 689 | #undef INTERFACE |
||
| 690 | #define INTERFACE IDirectSoundBuffer |
||
| 691 | |||
| 692 | DECLARE_INTERFACE_(IDirectSoundBuffer, IUnknown) |
||
| 693 | { |
||
| 694 | // IUnknown methods |
||
| 695 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 696 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 697 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 698 | |||
| 699 | // IDirectSoundBuffer methods |
||
| 700 | STDMETHOD(GetCaps) (THIS_ __out LPDSBCAPS pDSBufferCaps) PURE; |
||
| 701 | STDMETHOD(GetCurrentPosition) (THIS_ __out_opt LPDWORD pdwCurrentPlayCursor, __out_opt LPDWORD pdwCurrentWriteCursor) PURE; |
||
| 702 | STDMETHOD(GetFormat) (THIS_ __out_bcount_opt(dwSizeAllocated) LPWAVEFORMATEX pwfxFormat, DWORD dwSizeAllocated, __out_opt LPDWORD pdwSizeWritten) PURE; |
||
| 703 | STDMETHOD(GetVolume) (THIS_ __out LPLONG plVolume) PURE; |
||
| 704 | STDMETHOD(GetPan) (THIS_ __out LPLONG plPan) PURE; |
||
| 705 | STDMETHOD(GetFrequency) (THIS_ __out LPDWORD pdwFrequency) PURE; |
||
| 706 | STDMETHOD(GetStatus) (THIS_ __out LPDWORD pdwStatus) PURE; |
||
| 707 | STDMETHOD(Initialize) (THIS_ __in LPDIRECTSOUND pDirectSound, __in LPCDSBUFFERDESC pcDSBufferDesc) PURE; |
||
| 708 | STDMETHOD(Lock) (THIS_ DWORD dwOffset, DWORD dwBytes, |
||
| 709 | __deref_out_bcount(*pdwAudioBytes1) LPVOID *ppvAudioPtr1, __out LPDWORD pdwAudioBytes1, |
||
| 710 | __deref_opt_out_bcount(*pdwAudioBytes2) LPVOID *ppvAudioPtr2, __out_opt LPDWORD pdwAudioBytes2, DWORD dwFlags) PURE; |
||
| 711 | STDMETHOD(Play) (THIS_ DWORD dwReserved1, DWORD dwPriority, DWORD dwFlags) PURE; |
||
| 712 | STDMETHOD(SetCurrentPosition) (THIS_ DWORD dwNewPosition) PURE; |
||
| 713 | STDMETHOD(SetFormat) (THIS_ __in LPCWAVEFORMATEX pcfxFormat) PURE; |
||
| 714 | STDMETHOD(SetVolume) (THIS_ LONG lVolume) PURE; |
||
| 715 | STDMETHOD(SetPan) (THIS_ LONG lPan) PURE; |
||
| 716 | STDMETHOD(SetFrequency) (THIS_ DWORD dwFrequency) PURE; |
||
| 717 | STDMETHOD(Stop) (THIS) PURE; |
||
| 718 | STDMETHOD(Unlock) (THIS_ __in_bcount(dwAudioBytes1) LPVOID pvAudioPtr1, DWORD dwAudioBytes1, |
||
| 719 | __in_bcount_opt(dwAudioBytes2) LPVOID pvAudioPtr2, DWORD dwAudioBytes2) PURE; |
||
| 720 | STDMETHOD(Restore) (THIS) PURE; |
||
| 721 | }; |
||
| 722 | |||
| 723 | #define IDirectSoundBuffer_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) |
||
| 724 | #define IDirectSoundBuffer_AddRef(p) IUnknown_AddRef(p) |
||
| 725 | #define IDirectSoundBuffer_Release(p) IUnknown_Release(p) |
||
| 726 | |||
| 727 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 728 | #define IDirectSoundBuffer_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) |
||
| 729 | #define IDirectSoundBuffer_GetCurrentPosition(p,a,b) (p)->lpVtbl->GetCurrentPosition(p,a,b) |
||
| 730 | #define IDirectSoundBuffer_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c) |
||
| 731 | #define IDirectSoundBuffer_GetVolume(p,a) (p)->lpVtbl->GetVolume(p,a) |
||
| 732 | #define IDirectSoundBuffer_GetPan(p,a) (p)->lpVtbl->GetPan(p,a) |
||
| 733 | #define IDirectSoundBuffer_GetFrequency(p,a) (p)->lpVtbl->GetFrequency(p,a) |
||
| 734 | #define IDirectSoundBuffer_GetStatus(p,a) (p)->lpVtbl->GetStatus(p,a) |
||
| 735 | #define IDirectSoundBuffer_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) |
||
| 736 | #define IDirectSoundBuffer_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g) |
||
| 737 | #define IDirectSoundBuffer_Play(p,a,b,c) (p)->lpVtbl->Play(p,a,b,c) |
||
| 738 | #define IDirectSoundBuffer_SetCurrentPosition(p,a) (p)->lpVtbl->SetCurrentPosition(p,a) |
||
| 739 | #define IDirectSoundBuffer_SetFormat(p,a) (p)->lpVtbl->SetFormat(p,a) |
||
| 740 | #define IDirectSoundBuffer_SetVolume(p,a) (p)->lpVtbl->SetVolume(p,a) |
||
| 741 | #define IDirectSoundBuffer_SetPan(p,a) (p)->lpVtbl->SetPan(p,a) |
||
| 742 | #define IDirectSoundBuffer_SetFrequency(p,a) (p)->lpVtbl->SetFrequency(p,a) |
||
| 743 | #define IDirectSoundBuffer_Stop(p) (p)->lpVtbl->Stop(p) |
||
| 744 | #define IDirectSoundBuffer_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d) |
||
| 745 | #define IDirectSoundBuffer_Restore(p) (p)->lpVtbl->Restore(p) |
||
| 746 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 747 | #define IDirectSoundBuffer_GetCaps(p,a) (p)->GetCaps(a) |
||
| 748 | #define IDirectSoundBuffer_GetCurrentPosition(p,a,b) (p)->GetCurrentPosition(a,b) |
||
| 749 | #define IDirectSoundBuffer_GetFormat(p,a,b,c) (p)->GetFormat(a,b,c) |
||
| 750 | #define IDirectSoundBuffer_GetVolume(p,a) (p)->GetVolume(a) |
||
| 751 | #define IDirectSoundBuffer_GetPan(p,a) (p)->GetPan(a) |
||
| 752 | #define IDirectSoundBuffer_GetFrequency(p,a) (p)->GetFrequency(a) |
||
| 753 | #define IDirectSoundBuffer_GetStatus(p,a) (p)->GetStatus(a) |
||
| 754 | #define IDirectSoundBuffer_Initialize(p,a,b) (p)->Initialize(a,b) |
||
| 755 | #define IDirectSoundBuffer_Lock(p,a,b,c,d,e,f,g) (p)->Lock(a,b,c,d,e,f,g) |
||
| 756 | #define IDirectSoundBuffer_Play(p,a,b,c) (p)->Play(a,b,c) |
||
| 757 | #define IDirectSoundBuffer_SetCurrentPosition(p,a) (p)->SetCurrentPosition(a) |
||
| 758 | #define IDirectSoundBuffer_SetFormat(p,a) (p)->SetFormat(a) |
||
| 759 | #define IDirectSoundBuffer_SetVolume(p,a) (p)->SetVolume(a) |
||
| 760 | #define IDirectSoundBuffer_SetPan(p,a) (p)->SetPan(a) |
||
| 761 | #define IDirectSoundBuffer_SetFrequency(p,a) (p)->SetFrequency(a) |
||
| 762 | #define IDirectSoundBuffer_Stop(p) (p)->Stop() |
||
| 763 | #define IDirectSoundBuffer_Unlock(p,a,b,c,d) (p)->Unlock(a,b,c,d) |
||
| 764 | #define IDirectSoundBuffer_Restore(p) (p)->Restore() |
||
| 765 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 766 | |||
| 767 | #if DIRECTSOUND_VERSION >= 0x0800 |
||
| 768 | |||
| 769 | // |
||
| 770 | // IDirectSoundBuffer8 |
||
| 771 | // |
||
| 772 | |||
| 773 | DEFINE_GUID(IID_IDirectSoundBuffer8, 0x6825a449, 0x7524, 0x4d82, 0x92, 0x0f, 0x50, 0xe3, 0x6a, 0xb3, 0xab, 0x1e); |
||
| 774 | |||
| 775 | #undef INTERFACE |
||
| 776 | #define INTERFACE IDirectSoundBuffer8 |
||
| 777 | |||
| 778 | DECLARE_INTERFACE_(IDirectSoundBuffer8, IDirectSoundBuffer) |
||
| 779 | { |
||
| 780 | // IUnknown methods |
||
| 781 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 782 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 783 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 784 | |||
| 785 | // IDirectSoundBuffer methods |
||
| 786 | STDMETHOD(GetCaps) (THIS_ __out LPDSBCAPS pDSBufferCaps) PURE; |
||
| 787 | STDMETHOD(GetCurrentPosition) (THIS_ __out_opt LPDWORD pdwCurrentPlayCursor, __out_opt LPDWORD pdwCurrentWriteCursor) PURE; |
||
| 788 | STDMETHOD(GetFormat) (THIS_ __out_bcount_opt(dwSizeAllocated) LPWAVEFORMATEX pwfxFormat, DWORD dwSizeAllocated, __out_opt LPDWORD pdwSizeWritten) PURE; |
||
| 789 | STDMETHOD(GetVolume) (THIS_ __out LPLONG plVolume) PURE; |
||
| 790 | STDMETHOD(GetPan) (THIS_ __out LPLONG plPan) PURE; |
||
| 791 | STDMETHOD(GetFrequency) (THIS_ __out LPDWORD pdwFrequency) PURE; |
||
| 792 | STDMETHOD(GetStatus) (THIS_ __out LPDWORD pdwStatus) PURE; |
||
| 793 | STDMETHOD(Initialize) (THIS_ __in LPDIRECTSOUND pDirectSound, __in LPCDSBUFFERDESC pcDSBufferDesc) PURE; |
||
| 794 | STDMETHOD(Lock) (THIS_ DWORD dwOffset, DWORD dwBytes, |
||
| 795 | __deref_out_bcount(*pdwAudioBytes1) LPVOID *ppvAudioPtr1, __out LPDWORD pdwAudioBytes1, |
||
| 796 | __deref_opt_out_bcount(*pdwAudioBytes2) LPVOID *ppvAudioPtr2, __out_opt LPDWORD pdwAudioBytes2, DWORD dwFlags) PURE; |
||
| 797 | STDMETHOD(Play) (THIS_ DWORD dwReserved1, DWORD dwPriority, DWORD dwFlags) PURE; |
||
| 798 | STDMETHOD(SetCurrentPosition) (THIS_ DWORD dwNewPosition) PURE; |
||
| 799 | STDMETHOD(SetFormat) (THIS_ __in LPCWAVEFORMATEX pcfxFormat) PURE; |
||
| 800 | STDMETHOD(SetVolume) (THIS_ LONG lVolume) PURE; |
||
| 801 | STDMETHOD(SetPan) (THIS_ LONG lPan) PURE; |
||
| 802 | STDMETHOD(SetFrequency) (THIS_ DWORD dwFrequency) PURE; |
||
| 803 | STDMETHOD(Stop) (THIS) PURE; |
||
| 804 | STDMETHOD(Unlock) (THIS_ __in_bcount(dwAudioBytes1) LPVOID pvAudioPtr1, DWORD dwAudioBytes1, |
||
| 805 | __in_bcount_opt(dwAudioBytes2) LPVOID pvAudioPtr2, DWORD dwAudioBytes2) PURE; |
||
| 806 | STDMETHOD(Restore) (THIS) PURE; |
||
| 807 | |||
| 808 | // IDirectSoundBuffer8 methods |
||
| 809 | STDMETHOD(SetFX) (THIS_ DWORD dwEffectsCount, __in_ecount_opt(dwEffectsCount) LPDSEFFECTDESC pDSFXDesc, __out_ecount_opt(dwEffectsCount) LPDWORD pdwResultCodes) PURE; |
||
| 810 | STDMETHOD(AcquireResources) (THIS_ DWORD dwFlags, DWORD dwEffectsCount, __out_ecount(dwEffectsCount) LPDWORD pdwResultCodes) PURE; |
||
| 811 | STDMETHOD(GetObjectInPath) (THIS_ __in REFGUID rguidObject, DWORD dwIndex, __in REFGUID rguidInterface, __deref_out LPVOID *ppObject) PURE; |
||
| 812 | }; |
||
| 813 | |||
| 814 | // Special GUID meaning "select all objects" for use in GetObjectInPath() |
||
| 815 | DEFINE_GUID(GUID_All_Objects, 0xaa114de5, 0xc262, 0x4169, 0xa1, 0xc8, 0x23, 0xd6, 0x98, 0xcc, 0x73, 0xb5); |
||
| 816 | |||
| 817 | #define IDirectSoundBuffer8_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) |
||
| 818 | #define IDirectSoundBuffer8_AddRef(p) IUnknown_AddRef(p) |
||
| 819 | #define IDirectSoundBuffer8_Release(p) IUnknown_Release(p) |
||
| 820 | |||
| 821 | #define IDirectSoundBuffer8_GetCaps(p,a) IDirectSoundBuffer_GetCaps(p,a) |
||
| 822 | #define IDirectSoundBuffer8_GetCurrentPosition(p,a,b) IDirectSoundBuffer_GetCurrentPosition(p,a,b) |
||
| 823 | #define IDirectSoundBuffer8_GetFormat(p,a,b,c) IDirectSoundBuffer_GetFormat(p,a,b,c) |
||
| 824 | #define IDirectSoundBuffer8_GetVolume(p,a) IDirectSoundBuffer_GetVolume(p,a) |
||
| 825 | #define IDirectSoundBuffer8_GetPan(p,a) IDirectSoundBuffer_GetPan(p,a) |
||
| 826 | #define IDirectSoundBuffer8_GetFrequency(p,a) IDirectSoundBuffer_GetFrequency(p,a) |
||
| 827 | #define IDirectSoundBuffer8_GetStatus(p,a) IDirectSoundBuffer_GetStatus(p,a) |
||
| 828 | #define IDirectSoundBuffer8_Initialize(p,a,b) IDirectSoundBuffer_Initialize(p,a,b) |
||
| 829 | #define IDirectSoundBuffer8_Lock(p,a,b,c,d,e,f,g) IDirectSoundBuffer_Lock(p,a,b,c,d,e,f,g) |
||
| 830 | #define IDirectSoundBuffer8_Play(p,a,b,c) IDirectSoundBuffer_Play(p,a,b,c) |
||
| 831 | #define IDirectSoundBuffer8_SetCurrentPosition(p,a) IDirectSoundBuffer_SetCurrentPosition(p,a) |
||
| 832 | #define IDirectSoundBuffer8_SetFormat(p,a) IDirectSoundBuffer_SetFormat(p,a) |
||
| 833 | #define IDirectSoundBuffer8_SetVolume(p,a) IDirectSoundBuffer_SetVolume(p,a) |
||
| 834 | #define IDirectSoundBuffer8_SetPan(p,a) IDirectSoundBuffer_SetPan(p,a) |
||
| 835 | #define IDirectSoundBuffer8_SetFrequency(p,a) IDirectSoundBuffer_SetFrequency(p,a) |
||
| 836 | #define IDirectSoundBuffer8_Stop(p) IDirectSoundBuffer_Stop(p) |
||
| 837 | #define IDirectSoundBuffer8_Unlock(p,a,b,c,d) IDirectSoundBuffer_Unlock(p,a,b,c,d) |
||
| 838 | #define IDirectSoundBuffer8_Restore(p) IDirectSoundBuffer_Restore(p) |
||
| 839 | |||
| 840 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 841 | #define IDirectSoundBuffer8_SetFX(p,a,b,c) (p)->lpVtbl->SetFX(p,a,b,c) |
||
| 842 | #define IDirectSoundBuffer8_AcquireResources(p,a,b,c) (p)->lpVtbl->AcquireResources(p,a,b,c) |
||
| 843 | #define IDirectSoundBuffer8_GetObjectInPath(p,a,b,c,d) (p)->lpVtbl->GetObjectInPath(p,a,b,c,d) |
||
| 844 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 845 | #define IDirectSoundBuffer8_SetFX(p,a,b,c) (p)->SetFX(a,b,c) |
||
| 846 | #define IDirectSoundBuffer8_AcquireResources(p,a,b,c) (p)->AcquireResources(a,b,c) |
||
| 847 | #define IDirectSoundBuffer8_GetObjectInPath(p,a,b,c,d) (p)->GetObjectInPath(a,b,c,d) |
||
| 848 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 849 | |||
| 850 | #endif // DIRECTSOUND_VERSION >= 0x0800 |
||
| 851 | |||
| 852 | // |
||
| 853 | // IDirectSound3DListener |
||
| 854 | // |
||
| 855 | |||
| 856 | DEFINE_GUID(IID_IDirectSound3DListener, 0x279AFA84, 0x4981, 0x11CE, 0xA5, 0x21, 0x00, 0x20, 0xAF, 0x0B, 0xE5, 0x60); |
||
| 857 | |||
| 858 | #undef INTERFACE |
||
| 859 | #define INTERFACE IDirectSound3DListener |
||
| 860 | |||
| 861 | DECLARE_INTERFACE_(IDirectSound3DListener, IUnknown) |
||
| 862 | { |
||
| 863 | // IUnknown methods |
||
| 864 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 865 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 866 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 867 | |||
| 868 | // IDirectSound3DListener methods |
||
| 869 | STDMETHOD(GetAllParameters) (THIS_ __out LPDS3DLISTENER pListener) PURE; |
||
| 870 | STDMETHOD(GetDistanceFactor) (THIS_ __out D3DVALUE* pflDistanceFactor) PURE; |
||
| 871 | STDMETHOD(GetDopplerFactor) (THIS_ __out D3DVALUE* pflDopplerFactor) PURE; |
||
| 872 | STDMETHOD(GetOrientation) (THIS_ __out D3DVECTOR* pvOrientFront, __out D3DVECTOR* pvOrientTop) PURE; |
||
| 873 | STDMETHOD(GetPosition) (THIS_ __out D3DVECTOR* pvPosition) PURE; |
||
| 874 | STDMETHOD(GetRolloffFactor) (THIS_ __out D3DVALUE* pflRolloffFactor) PURE; |
||
| 875 | STDMETHOD(GetVelocity) (THIS_ __out D3DVECTOR* pvVelocity) PURE; |
||
| 876 | STDMETHOD(SetAllParameters) (THIS_ __in LPCDS3DLISTENER pcListener, DWORD dwApply) PURE; |
||
| 877 | STDMETHOD(SetDistanceFactor) (THIS_ D3DVALUE flDistanceFactor, DWORD dwApply) PURE; |
||
| 878 | STDMETHOD(SetDopplerFactor) (THIS_ D3DVALUE flDopplerFactor, DWORD dwApply) PURE; |
||
| 879 | STDMETHOD(SetOrientation) (THIS_ D3DVALUE xFront, D3DVALUE yFront, D3DVALUE zFront, |
||
| 880 | D3DVALUE xTop, D3DVALUE yTop, D3DVALUE zTop, DWORD dwApply) PURE; |
||
| 881 | STDMETHOD(SetPosition) (THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE; |
||
| 882 | STDMETHOD(SetRolloffFactor) (THIS_ D3DVALUE flRolloffFactor, DWORD dwApply) PURE; |
||
| 883 | STDMETHOD(SetVelocity) (THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE; |
||
| 884 | STDMETHOD(CommitDeferredSettings) (THIS) PURE; |
||
| 885 | }; |
||
| 886 | |||
| 887 | #define IDirectSound3DListener_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) |
||
| 888 | #define IDirectSound3DListener_AddRef(p) IUnknown_AddRef(p) |
||
| 889 | #define IDirectSound3DListener_Release(p) IUnknown_Release(p) |
||
| 890 | |||
| 891 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 892 | #define IDirectSound3DListener_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) |
||
| 893 | #define IDirectSound3DListener_GetDistanceFactor(p,a) (p)->lpVtbl->GetDistanceFactor(p,a) |
||
| 894 | #define IDirectSound3DListener_GetDopplerFactor(p,a) (p)->lpVtbl->GetDopplerFactor(p,a) |
||
| 895 | #define IDirectSound3DListener_GetOrientation(p,a,b) (p)->lpVtbl->GetOrientation(p,a,b) |
||
| 896 | #define IDirectSound3DListener_GetPosition(p,a) (p)->lpVtbl->GetPosition(p,a) |
||
| 897 | #define IDirectSound3DListener_GetRolloffFactor(p,a) (p)->lpVtbl->GetRolloffFactor(p,a) |
||
| 898 | #define IDirectSound3DListener_GetVelocity(p,a) (p)->lpVtbl->GetVelocity(p,a) |
||
| 899 | #define IDirectSound3DListener_SetAllParameters(p,a,b) (p)->lpVtbl->SetAllParameters(p,a,b) |
||
| 900 | #define IDirectSound3DListener_SetDistanceFactor(p,a,b) (p)->lpVtbl->SetDistanceFactor(p,a,b) |
||
| 901 | #define IDirectSound3DListener_SetDopplerFactor(p,a,b) (p)->lpVtbl->SetDopplerFactor(p,a,b) |
||
| 902 | #define IDirectSound3DListener_SetOrientation(p,a,b,c,d,e,f,g) (p)->lpVtbl->SetOrientation(p,a,b,c,d,e,f,g) |
||
| 903 | #define IDirectSound3DListener_SetPosition(p,a,b,c,d) (p)->lpVtbl->SetPosition(p,a,b,c,d) |
||
| 904 | #define IDirectSound3DListener_SetRolloffFactor(p,a,b) (p)->lpVtbl->SetRolloffFactor(p,a,b) |
||
| 905 | #define IDirectSound3DListener_SetVelocity(p,a,b,c,d) (p)->lpVtbl->SetVelocity(p,a,b,c,d) |
||
| 906 | #define IDirectSound3DListener_CommitDeferredSettings(p) (p)->lpVtbl->CommitDeferredSettings(p) |
||
| 907 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 908 | #define IDirectSound3DListener_GetAllParameters(p,a) (p)->GetAllParameters(a) |
||
| 909 | #define IDirectSound3DListener_GetDistanceFactor(p,a) (p)->GetDistanceFactor(a) |
||
| 910 | #define IDirectSound3DListener_GetDopplerFactor(p,a) (p)->GetDopplerFactor(a) |
||
| 911 | #define IDirectSound3DListener_GetOrientation(p,a,b) (p)->GetOrientation(a,b) |
||
| 912 | #define IDirectSound3DListener_GetPosition(p,a) (p)->GetPosition(a) |
||
| 913 | #define IDirectSound3DListener_GetRolloffFactor(p,a) (p)->GetRolloffFactor(a) |
||
| 914 | #define IDirectSound3DListener_GetVelocity(p,a) (p)->GetVelocity(a) |
||
| 915 | #define IDirectSound3DListener_SetAllParameters(p,a,b) (p)->SetAllParameters(a,b) |
||
| 916 | #define IDirectSound3DListener_SetDistanceFactor(p,a,b) (p)->SetDistanceFactor(a,b) |
||
| 917 | #define IDirectSound3DListener_SetDopplerFactor(p,a,b) (p)->SetDopplerFactor(a,b) |
||
| 918 | #define IDirectSound3DListener_SetOrientation(p,a,b,c,d,e,f,g) (p)->SetOrientation(a,b,c,d,e,f,g) |
||
| 919 | #define IDirectSound3DListener_SetPosition(p,a,b,c,d) (p)->SetPosition(a,b,c,d) |
||
| 920 | #define IDirectSound3DListener_SetRolloffFactor(p,a,b) (p)->SetRolloffFactor(a,b) |
||
| 921 | #define IDirectSound3DListener_SetVelocity(p,a,b,c,d) (p)->SetVelocity(a,b,c,d) |
||
| 922 | #define IDirectSound3DListener_CommitDeferredSettings(p) (p)->CommitDeferredSettings() |
||
| 923 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 924 | |||
| 925 | // |
||
| 926 | // IDirectSound3DBuffer |
||
| 927 | // |
||
| 928 | |||
| 929 | DEFINE_GUID(IID_IDirectSound3DBuffer, 0x279AFA86, 0x4981, 0x11CE, 0xA5, 0x21, 0x00, 0x20, 0xAF, 0x0B, 0xE5, 0x60); |
||
| 930 | |||
| 931 | #undef INTERFACE |
||
| 932 | #define INTERFACE IDirectSound3DBuffer |
||
| 933 | |||
| 934 | DECLARE_INTERFACE_(IDirectSound3DBuffer, IUnknown) |
||
| 935 | { |
||
| 936 | // IUnknown methods |
||
| 937 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 938 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 939 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 940 | |||
| 941 | // IDirectSound3DBuffer methods |
||
| 942 | STDMETHOD(GetAllParameters) (THIS_ __out LPDS3DBUFFER pDs3dBuffer) PURE; |
||
| 943 | STDMETHOD(GetConeAngles) (THIS_ __out LPDWORD pdwInsideConeAngle, __out LPDWORD pdwOutsideConeAngle) PURE; |
||
| 944 | STDMETHOD(GetConeOrientation) (THIS_ __out D3DVECTOR* pvOrientation) PURE; |
||
| 945 | STDMETHOD(GetConeOutsideVolume) (THIS_ __out LPLONG plConeOutsideVolume) PURE; |
||
| 946 | STDMETHOD(GetMaxDistance) (THIS_ __out D3DVALUE* pflMaxDistance) PURE; |
||
| 947 | STDMETHOD(GetMinDistance) (THIS_ __out D3DVALUE* pflMinDistance) PURE; |
||
| 948 | STDMETHOD(GetMode) (THIS_ __out LPDWORD pdwMode) PURE; |
||
| 949 | STDMETHOD(GetPosition) (THIS_ __out D3DVECTOR* pvPosition) PURE; |
||
| 950 | STDMETHOD(GetVelocity) (THIS_ __out D3DVECTOR* pvVelocity) PURE; |
||
| 951 | STDMETHOD(SetAllParameters) (THIS_ __in LPCDS3DBUFFER pcDs3dBuffer, DWORD dwApply) PURE; |
||
| 952 | STDMETHOD(SetConeAngles) (THIS_ DWORD dwInsideConeAngle, DWORD dwOutsideConeAngle, DWORD dwApply) PURE; |
||
| 953 | STDMETHOD(SetConeOrientation) (THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE; |
||
| 954 | STDMETHOD(SetConeOutsideVolume) (THIS_ LONG lConeOutsideVolume, DWORD dwApply) PURE; |
||
| 955 | STDMETHOD(SetMaxDistance) (THIS_ D3DVALUE flMaxDistance, DWORD dwApply) PURE; |
||
| 956 | STDMETHOD(SetMinDistance) (THIS_ D3DVALUE flMinDistance, DWORD dwApply) PURE; |
||
| 957 | STDMETHOD(SetMode) (THIS_ DWORD dwMode, DWORD dwApply) PURE; |
||
| 958 | STDMETHOD(SetPosition) (THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE; |
||
| 959 | STDMETHOD(SetVelocity) (THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE; |
||
| 960 | }; |
||
| 961 | |||
| 962 | #define IDirectSound3DBuffer_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) |
||
| 963 | #define IDirectSound3DBuffer_AddRef(p) IUnknown_AddRef(p) |
||
| 964 | #define IDirectSound3DBuffer_Release(p) IUnknown_Release(p) |
||
| 965 | |||
| 966 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 967 | #define IDirectSound3DBuffer_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) |
||
| 968 | #define IDirectSound3DBuffer_GetConeAngles(p,a,b) (p)->lpVtbl->GetConeAngles(p,a,b) |
||
| 969 | #define IDirectSound3DBuffer_GetConeOrientation(p,a) (p)->lpVtbl->GetConeOrientation(p,a) |
||
| 970 | #define IDirectSound3DBuffer_GetConeOutsideVolume(p,a) (p)->lpVtbl->GetConeOutsideVolume(p,a) |
||
| 971 | #define IDirectSound3DBuffer_GetPosition(p,a) (p)->lpVtbl->GetPosition(p,a) |
||
| 972 | #define IDirectSound3DBuffer_GetMinDistance(p,a) (p)->lpVtbl->GetMinDistance(p,a) |
||
| 973 | #define IDirectSound3DBuffer_GetMaxDistance(p,a) (p)->lpVtbl->GetMaxDistance(p,a) |
||
| 974 | #define IDirectSound3DBuffer_GetMode(p,a) (p)->lpVtbl->GetMode(p,a) |
||
| 975 | #define IDirectSound3DBuffer_GetVelocity(p,a) (p)->lpVtbl->GetVelocity(p,a) |
||
| 976 | #define IDirectSound3DBuffer_SetAllParameters(p,a,b) (p)->lpVtbl->SetAllParameters(p,a,b) |
||
| 977 | #define IDirectSound3DBuffer_SetConeAngles(p,a,b,c) (p)->lpVtbl->SetConeAngles(p,a,b,c) |
||
| 978 | #define IDirectSound3DBuffer_SetConeOrientation(p,a,b,c,d) (p)->lpVtbl->SetConeOrientation(p,a,b,c,d) |
||
| 979 | #define IDirectSound3DBuffer_SetConeOutsideVolume(p,a,b) (p)->lpVtbl->SetConeOutsideVolume(p,a,b) |
||
| 980 | #define IDirectSound3DBuffer_SetPosition(p,a,b,c,d) (p)->lpVtbl->SetPosition(p,a,b,c,d) |
||
| 981 | #define IDirectSound3DBuffer_SetMinDistance(p,a,b) (p)->lpVtbl->SetMinDistance(p,a,b) |
||
| 982 | #define IDirectSound3DBuffer_SetMaxDistance(p,a,b) (p)->lpVtbl->SetMaxDistance(p,a,b) |
||
| 983 | #define IDirectSound3DBuffer_SetMode(p,a,b) (p)->lpVtbl->SetMode(p,a,b) |
||
| 984 | #define IDirectSound3DBuffer_SetVelocity(p,a,b,c,d) (p)->lpVtbl->SetVelocity(p,a,b,c,d) |
||
| 985 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 986 | #define IDirectSound3DBuffer_GetAllParameters(p,a) (p)->GetAllParameters(a) |
||
| 987 | #define IDirectSound3DBuffer_GetConeAngles(p,a,b) (p)->GetConeAngles(a,b) |
||
| 988 | #define IDirectSound3DBuffer_GetConeOrientation(p,a) (p)->GetConeOrientation(a) |
||
| 989 | #define IDirectSound3DBuffer_GetConeOutsideVolume(p,a) (p)->GetConeOutsideVolume(a) |
||
| 990 | #define IDirectSound3DBuffer_GetPosition(p,a) (p)->GetPosition(a) |
||
| 991 | #define IDirectSound3DBuffer_GetMinDistance(p,a) (p)->GetMinDistance(a) |
||
| 992 | #define IDirectSound3DBuffer_GetMaxDistance(p,a) (p)->GetMaxDistance(a) |
||
| 993 | #define IDirectSound3DBuffer_GetMode(p,a) (p)->GetMode(a) |
||
| 994 | #define IDirectSound3DBuffer_GetVelocity(p,a) (p)->GetVelocity(a) |
||
| 995 | #define IDirectSound3DBuffer_SetAllParameters(p,a,b) (p)->SetAllParameters(a,b) |
||
| 996 | #define IDirectSound3DBuffer_SetConeAngles(p,a,b,c) (p)->SetConeAngles(a,b,c) |
||
| 997 | #define IDirectSound3DBuffer_SetConeOrientation(p,a,b,c,d) (p)->SetConeOrientation(a,b,c,d) |
||
| 998 | #define IDirectSound3DBuffer_SetConeOutsideVolume(p,a,b) (p)->SetConeOutsideVolume(a,b) |
||
| 999 | #define IDirectSound3DBuffer_SetPosition(p,a,b,c,d) (p)->SetPosition(a,b,c,d) |
||
| 1000 | #define IDirectSound3DBuffer_SetMinDistance(p,a,b) (p)->SetMinDistance(a,b) |
||
| 1001 | #define IDirectSound3DBuffer_SetMaxDistance(p,a,b) (p)->SetMaxDistance(a,b) |
||
| 1002 | #define IDirectSound3DBuffer_SetMode(p,a,b) (p)->SetMode(a,b) |
||
| 1003 | #define IDirectSound3DBuffer_SetVelocity(p,a,b,c,d) (p)->SetVelocity(a,b,c,d) |
||
| 1004 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1005 | |||
| 1006 | // |
||
| 1007 | // IDirectSoundCapture |
||
| 1008 | // |
||
| 1009 | |||
| 1010 | DEFINE_GUID(IID_IDirectSoundCapture, 0xb0210781, 0x89cd, 0x11d0, 0xaf, 0x8, 0x0, 0xa0, 0xc9, 0x25, 0xcd, 0x16); |
||
| 1011 | |||
| 1012 | #undef INTERFACE |
||
| 1013 | #define INTERFACE IDirectSoundCapture |
||
| 1014 | |||
| 1015 | DECLARE_INTERFACE_(IDirectSoundCapture, IUnknown) |
||
| 1016 | { |
||
| 1017 | // IUnknown methods |
||
| 1018 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 1019 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 1020 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 1021 | |||
| 1022 | // IDirectSoundCapture methods |
||
| 1023 | STDMETHOD(CreateCaptureBuffer) (THIS_ __in LPCDSCBUFFERDESC pcDSCBufferDesc, __deref_out LPDIRECTSOUNDCAPTUREBUFFER *ppDSCBuffer, __null LPUNKNOWN pUnkOuter) PURE; |
||
| 1024 | STDMETHOD(GetCaps) (THIS_ __out LPDSCCAPS pDSCCaps) PURE; |
||
| 1025 | STDMETHOD(Initialize) (THIS_ __in_opt LPCGUID pcGuidDevice) PURE; |
||
| 1026 | }; |
||
| 1027 | |||
| 1028 | #define IDirectSoundCapture_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) |
||
| 1029 | #define IDirectSoundCapture_AddRef(p) IUnknown_AddRef(p) |
||
| 1030 | #define IDirectSoundCapture_Release(p) IUnknown_Release(p) |
||
| 1031 | |||
| 1032 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1033 | #define IDirectSoundCapture_CreateCaptureBuffer(p,a,b,c) (p)->lpVtbl->CreateCaptureBuffer(p,a,b,c) |
||
| 1034 | #define IDirectSoundCapture_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) |
||
| 1035 | #define IDirectSoundCapture_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) |
||
| 1036 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1037 | #define IDirectSoundCapture_CreateCaptureBuffer(p,a,b,c) (p)->CreateCaptureBuffer(a,b,c) |
||
| 1038 | #define IDirectSoundCapture_GetCaps(p,a) (p)->GetCaps(a) |
||
| 1039 | #define IDirectSoundCapture_Initialize(p,a) (p)->Initialize(a) |
||
| 1040 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1041 | |||
| 1042 | // |
||
| 1043 | // IDirectSoundCaptureBuffer |
||
| 1044 | // |
||
| 1045 | |||
| 1046 | DEFINE_GUID(IID_IDirectSoundCaptureBuffer, 0xb0210782, 0x89cd, 0x11d0, 0xaf, 0x8, 0x0, 0xa0, 0xc9, 0x25, 0xcd, 0x16); |
||
| 1047 | |||
| 1048 | #undef INTERFACE |
||
| 1049 | #define INTERFACE IDirectSoundCaptureBuffer |
||
| 1050 | |||
| 1051 | DECLARE_INTERFACE_(IDirectSoundCaptureBuffer, IUnknown) |
||
| 1052 | { |
||
| 1053 | // IUnknown methods |
||
| 1054 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 1055 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 1056 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 1057 | |||
| 1058 | // IDirectSoundCaptureBuffer methods |
||
| 1059 | STDMETHOD(GetCaps) (THIS_ __out LPDSCBCAPS pDSCBCaps) PURE; |
||
| 1060 | STDMETHOD(GetCurrentPosition) (THIS_ __out_opt LPDWORD pdwCapturePosition, __out_opt LPDWORD pdwReadPosition) PURE; |
||
| 1061 | STDMETHOD(GetFormat) (THIS_ __out_bcount_opt(dwSizeAllocated) LPWAVEFORMATEX pwfxFormat, DWORD dwSizeAllocated, __out_opt LPDWORD pdwSizeWritten) PURE; |
||
| 1062 | STDMETHOD(GetStatus) (THIS_ __out LPDWORD pdwStatus) PURE; |
||
| 1063 | STDMETHOD(Initialize) (THIS_ __in LPDIRECTSOUNDCAPTURE pDirectSoundCapture, __in LPCDSCBUFFERDESC pcDSCBufferDesc) PURE; |
||
| 1064 | STDMETHOD(Lock) (THIS_ DWORD dwOffset, DWORD dwBytes, |
||
| 1065 | __deref_out_bcount(*pdwAudioBytes1) LPVOID *ppvAudioPtr1, __out LPDWORD pdwAudioBytes1, |
||
| 1066 | __deref_opt_out_bcount(*pdwAudioBytes2) LPVOID *ppvAudioPtr2, __out_opt LPDWORD pdwAudioBytes2, DWORD dwFlags) PURE; |
||
| 1067 | STDMETHOD(Start) (THIS_ DWORD dwFlags) PURE; |
||
| 1068 | STDMETHOD(Stop) (THIS) PURE; |
||
| 1069 | STDMETHOD(Unlock) (THIS_ __in_bcount(dwAudioBytes1) LPVOID pvAudioPtr1, DWORD dwAudioBytes1, |
||
| 1070 | __in_bcount_opt(dwAudioBytes2) LPVOID pvAudioPtr2, DWORD dwAudioBytes2) PURE; |
||
| 1071 | }; |
||
| 1072 | |||
| 1073 | #define IDirectSoundCaptureBuffer_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) |
||
| 1074 | #define IDirectSoundCaptureBuffer_AddRef(p) IUnknown_AddRef(p) |
||
| 1075 | #define IDirectSoundCaptureBuffer_Release(p) IUnknown_Release(p) |
||
| 1076 | |||
| 1077 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1078 | #define IDirectSoundCaptureBuffer_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) |
||
| 1079 | #define IDirectSoundCaptureBuffer_GetCurrentPosition(p,a,b) (p)->lpVtbl->GetCurrentPosition(p,a,b) |
||
| 1080 | #define IDirectSoundCaptureBuffer_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c) |
||
| 1081 | #define IDirectSoundCaptureBuffer_GetStatus(p,a) (p)->lpVtbl->GetStatus(p,a) |
||
| 1082 | #define IDirectSoundCaptureBuffer_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) |
||
| 1083 | #define IDirectSoundCaptureBuffer_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g) |
||
| 1084 | #define IDirectSoundCaptureBuffer_Start(p,a) (p)->lpVtbl->Start(p,a) |
||
| 1085 | #define IDirectSoundCaptureBuffer_Stop(p) (p)->lpVtbl->Stop(p) |
||
| 1086 | #define IDirectSoundCaptureBuffer_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d) |
||
| 1087 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1088 | #define IDirectSoundCaptureBuffer_GetCaps(p,a) (p)->GetCaps(a) |
||
| 1089 | #define IDirectSoundCaptureBuffer_GetCurrentPosition(p,a,b) (p)->GetCurrentPosition(a,b) |
||
| 1090 | #define IDirectSoundCaptureBuffer_GetFormat(p,a,b,c) (p)->GetFormat(a,b,c) |
||
| 1091 | #define IDirectSoundCaptureBuffer_GetStatus(p,a) (p)->GetStatus(a) |
||
| 1092 | #define IDirectSoundCaptureBuffer_Initialize(p,a,b) (p)->Initialize(a,b) |
||
| 1093 | #define IDirectSoundCaptureBuffer_Lock(p,a,b,c,d,e,f,g) (p)->Lock(a,b,c,d,e,f,g) |
||
| 1094 | #define IDirectSoundCaptureBuffer_Start(p,a) (p)->Start(a) |
||
| 1095 | #define IDirectSoundCaptureBuffer_Stop(p) (p)->Stop() |
||
| 1096 | #define IDirectSoundCaptureBuffer_Unlock(p,a,b,c,d) (p)->Unlock(a,b,c,d) |
||
| 1097 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1098 | |||
| 1099 | #if DIRECTSOUND_VERSION >= 0x0800 |
||
| 1100 | |||
| 1101 | // |
||
| 1102 | // IDirectSoundCaptureBuffer8 |
||
| 1103 | // |
||
| 1104 | |||
| 1105 | DEFINE_GUID(IID_IDirectSoundCaptureBuffer8, 0x990df4, 0xdbb, 0x4872, 0x83, 0x3e, 0x6d, 0x30, 0x3e, 0x80, 0xae, 0xb6); |
||
| 1106 | |||
| 1107 | #undef INTERFACE |
||
| 1108 | #define INTERFACE IDirectSoundCaptureBuffer8 |
||
| 1109 | |||
| 1110 | DECLARE_INTERFACE_(IDirectSoundCaptureBuffer8, IDirectSoundCaptureBuffer) |
||
| 1111 | { |
||
| 1112 | // IUnknown methods |
||
| 1113 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 1114 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 1115 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 1116 | |||
| 1117 | // IDirectSoundCaptureBuffer methods |
||
| 1118 | STDMETHOD(GetCaps) (THIS_ __out LPDSCBCAPS pDSCBCaps) PURE; |
||
| 1119 | STDMETHOD(GetCurrentPosition) (THIS_ __out_opt LPDWORD pdwCapturePosition, __out_opt LPDWORD pdwReadPosition) PURE; |
||
| 1120 | STDMETHOD(GetFormat) (THIS_ __out_bcount_opt(dwSizeAllocated) LPWAVEFORMATEX pwfxFormat, DWORD dwSizeAllocated, __out_opt LPDWORD pdwSizeWritten) PURE; |
||
| 1121 | STDMETHOD(GetStatus) (THIS_ __out LPDWORD pdwStatus) PURE; |
||
| 1122 | STDMETHOD(Initialize) (THIS_ __in LPDIRECTSOUNDCAPTURE pDirectSoundCapture, __in LPCDSCBUFFERDESC pcDSCBufferDesc) PURE; |
||
| 1123 | STDMETHOD(Lock) (THIS_ DWORD dwOffset, DWORD dwBytes, |
||
| 1124 | __deref_out_bcount(*pdwAudioBytes1) LPVOID *ppvAudioPtr1, __out LPDWORD pdwAudioBytes1, |
||
| 1125 | __deref_opt_out_bcount(*pdwAudioBytes2) LPVOID *ppvAudioPtr2, __out_opt LPDWORD pdwAudioBytes2, DWORD dwFlags) PURE; |
||
| 1126 | STDMETHOD(Start) (THIS_ DWORD dwFlags) PURE; |
||
| 1127 | STDMETHOD(Stop) (THIS) PURE; |
||
| 1128 | STDMETHOD(Unlock) (THIS_ __in_bcount(dwAudioBytes1) LPVOID pvAudioPtr1, DWORD dwAudioBytes1, |
||
| 1129 | __in_bcount_opt(dwAudioBytes2) LPVOID pvAudioPtr2, DWORD dwAudioBytes2) PURE; |
||
| 1130 | |||
| 1131 | // IDirectSoundCaptureBuffer8 methods |
||
| 1132 | STDMETHOD(GetObjectInPath) (THIS_ __in REFGUID rguidObject, DWORD dwIndex, __in REFGUID rguidInterface, __deref_out LPVOID *ppObject) PURE; |
||
| 1133 | STDMETHOD(GetFXStatus) (DWORD dwEffectsCount, __out_ecount(dwEffectsCount) LPDWORD pdwFXStatus) PURE; |
||
| 1134 | }; |
||
| 1135 | |||
| 1136 | #define IDirectSoundCaptureBuffer8_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) |
||
| 1137 | #define IDirectSoundCaptureBuffer8_AddRef(p) IUnknown_AddRef(p) |
||
| 1138 | #define IDirectSoundCaptureBuffer8_Release(p) IUnknown_Release(p) |
||
| 1139 | |||
| 1140 | #define IDirectSoundCaptureBuffer8_GetCaps(p,a) IDirectSoundCaptureBuffer_GetCaps(p,a) |
||
| 1141 | #define IDirectSoundCaptureBuffer8_GetCurrentPosition(p,a,b) IDirectSoundCaptureBuffer_GetCurrentPosition(p,a,b) |
||
| 1142 | #define IDirectSoundCaptureBuffer8_GetFormat(p,a,b,c) IDirectSoundCaptureBuffer_GetFormat(p,a,b,c) |
||
| 1143 | #define IDirectSoundCaptureBuffer8_GetStatus(p,a) IDirectSoundCaptureBuffer_GetStatus(p,a) |
||
| 1144 | #define IDirectSoundCaptureBuffer8_Initialize(p,a,b) IDirectSoundCaptureBuffer_Initialize(p,a,b) |
||
| 1145 | #define IDirectSoundCaptureBuffer8_Lock(p,a,b,c,d,e,f,g) IDirectSoundCaptureBuffer_Lock(p,a,b,c,d,e,f,g) |
||
| 1146 | #define IDirectSoundCaptureBuffer8_Start(p,a) IDirectSoundCaptureBuffer_Start(p,a) |
||
| 1147 | #define IDirectSoundCaptureBuffer8_Stop(p) IDirectSoundCaptureBuffer_Stop(p)) |
||
| 1148 | #define IDirectSoundCaptureBuffer8_Unlock(p,a,b,c,d) IDirectSoundCaptureBuffer_Unlock(p,a,b,c,d) |
||
| 1149 | |||
| 1150 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1151 | #define IDirectSoundCaptureBuffer8_GetObjectInPath(p,a,b,c,d) (p)->lpVtbl->GetObjectInPath(p,a,b,c,d) |
||
| 1152 | #define IDirectSoundCaptureBuffer8_GetFXStatus(p,a,b) (p)->lpVtbl->GetFXStatus(p,a,b) |
||
| 1153 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1154 | #define IDirectSoundCaptureBuffer8_GetObjectInPath(p,a,b,c,d) (p)->GetObjectInPath(a,b,c,d) |
||
| 1155 | #define IDirectSoundCaptureBuffer8_GetFXStatus(p,a,b) (p)->GetFXStatus(a,b) |
||
| 1156 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1157 | |||
| 1158 | #endif // DIRECTSOUND_VERSION >= 0x0800 |
||
| 1159 | |||
| 1160 | // |
||
| 1161 | // IDirectSoundNotify |
||
| 1162 | // |
||
| 1163 | |||
| 1164 | DEFINE_GUID(IID_IDirectSoundNotify, 0xb0210783, 0x89cd, 0x11d0, 0xaf, 0x8, 0x0, 0xa0, 0xc9, 0x25, 0xcd, 0x16); |
||
| 1165 | |||
| 1166 | #undef INTERFACE |
||
| 1167 | #define INTERFACE IDirectSoundNotify |
||
| 1168 | |||
| 1169 | DECLARE_INTERFACE_(IDirectSoundNotify, IUnknown) |
||
| 1170 | { |
||
| 1171 | // IUnknown methods |
||
| 1172 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 1173 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 1174 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 1175 | |||
| 1176 | // IDirectSoundNotify methods |
||
| 1177 | STDMETHOD(SetNotificationPositions) (THIS_ DWORD dwPositionNotifies, __in_ecount(dwPositionNotifies) LPCDSBPOSITIONNOTIFY pcPositionNotifies) PURE; |
||
| 1178 | }; |
||
| 1179 | |||
| 1180 | #define IDirectSoundNotify_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) |
||
| 1181 | #define IDirectSoundNotify_AddRef(p) IUnknown_AddRef(p) |
||
| 1182 | #define IDirectSoundNotify_Release(p) IUnknown_Release(p) |
||
| 1183 | |||
| 1184 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1185 | #define IDirectSoundNotify_SetNotificationPositions(p,a,b) (p)->lpVtbl->SetNotificationPositions(p,a,b) |
||
| 1186 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1187 | #define IDirectSoundNotify_SetNotificationPositions(p,a,b) (p)->SetNotificationPositions(a,b) |
||
| 1188 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1189 | |||
| 1190 | // |
||
| 1191 | // IKsPropertySet |
||
| 1192 | // |
||
| 1193 | |||
| 1194 | #ifndef _IKsPropertySet_ |
||
| 1195 | #define _IKsPropertySet_ |
||
| 1196 | |||
| 1197 | #ifdef __cplusplus |
||
| 1198 | // 'struct' not 'class' per the way DECLARE_INTERFACE_ is defined |
||
| 1199 | struct IKsPropertySet; |
||
| 1200 | #endif // __cplusplus |
||
| 1201 | |||
| 1202 | typedef struct IKsPropertySet *LPKSPROPERTYSET; |
||
| 1203 | |||
| 1204 | #define KSPROPERTY_SUPPORT_GET 0x00000001 |
||
| 1205 | #define KSPROPERTY_SUPPORT_SET 0x00000002 |
||
| 1206 | |||
| 1207 | DEFINE_GUID(IID_IKsPropertySet, 0x31efac30, 0x515c, 0x11d0, 0xa9, 0xaa, 0x00, 0xaa, 0x00, 0x61, 0xbe, 0x93); |
||
| 1208 | |||
| 1209 | #undef INTERFACE |
||
| 1210 | #define INTERFACE IKsPropertySet |
||
| 1211 | |||
| 1212 | DECLARE_INTERFACE_(IKsPropertySet, IUnknown) |
||
| 1213 | { |
||
| 1214 | // IUnknown methods |
||
| 1215 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 1216 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 1217 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 1218 | |||
| 1219 | // IKsPropertySet methods |
||
| 1220 | STDMETHOD(Get) (THIS_ __in REFGUID rguidPropSet, ULONG ulId, __in_bcount(ulInstanceLength) LPVOID pInstanceData, ULONG ulInstanceLength, |
||
| 1221 | __out_bcount(ulDataLength) LPVOID pPropertyData, ULONG ulDataLength, __out PULONG pulBytesReturned) PURE; |
||
| 1222 | STDMETHOD(Set) (THIS_ __in REFGUID rguidPropSet, ULONG ulId, __in_bcount(ulInstanceLength) LPVOID pInstanceData, ULONG ulInstanceLength, |
||
| 1223 | __in_bcount(ulDataLength) LPVOID pPropertyData, ULONG ulDataLength) PURE; |
||
| 1224 | STDMETHOD(QuerySupport) (THIS_ __in REFGUID rguidPropSet, ULONG ulId, __out PULONG pulTypeSupport) PURE; |
||
| 1225 | }; |
||
| 1226 | |||
| 1227 | #define IKsPropertySet_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) |
||
| 1228 | #define IKsPropertySet_AddRef(p) IUnknown_AddRef(p) |
||
| 1229 | #define IKsPropertySet_Release(p) IUnknown_Release(p) |
||
| 1230 | |||
| 1231 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1232 | #define IKsPropertySet_Get(p,a,b,c,d,e,f,g) (p)->lpVtbl->Get(p,a,b,c,d,e,f,g) |
||
| 1233 | #define IKsPropertySet_Set(p,a,b,c,d,e,f) (p)->lpVtbl->Set(p,a,b,c,d,e,f) |
||
| 1234 | #define IKsPropertySet_QuerySupport(p,a,b,c) (p)->lpVtbl->QuerySupport(p,a,b,c) |
||
| 1235 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1236 | #define IKsPropertySet_Get(p,a,b,c,d,e,f,g) (p)->Get(a,b,c,d,e,f,g) |
||
| 1237 | #define IKsPropertySet_Set(p,a,b,c,d,e,f) (p)->Set(a,b,c,d,e,f) |
||
| 1238 | #define IKsPropertySet_QuerySupport(p,a,b,c) (p)->QuerySupport(a,b,c) |
||
| 1239 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1240 | |||
| 1241 | #endif // _IKsPropertySet_ |
||
| 1242 | |||
| 1243 | #if DIRECTSOUND_VERSION >= 0x0800 |
||
| 1244 | |||
| 1245 | // |
||
| 1246 | // IDirectSoundFXGargle |
||
| 1247 | // |
||
| 1248 | |||
| 1249 | DEFINE_GUID(IID_IDirectSoundFXGargle, 0xd616f352, 0xd622, 0x11ce, 0xaa, 0xc5, 0x00, 0x20, 0xaf, 0x0b, 0x99, 0xa3); |
||
| 1250 | |||
| 1251 | typedef struct _DSFXGargle |
||
| 1252 | { |
||
| 1253 | DWORD dwRateHz; // Rate of modulation in hz |
||
| 1254 | DWORD dwWaveShape; // DSFXGARGLE_WAVE_xxx |
||
| 1255 | } DSFXGargle, *LPDSFXGargle; |
||
| 1256 | |||
| 1257 | #define DSFXGARGLE_WAVE_TRIANGLE 0 |
||
| 1258 | #define DSFXGARGLE_WAVE_SQUARE 1 |
||
| 1259 | |||
| 1260 | typedef const DSFXGargle *LPCDSFXGargle; |
||
| 1261 | |||
| 1262 | #define DSFXGARGLE_RATEHZ_MIN 1 |
||
| 1263 | #define DSFXGARGLE_RATEHZ_MAX 1000 |
||
| 1264 | |||
| 1265 | #undef INTERFACE |
||
| 1266 | #define INTERFACE IDirectSoundFXGargle |
||
| 1267 | |||
| 1268 | DECLARE_INTERFACE_(IDirectSoundFXGargle, IUnknown) |
||
| 1269 | { |
||
| 1270 | // IUnknown methods |
||
| 1271 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 1272 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 1273 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 1274 | |||
| 1275 | // IDirectSoundFXGargle methods |
||
| 1276 | STDMETHOD(SetAllParameters) (THIS_ __in LPCDSFXGargle pcDsFxGargle) PURE; |
||
| 1277 | STDMETHOD(GetAllParameters) (THIS_ __out LPDSFXGargle pDsFxGargle) PURE; |
||
| 1278 | }; |
||
| 1279 | |||
| 1280 | #define IDirectSoundFXGargle_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) |
||
| 1281 | #define IDirectSoundFXGargle_AddRef(p) IUnknown_AddRef(p) |
||
| 1282 | #define IDirectSoundFXGargle_Release(p) IUnknown_Release(p) |
||
| 1283 | |||
| 1284 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1285 | #define IDirectSoundFXGargle_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) |
||
| 1286 | #define IDirectSoundFXGargle_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) |
||
| 1287 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1288 | #define IDirectSoundFXGargle_SetAllParameters(p,a) (p)->SetAllParameters(a) |
||
| 1289 | #define IDirectSoundFXGargle_GetAllParameters(p,a) (p)->GetAllParameters(a) |
||
| 1290 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1291 | |||
| 1292 | // |
||
| 1293 | // IDirectSoundFXChorus |
||
| 1294 | // |
||
| 1295 | |||
| 1296 | DEFINE_GUID(IID_IDirectSoundFXChorus, 0x880842e3, 0x145f, 0x43e6, 0xa9, 0x34, 0xa7, 0x18, 0x06, 0xe5, 0x05, 0x47); |
||
| 1297 | |||
| 1298 | typedef struct _DSFXChorus |
||
| 1299 | { |
||
| 1300 | FLOAT fWetDryMix; |
||
| 1301 | FLOAT fDepth; |
||
| 1302 | FLOAT fFeedback; |
||
| 1303 | FLOAT fFrequency; |
||
| 1304 | LONG lWaveform; // LFO shape; DSFXCHORUS_WAVE_xxx |
||
| 1305 | FLOAT fDelay; |
||
| 1306 | LONG lPhase; |
||
| 1307 | } DSFXChorus, *LPDSFXChorus; |
||
| 1308 | |||
| 1309 | typedef const DSFXChorus *LPCDSFXChorus; |
||
| 1310 | |||
| 1311 | #define DSFXCHORUS_WAVE_TRIANGLE 0 |
||
| 1312 | #define DSFXCHORUS_WAVE_SIN 1 |
||
| 1313 | |||
| 1314 | #define DSFXCHORUS_WETDRYMIX_MIN 0.0f |
||
| 1315 | #define DSFXCHORUS_WETDRYMIX_MAX 100.0f |
||
| 1316 | #define DSFXCHORUS_DEPTH_MIN 0.0f |
||
| 1317 | #define DSFXCHORUS_DEPTH_MAX 100.0f |
||
| 1318 | #define DSFXCHORUS_FEEDBACK_MIN -99.0f |
||
| 1319 | #define DSFXCHORUS_FEEDBACK_MAX 99.0f |
||
| 1320 | #define DSFXCHORUS_FREQUENCY_MIN 0.0f |
||
| 1321 | #define DSFXCHORUS_FREQUENCY_MAX 10.0f |
||
| 1322 | #define DSFXCHORUS_DELAY_MIN 0.0f |
||
| 1323 | #define DSFXCHORUS_DELAY_MAX 20.0f |
||
| 1324 | #define DSFXCHORUS_PHASE_MIN 0 |
||
| 1325 | #define DSFXCHORUS_PHASE_MAX 4 |
||
| 1326 | |||
| 1327 | #define DSFXCHORUS_PHASE_NEG_180 0 |
||
| 1328 | #define DSFXCHORUS_PHASE_NEG_90 1 |
||
| 1329 | #define DSFXCHORUS_PHASE_ZERO 2 |
||
| 1330 | #define DSFXCHORUS_PHASE_90 3 |
||
| 1331 | #define DSFXCHORUS_PHASE_180 4 |
||
| 1332 | |||
| 1333 | #undef INTERFACE |
||
| 1334 | #define INTERFACE IDirectSoundFXChorus |
||
| 1335 | |||
| 1336 | DECLARE_INTERFACE_(IDirectSoundFXChorus, IUnknown) |
||
| 1337 | { |
||
| 1338 | // IUnknown methods |
||
| 1339 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 1340 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 1341 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 1342 | |||
| 1343 | // IDirectSoundFXChorus methods |
||
| 1344 | STDMETHOD(SetAllParameters) (THIS_ __in LPCDSFXChorus pcDsFxChorus) PURE; |
||
| 1345 | STDMETHOD(GetAllParameters) (THIS_ __out LPDSFXChorus pDsFxChorus) PURE; |
||
| 1346 | }; |
||
| 1347 | |||
| 1348 | #define IDirectSoundFXChorus_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) |
||
| 1349 | #define IDirectSoundFXChorus_AddRef(p) IUnknown_AddRef(p) |
||
| 1350 | #define IDirectSoundFXChorus_Release(p) IUnknown_Release(p) |
||
| 1351 | |||
| 1352 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1353 | #define IDirectSoundFXChorus_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) |
||
| 1354 | #define IDirectSoundFXChorus_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) |
||
| 1355 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1356 | #define IDirectSoundFXChorus_SetAllParameters(p,a) (p)->SetAllParameters(a) |
||
| 1357 | #define IDirectSoundFXChorus_GetAllParameters(p,a) (p)->GetAllParameters(a) |
||
| 1358 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1359 | |||
| 1360 | // |
||
| 1361 | // IDirectSoundFXFlanger |
||
| 1362 | // |
||
| 1363 | |||
| 1364 | DEFINE_GUID(IID_IDirectSoundFXFlanger, 0x903e9878, 0x2c92, 0x4072, 0x9b, 0x2c, 0xea, 0x68, 0xf5, 0x39, 0x67, 0x83); |
||
| 1365 | |||
| 1366 | typedef struct _DSFXFlanger |
||
| 1367 | { |
||
| 1368 | FLOAT fWetDryMix; |
||
| 1369 | FLOAT fDepth; |
||
| 1370 | FLOAT fFeedback; |
||
| 1371 | FLOAT fFrequency; |
||
| 1372 | LONG lWaveform; |
||
| 1373 | FLOAT fDelay; |
||
| 1374 | LONG lPhase; |
||
| 1375 | } DSFXFlanger, *LPDSFXFlanger; |
||
| 1376 | |||
| 1377 | typedef const DSFXFlanger *LPCDSFXFlanger; |
||
| 1378 | |||
| 1379 | #define DSFXFLANGER_WAVE_TRIANGLE 0 |
||
| 1380 | #define DSFXFLANGER_WAVE_SIN 1 |
||
| 1381 | |||
| 1382 | #define DSFXFLANGER_WETDRYMIX_MIN 0.0f |
||
| 1383 | #define DSFXFLANGER_WETDRYMIX_MAX 100.0f |
||
| 1384 | #define DSFXFLANGER_FREQUENCY_MIN 0.0f |
||
| 1385 | #define DSFXFLANGER_FREQUENCY_MAX 10.0f |
||
| 1386 | #define DSFXFLANGER_DEPTH_MIN 0.0f |
||
| 1387 | #define DSFXFLANGER_DEPTH_MAX 100.0f |
||
| 1388 | #define DSFXFLANGER_PHASE_MIN 0 |
||
| 1389 | #define DSFXFLANGER_PHASE_MAX 4 |
||
| 1390 | #define DSFXFLANGER_FEEDBACK_MIN -99.0f |
||
| 1391 | #define DSFXFLANGER_FEEDBACK_MAX 99.0f |
||
| 1392 | #define DSFXFLANGER_DELAY_MIN 0.0f |
||
| 1393 | #define DSFXFLANGER_DELAY_MAX 4.0f |
||
| 1394 | |||
| 1395 | #define DSFXFLANGER_PHASE_NEG_180 0 |
||
| 1396 | #define DSFXFLANGER_PHASE_NEG_90 1 |
||
| 1397 | #define DSFXFLANGER_PHASE_ZERO 2 |
||
| 1398 | #define DSFXFLANGER_PHASE_90 3 |
||
| 1399 | #define DSFXFLANGER_PHASE_180 4 |
||
| 1400 | |||
| 1401 | #undef INTERFACE |
||
| 1402 | #define INTERFACE IDirectSoundFXFlanger |
||
| 1403 | |||
| 1404 | DECLARE_INTERFACE_(IDirectSoundFXFlanger, IUnknown) |
||
| 1405 | { |
||
| 1406 | // IUnknown methods |
||
| 1407 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 1408 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 1409 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 1410 | |||
| 1411 | // IDirectSoundFXFlanger methods |
||
| 1412 | STDMETHOD(SetAllParameters) (THIS_ __in LPCDSFXFlanger pcDsFxFlanger) PURE; |
||
| 1413 | STDMETHOD(GetAllParameters) (THIS_ __out LPDSFXFlanger pDsFxFlanger) PURE; |
||
| 1414 | }; |
||
| 1415 | |||
| 1416 | #define IDirectSoundFXFlanger_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) |
||
| 1417 | #define IDirectSoundFXFlanger_AddRef(p) IUnknown_AddRef(p) |
||
| 1418 | #define IDirectSoundFXFlanger_Release(p) IUnknown_Release(p) |
||
| 1419 | |||
| 1420 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1421 | #define IDirectSoundFXFlanger_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) |
||
| 1422 | #define IDirectSoundFXFlanger_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) |
||
| 1423 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1424 | #define IDirectSoundFXFlanger_SetAllParameters(p,a) (p)->SetAllParameters(a) |
||
| 1425 | #define IDirectSoundFXFlanger_GetAllParameters(p,a) (p)->GetAllParameters(a) |
||
| 1426 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1427 | |||
| 1428 | // |
||
| 1429 | // IDirectSoundFXEcho |
||
| 1430 | // |
||
| 1431 | |||
| 1432 | DEFINE_GUID(IID_IDirectSoundFXEcho, 0x8bd28edf, 0x50db, 0x4e92, 0xa2, 0xbd, 0x44, 0x54, 0x88, 0xd1, 0xed, 0x42); |
||
| 1433 | |||
| 1434 | typedef struct _DSFXEcho |
||
| 1435 | { |
||
| 1436 | FLOAT fWetDryMix; |
||
| 1437 | FLOAT fFeedback; |
||
| 1438 | FLOAT fLeftDelay; |
||
| 1439 | FLOAT fRightDelay; |
||
| 1440 | LONG lPanDelay; |
||
| 1441 | } DSFXEcho, *LPDSFXEcho; |
||
| 1442 | |||
| 1443 | typedef const DSFXEcho *LPCDSFXEcho; |
||
| 1444 | |||
| 1445 | #define DSFXECHO_WETDRYMIX_MIN 0.0f |
||
| 1446 | #define DSFXECHO_WETDRYMIX_MAX 100.0f |
||
| 1447 | #define DSFXECHO_FEEDBACK_MIN 0.0f |
||
| 1448 | #define DSFXECHO_FEEDBACK_MAX 100.0f |
||
| 1449 | #define DSFXECHO_LEFTDELAY_MIN 1.0f |
||
| 1450 | #define DSFXECHO_LEFTDELAY_MAX 2000.0f |
||
| 1451 | #define DSFXECHO_RIGHTDELAY_MIN 1.0f |
||
| 1452 | #define DSFXECHO_RIGHTDELAY_MAX 2000.0f |
||
| 1453 | #define DSFXECHO_PANDELAY_MIN 0 |
||
| 1454 | #define DSFXECHO_PANDELAY_MAX 1 |
||
| 1455 | |||
| 1456 | #undef INTERFACE |
||
| 1457 | #define INTERFACE IDirectSoundFXEcho |
||
| 1458 | |||
| 1459 | DECLARE_INTERFACE_(IDirectSoundFXEcho, IUnknown) |
||
| 1460 | { |
||
| 1461 | // IUnknown methods |
||
| 1462 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 1463 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 1464 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 1465 | |||
| 1466 | // IDirectSoundFXEcho methods |
||
| 1467 | STDMETHOD(SetAllParameters) (THIS_ __in LPCDSFXEcho pcDsFxEcho) PURE; |
||
| 1468 | STDMETHOD(GetAllParameters) (THIS_ __out LPDSFXEcho pDsFxEcho) PURE; |
||
| 1469 | }; |
||
| 1470 | |||
| 1471 | #define IDirectSoundFXEcho_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) |
||
| 1472 | #define IDirectSoundFXEcho_AddRef(p) IUnknown_AddRef(p) |
||
| 1473 | #define IDirectSoundFXEcho_Release(p) IUnknown_Release(p) |
||
| 1474 | |||
| 1475 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1476 | #define IDirectSoundFXEcho_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) |
||
| 1477 | #define IDirectSoundFXEcho_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) |
||
| 1478 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1479 | #define IDirectSoundFXEcho_SetAllParameters(p,a) (p)->SetAllParameters(a) |
||
| 1480 | #define IDirectSoundFXEcho_GetAllParameters(p,a) (p)->GetAllParameters(a) |
||
| 1481 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1482 | |||
| 1483 | // |
||
| 1484 | // IDirectSoundFXDistortion |
||
| 1485 | // |
||
| 1486 | |||
| 1487 | DEFINE_GUID(IID_IDirectSoundFXDistortion, 0x8ecf4326, 0x455f, 0x4d8b, 0xbd, 0xa9, 0x8d, 0x5d, 0x3e, 0x9e, 0x3e, 0x0b); |
||
| 1488 | |||
| 1489 | typedef struct _DSFXDistortion |
||
| 1490 | { |
||
| 1491 | FLOAT fGain; |
||
| 1492 | FLOAT fEdge; |
||
| 1493 | FLOAT fPostEQCenterFrequency; |
||
| 1494 | FLOAT fPostEQBandwidth; |
||
| 1495 | FLOAT fPreLowpassCutoff; |
||
| 1496 | } DSFXDistortion, *LPDSFXDistortion; |
||
| 1497 | |||
| 1498 | typedef const DSFXDistortion *LPCDSFXDistortion; |
||
| 1499 | |||
| 1500 | #define DSFXDISTORTION_GAIN_MIN -60.0f |
||
| 1501 | #define DSFXDISTORTION_GAIN_MAX 0.0f |
||
| 1502 | #define DSFXDISTORTION_EDGE_MIN 0.0f |
||
| 1503 | #define DSFXDISTORTION_EDGE_MAX 100.0f |
||
| 1504 | #define DSFXDISTORTION_POSTEQCENTERFREQUENCY_MIN 100.0f |
||
| 1505 | #define DSFXDISTORTION_POSTEQCENTERFREQUENCY_MAX 8000.0f |
||
| 1506 | #define DSFXDISTORTION_POSTEQBANDWIDTH_MIN 100.0f |
||
| 1507 | #define DSFXDISTORTION_POSTEQBANDWIDTH_MAX 8000.0f |
||
| 1508 | #define DSFXDISTORTION_PRELOWPASSCUTOFF_MIN 100.0f |
||
| 1509 | #define DSFXDISTORTION_PRELOWPASSCUTOFF_MAX 8000.0f |
||
| 1510 | |||
| 1511 | #undef INTERFACE |
||
| 1512 | #define INTERFACE IDirectSoundFXDistortion |
||
| 1513 | |||
| 1514 | DECLARE_INTERFACE_(IDirectSoundFXDistortion, IUnknown) |
||
| 1515 | { |
||
| 1516 | // IUnknown methods |
||
| 1517 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 1518 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 1519 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 1520 | |||
| 1521 | // IDirectSoundFXDistortion methods |
||
| 1522 | STDMETHOD(SetAllParameters) (THIS_ __in LPCDSFXDistortion pcDsFxDistortion) PURE; |
||
| 1523 | STDMETHOD(GetAllParameters) (THIS_ __out LPDSFXDistortion pDsFxDistortion) PURE; |
||
| 1524 | }; |
||
| 1525 | |||
| 1526 | #define IDirectSoundFXDistortion_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) |
||
| 1527 | #define IDirectSoundFXDistortion_AddRef(p) IUnknown_AddRef(p) |
||
| 1528 | #define IDirectSoundFXDistortion_Release(p) IUnknown_Release(p) |
||
| 1529 | |||
| 1530 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1531 | #define IDirectSoundFXDistortion_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) |
||
| 1532 | #define IDirectSoundFXDistortion_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) |
||
| 1533 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1534 | #define IDirectSoundFXDistortion_SetAllParameters(p,a) (p)->SetAllParameters(a) |
||
| 1535 | #define IDirectSoundFXDistortion_GetAllParameters(p,a) (p)->GetAllParameters(a) |
||
| 1536 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1537 | |||
| 1538 | // |
||
| 1539 | // IDirectSoundFXCompressor |
||
| 1540 | // |
||
| 1541 | |||
| 1542 | DEFINE_GUID(IID_IDirectSoundFXCompressor, 0x4bbd1154, 0x62f6, 0x4e2c, 0xa1, 0x5c, 0xd3, 0xb6, 0xc4, 0x17, 0xf7, 0xa0); |
||
| 1543 | |||
| 1544 | typedef struct _DSFXCompressor |
||
| 1545 | { |
||
| 1546 | FLOAT fGain; |
||
| 1547 | FLOAT fAttack; |
||
| 1548 | FLOAT fRelease; |
||
| 1549 | FLOAT fThreshold; |
||
| 1550 | FLOAT fRatio; |
||
| 1551 | FLOAT fPredelay; |
||
| 1552 | } DSFXCompressor, *LPDSFXCompressor; |
||
| 1553 | |||
| 1554 | typedef const DSFXCompressor *LPCDSFXCompressor; |
||
| 1555 | |||
| 1556 | #define DSFXCOMPRESSOR_GAIN_MIN -60.0f |
||
| 1557 | #define DSFXCOMPRESSOR_GAIN_MAX 60.0f |
||
| 1558 | #define DSFXCOMPRESSOR_ATTACK_MIN 0.01f |
||
| 1559 | #define DSFXCOMPRESSOR_ATTACK_MAX 500.0f |
||
| 1560 | #define DSFXCOMPRESSOR_RELEASE_MIN 50.0f |
||
| 1561 | #define DSFXCOMPRESSOR_RELEASE_MAX 3000.0f |
||
| 1562 | #define DSFXCOMPRESSOR_THRESHOLD_MIN -60.0f |
||
| 1563 | #define DSFXCOMPRESSOR_THRESHOLD_MAX 0.0f |
||
| 1564 | #define DSFXCOMPRESSOR_RATIO_MIN 1.0f |
||
| 1565 | #define DSFXCOMPRESSOR_RATIO_MAX 100.0f |
||
| 1566 | #define DSFXCOMPRESSOR_PREDELAY_MIN 0.0f |
||
| 1567 | #define DSFXCOMPRESSOR_PREDELAY_MAX 4.0f |
||
| 1568 | |||
| 1569 | #undef INTERFACE |
||
| 1570 | #define INTERFACE IDirectSoundFXCompressor |
||
| 1571 | |||
| 1572 | DECLARE_INTERFACE_(IDirectSoundFXCompressor, IUnknown) |
||
| 1573 | { |
||
| 1574 | // IUnknown methods |
||
| 1575 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 1576 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 1577 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 1578 | |||
| 1579 | // IDirectSoundFXCompressor methods |
||
| 1580 | STDMETHOD(SetAllParameters) (THIS_ __in LPCDSFXCompressor pcDsFxCompressor) PURE; |
||
| 1581 | STDMETHOD(GetAllParameters) (THIS_ __out LPDSFXCompressor pDsFxCompressor) PURE; |
||
| 1582 | }; |
||
| 1583 | |||
| 1584 | #define IDirectSoundFXCompressor_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) |
||
| 1585 | #define IDirectSoundFXCompressor_AddRef(p) IUnknown_AddRef(p) |
||
| 1586 | #define IDirectSoundFXCompressor_Release(p) IUnknown_Release(p) |
||
| 1587 | |||
| 1588 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1589 | #define IDirectSoundFXCompressor_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) |
||
| 1590 | #define IDirectSoundFXCompressor_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) |
||
| 1591 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1592 | #define IDirectSoundFXCompressor_SetAllParameters(p,a) (p)->SetAllParameters(a) |
||
| 1593 | #define IDirectSoundFXCompressor_GetAllParameters(p,a) (p)->GetAllParameters(a) |
||
| 1594 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1595 | |||
| 1596 | // |
||
| 1597 | // IDirectSoundFXParamEq |
||
| 1598 | // |
||
| 1599 | |||
| 1600 | DEFINE_GUID(IID_IDirectSoundFXParamEq, 0xc03ca9fe, 0xfe90, 0x4204, 0x80, 0x78, 0x82, 0x33, 0x4c, 0xd1, 0x77, 0xda); |
||
| 1601 | |||
| 1602 | typedef struct _DSFXParamEq |
||
| 1603 | { |
||
| 1604 | FLOAT fCenter; |
||
| 1605 | FLOAT fBandwidth; |
||
| 1606 | FLOAT fGain; |
||
| 1607 | } DSFXParamEq, *LPDSFXParamEq; |
||
| 1608 | |||
| 1609 | typedef const DSFXParamEq *LPCDSFXParamEq; |
||
| 1610 | |||
| 1611 | #define DSFXPARAMEQ_CENTER_MIN 80.0f |
||
| 1612 | #define DSFXPARAMEQ_CENTER_MAX 16000.0f |
||
| 1613 | #define DSFXPARAMEQ_BANDWIDTH_MIN 1.0f |
||
| 1614 | #define DSFXPARAMEQ_BANDWIDTH_MAX 36.0f |
||
| 1615 | #define DSFXPARAMEQ_GAIN_MIN -15.0f |
||
| 1616 | #define DSFXPARAMEQ_GAIN_MAX 15.0f |
||
| 1617 | |||
| 1618 | #undef INTERFACE |
||
| 1619 | #define INTERFACE IDirectSoundFXParamEq |
||
| 1620 | |||
| 1621 | DECLARE_INTERFACE_(IDirectSoundFXParamEq, IUnknown) |
||
| 1622 | { |
||
| 1623 | // IUnknown methods |
||
| 1624 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 1625 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 1626 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 1627 | |||
| 1628 | // IDirectSoundFXParamEq methods |
||
| 1629 | STDMETHOD(SetAllParameters) (THIS_ __in LPCDSFXParamEq pcDsFxParamEq) PURE; |
||
| 1630 | STDMETHOD(GetAllParameters) (THIS_ __out LPDSFXParamEq pDsFxParamEq) PURE; |
||
| 1631 | }; |
||
| 1632 | |||
| 1633 | #define IDirectSoundFXParamEq_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) |
||
| 1634 | #define IDirectSoundFXParamEq_AddRef(p) IUnknown_AddRef(p) |
||
| 1635 | #define IDirectSoundFXParamEq_Release(p) IUnknown_Release(p) |
||
| 1636 | |||
| 1637 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1638 | #define IDirectSoundFXParamEq_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) |
||
| 1639 | #define IDirectSoundFXParamEq_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) |
||
| 1640 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1641 | #define IDirectSoundFXParamEq_SetAllParameters(p,a) (p)->SetAllParameters(a) |
||
| 1642 | #define IDirectSoundFXParamEq_GetAllParameters(p,a) (p)->GetAllParameters(a) |
||
| 1643 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1644 | |||
| 1645 | // |
||
| 1646 | // IDirectSoundFXI3DL2Reverb |
||
| 1647 | // |
||
| 1648 | |||
| 1649 | DEFINE_GUID(IID_IDirectSoundFXI3DL2Reverb, 0x4b166a6a, 0x0d66, 0x43f3, 0x80, 0xe3, 0xee, 0x62, 0x80, 0xde, 0xe1, 0xa4); |
||
| 1650 | |||
| 1651 | typedef struct _DSFXI3DL2Reverb |
||
| 1652 | { |
||
| 1653 | LONG lRoom; // [-10000, 0] default: -1000 mB |
||
| 1654 | LONG lRoomHF; // [-10000, 0] default: 0 mB |
||
| 1655 | FLOAT flRoomRolloffFactor; // [0.0, 10.0] default: 0.0 |
||
| 1656 | FLOAT flDecayTime; // [0.1, 20.0] default: 1.49s |
||
| 1657 | FLOAT flDecayHFRatio; // [0.1, 2.0] default: 0.83 |
||
| 1658 | LONG lReflections; // [-10000, 1000] default: -2602 mB |
||
| 1659 | FLOAT flReflectionsDelay; // [0.0, 0.3] default: 0.007 s |
||
| 1660 | LONG lReverb; // [-10000, 2000] default: 200 mB |
||
| 1661 | FLOAT flReverbDelay; // [0.0, 0.1] default: 0.011 s |
||
| 1662 | FLOAT flDiffusion; // [0.0, 100.0] default: 100.0 % |
||
| 1663 | FLOAT flDensity; // [0.0, 100.0] default: 100.0 % |
||
| 1664 | FLOAT flHFReference; // [20.0, 20000.0] default: 5000.0 Hz |
||
| 1665 | } DSFXI3DL2Reverb, *LPDSFXI3DL2Reverb; |
||
| 1666 | |||
| 1667 | typedef const DSFXI3DL2Reverb *LPCDSFXI3DL2Reverb; |
||
| 1668 | |||
| 1669 | #define DSFX_I3DL2REVERB_ROOM_MIN (-10000) |
||
| 1670 | #define DSFX_I3DL2REVERB_ROOM_MAX 0 |
||
| 1671 | #define DSFX_I3DL2REVERB_ROOM_DEFAULT (-1000) |
||
| 1672 | |||
| 1673 | #define DSFX_I3DL2REVERB_ROOMHF_MIN (-10000) |
||
| 1674 | #define DSFX_I3DL2REVERB_ROOMHF_MAX 0 |
||
| 1675 | #define DSFX_I3DL2REVERB_ROOMHF_DEFAULT (-100) |
||
| 1676 | |||
| 1677 | #define DSFX_I3DL2REVERB_ROOMROLLOFFFACTOR_MIN 0.0f |
||
| 1678 | #define DSFX_I3DL2REVERB_ROOMROLLOFFFACTOR_MAX 10.0f |
||
| 1679 | #define DSFX_I3DL2REVERB_ROOMROLLOFFFACTOR_DEFAULT 0.0f |
||
| 1680 | |||
| 1681 | #define DSFX_I3DL2REVERB_DECAYTIME_MIN 0.1f |
||
| 1682 | #define DSFX_I3DL2REVERB_DECAYTIME_MAX 20.0f |
||
| 1683 | #define DSFX_I3DL2REVERB_DECAYTIME_DEFAULT 1.49f |
||
| 1684 | |||
| 1685 | #define DSFX_I3DL2REVERB_DECAYHFRATIO_MIN 0.1f |
||
| 1686 | #define DSFX_I3DL2REVERB_DECAYHFRATIO_MAX 2.0f |
||
| 1687 | #define DSFX_I3DL2REVERB_DECAYHFRATIO_DEFAULT 0.83f |
||
| 1688 | |||
| 1689 | #define DSFX_I3DL2REVERB_REFLECTIONS_MIN (-10000) |
||
| 1690 | #define DSFX_I3DL2REVERB_REFLECTIONS_MAX 1000 |
||
| 1691 | #define DSFX_I3DL2REVERB_REFLECTIONS_DEFAULT (-2602) |
||
| 1692 | |||
| 1693 | #define DSFX_I3DL2REVERB_REFLECTIONSDELAY_MIN 0.0f |
||
| 1694 | #define DSFX_I3DL2REVERB_REFLECTIONSDELAY_MAX 0.3f |
||
| 1695 | #define DSFX_I3DL2REVERB_REFLECTIONSDELAY_DEFAULT 0.007f |
||
| 1696 | |||
| 1697 | #define DSFX_I3DL2REVERB_REVERB_MIN (-10000) |
||
| 1698 | #define DSFX_I3DL2REVERB_REVERB_MAX 2000 |
||
| 1699 | #define DSFX_I3DL2REVERB_REVERB_DEFAULT (200) |
||
| 1700 | |||
| 1701 | #define DSFX_I3DL2REVERB_REVERBDELAY_MIN 0.0f |
||
| 1702 | #define DSFX_I3DL2REVERB_REVERBDELAY_MAX 0.1f |
||
| 1703 | #define DSFX_I3DL2REVERB_REVERBDELAY_DEFAULT 0.011f |
||
| 1704 | |||
| 1705 | #define DSFX_I3DL2REVERB_DIFFUSION_MIN 0.0f |
||
| 1706 | #define DSFX_I3DL2REVERB_DIFFUSION_MAX 100.0f |
||
| 1707 | #define DSFX_I3DL2REVERB_DIFFUSION_DEFAULT 100.0f |
||
| 1708 | |||
| 1709 | #define DSFX_I3DL2REVERB_DENSITY_MIN 0.0f |
||
| 1710 | #define DSFX_I3DL2REVERB_DENSITY_MAX 100.0f |
||
| 1711 | #define DSFX_I3DL2REVERB_DENSITY_DEFAULT 100.0f |
||
| 1712 | |||
| 1713 | #define DSFX_I3DL2REVERB_HFREFERENCE_MIN 20.0f |
||
| 1714 | #define DSFX_I3DL2REVERB_HFREFERENCE_MAX 20000.0f |
||
| 1715 | #define DSFX_I3DL2REVERB_HFREFERENCE_DEFAULT 5000.0f |
||
| 1716 | |||
| 1717 | #define DSFX_I3DL2REVERB_QUALITY_MIN 0 |
||
| 1718 | #define DSFX_I3DL2REVERB_QUALITY_MAX 3 |
||
| 1719 | #define DSFX_I3DL2REVERB_QUALITY_DEFAULT 2 |
||
| 1720 | |||
| 1721 | #undef INTERFACE |
||
| 1722 | #define INTERFACE IDirectSoundFXI3DL2Reverb |
||
| 1723 | |||
| 1724 | DECLARE_INTERFACE_(IDirectSoundFXI3DL2Reverb, IUnknown) |
||
| 1725 | { |
||
| 1726 | // IUnknown methods |
||
| 1727 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 1728 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 1729 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 1730 | |||
| 1731 | // IDirectSoundFXI3DL2Reverb methods |
||
| 1732 | STDMETHOD(SetAllParameters) (THIS_ __in LPCDSFXI3DL2Reverb pcDsFxI3DL2Reverb) PURE; |
||
| 1733 | STDMETHOD(GetAllParameters) (THIS_ __out LPDSFXI3DL2Reverb pDsFxI3DL2Reverb) PURE; |
||
| 1734 | STDMETHOD(SetPreset) (THIS_ DWORD dwPreset) PURE; |
||
| 1735 | STDMETHOD(GetPreset) (THIS_ __out LPDWORD pdwPreset) PURE; |
||
| 1736 | STDMETHOD(SetQuality) (THIS_ LONG lQuality) PURE; |
||
| 1737 | STDMETHOD(GetQuality) (THIS_ __out LONG *plQuality) PURE; |
||
| 1738 | }; |
||
| 1739 | |||
| 1740 | #define IDirectSoundFXI3DL2Reverb_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) |
||
| 1741 | #define IDirectSoundFXI3DL2Reverb_AddRef(p) IUnknown_AddRef(p) |
||
| 1742 | #define IDirectSoundFXI3DL2Reverb_Release(p) IUnknown_Release(p) |
||
| 1743 | |||
| 1744 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1745 | #define IDirectSoundFXI3DL2Reverb_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) |
||
| 1746 | #define IDirectSoundFXI3DL2Reverb_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) |
||
| 1747 | #define IDirectSoundFXI3DL2Reverb_SetPreset(p,a) (p)->lpVtbl->SetPreset(p,a) |
||
| 1748 | #define IDirectSoundFXI3DL2Reverb_GetPreset(p,a) (p)->lpVtbl->GetPreset(p,a) |
||
| 1749 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1750 | #define IDirectSoundFXI3DL2Reverb_SetAllParameters(p,a) (p)->SetAllParameters(a) |
||
| 1751 | #define IDirectSoundFXI3DL2Reverb_GetAllParameters(p,a) (p)->GetAllParameters(a) |
||
| 1752 | #define IDirectSoundFXI3DL2Reverb_SetPreset(p,a) (p)->SetPreset(a) |
||
| 1753 | #define IDirectSoundFXI3DL2Reverb_GetPreset(p,a) (p)->GetPreset(a) |
||
| 1754 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1755 | |||
| 1756 | // |
||
| 1757 | // IDirectSoundFXWavesReverb |
||
| 1758 | // |
||
| 1759 | |||
| 1760 | DEFINE_GUID(IID_IDirectSoundFXWavesReverb,0x46858c3a,0x0dc6,0x45e3,0xb7,0x60,0xd4,0xee,0xf1,0x6c,0xb3,0x25); |
||
| 1761 | |||
| 1762 | typedef struct _DSFXWavesReverb |
||
| 1763 | { |
||
| 1764 | FLOAT fInGain; // [-96.0,0.0] default: 0.0 dB |
||
| 1765 | FLOAT fReverbMix; // [-96.0,0.0] default: 0.0 db |
||
| 1766 | FLOAT fReverbTime; // [0.001,3000.0] default: 1000.0 ms |
||
| 1767 | FLOAT fHighFreqRTRatio; // [0.001,0.999] default: 0.001 |
||
| 1768 | } DSFXWavesReverb, *LPDSFXWavesReverb; |
||
| 1769 | |||
| 1770 | typedef const DSFXWavesReverb *LPCDSFXWavesReverb; |
||
| 1771 | |||
| 1772 | #define DSFX_WAVESREVERB_INGAIN_MIN -96.0f |
||
| 1773 | #define DSFX_WAVESREVERB_INGAIN_MAX 0.0f |
||
| 1774 | #define DSFX_WAVESREVERB_INGAIN_DEFAULT 0.0f |
||
| 1775 | #define DSFX_WAVESREVERB_REVERBMIX_MIN -96.0f |
||
| 1776 | #define DSFX_WAVESREVERB_REVERBMIX_MAX 0.0f |
||
| 1777 | #define DSFX_WAVESREVERB_REVERBMIX_DEFAULT 0.0f |
||
| 1778 | #define DSFX_WAVESREVERB_REVERBTIME_MIN 0.001f |
||
| 1779 | #define DSFX_WAVESREVERB_REVERBTIME_MAX 3000.0f |
||
| 1780 | #define DSFX_WAVESREVERB_REVERBTIME_DEFAULT 1000.0f |
||
| 1781 | #define DSFX_WAVESREVERB_HIGHFREQRTRATIO_MIN 0.001f |
||
| 1782 | #define DSFX_WAVESREVERB_HIGHFREQRTRATIO_MAX 0.999f |
||
| 1783 | #define DSFX_WAVESREVERB_HIGHFREQRTRATIO_DEFAULT 0.001f |
||
| 1784 | |||
| 1785 | #undef INTERFACE |
||
| 1786 | #define INTERFACE IDirectSoundFXWavesReverb |
||
| 1787 | |||
| 1788 | DECLARE_INTERFACE_(IDirectSoundFXWavesReverb, IUnknown) |
||
| 1789 | { |
||
| 1790 | // IUnknown methods |
||
| 1791 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 1792 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 1793 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 1794 | |||
| 1795 | // IDirectSoundFXWavesReverb methods |
||
| 1796 | STDMETHOD(SetAllParameters) (THIS_ __in LPCDSFXWavesReverb pcDsFxWavesReverb) PURE; |
||
| 1797 | STDMETHOD(GetAllParameters) (THIS_ __out LPDSFXWavesReverb pDsFxWavesReverb) PURE; |
||
| 1798 | }; |
||
| 1799 | |||
| 1800 | #define IDirectSoundFXWavesReverb_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) |
||
| 1801 | #define IDirectSoundFXWavesReverb_AddRef(p) IUnknown_AddRef(p) |
||
| 1802 | #define IDirectSoundFXWavesReverb_Release(p) IUnknown_Release(p) |
||
| 1803 | |||
| 1804 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1805 | #define IDirectSoundFXWavesReverb_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) |
||
| 1806 | #define IDirectSoundFXWavesReverb_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) |
||
| 1807 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1808 | #define IDirectSoundFXWavesReverb_SetAllParameters(p,a) (p)->SetAllParameters(a) |
||
| 1809 | #define IDirectSoundFXWavesReverb_GetAllParameters(p,a) (p)->GetAllParameters(a) |
||
| 1810 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1811 | |||
| 1812 | // |
||
| 1813 | // IDirectSoundCaptureFXAec |
||
| 1814 | // |
||
| 1815 | |||
| 1816 | DEFINE_GUID(IID_IDirectSoundCaptureFXAec, 0xad74143d, 0x903d, 0x4ab7, 0x80, 0x66, 0x28, 0xd3, 0x63, 0x03, 0x6d, 0x65); |
||
| 1817 | |||
| 1818 | typedef struct _DSCFXAec |
||
| 1819 | { |
||
| 1820 | BOOL fEnable; |
||
| 1821 | BOOL fNoiseFill; |
||
| 1822 | DWORD dwMode; |
||
| 1823 | } DSCFXAec, *LPDSCFXAec; |
||
| 1824 | |||
| 1825 | typedef const DSCFXAec *LPCDSCFXAec; |
||
| 1826 | |||
| 1827 | // These match the AEC_MODE_* constants in the DDK's ksmedia.h file |
||
| 1828 | #define DSCFX_AEC_MODE_PASS_THROUGH 0x0 |
||
| 1829 | #define DSCFX_AEC_MODE_HALF_DUPLEX 0x1 |
||
| 1830 | #define DSCFX_AEC_MODE_FULL_DUPLEX 0x2 |
||
| 1831 | |||
| 1832 | // These match the AEC_STATUS_* constants in ksmedia.h |
||
| 1833 | #define DSCFX_AEC_STATUS_HISTORY_UNINITIALIZED 0x0 |
||
| 1834 | #define DSCFX_AEC_STATUS_HISTORY_CONTINUOUSLY_CONVERGED 0x1 |
||
| 1835 | #define DSCFX_AEC_STATUS_HISTORY_PREVIOUSLY_DIVERGED 0x2 |
||
| 1836 | #define DSCFX_AEC_STATUS_CURRENTLY_CONVERGED 0x8 |
||
| 1837 | |||
| 1838 | #undef INTERFACE |
||
| 1839 | #define INTERFACE IDirectSoundCaptureFXAec |
||
| 1840 | |||
| 1841 | DECLARE_INTERFACE_(IDirectSoundCaptureFXAec, IUnknown) |
||
| 1842 | { |
||
| 1843 | // IUnknown methods |
||
| 1844 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 1845 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 1846 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 1847 | |||
| 1848 | // IDirectSoundCaptureFXAec methods |
||
| 1849 | STDMETHOD(SetAllParameters) (THIS_ __in LPCDSCFXAec pDscFxAec) PURE; |
||
| 1850 | STDMETHOD(GetAllParameters) (THIS_ __out LPDSCFXAec pDscFxAec) PURE; |
||
| 1851 | STDMETHOD(GetStatus) (THIS_ __out LPDWORD pdwStatus) PURE; |
||
| 1852 | STDMETHOD(Reset) (THIS) PURE; |
||
| 1853 | }; |
||
| 1854 | |||
| 1855 | #define IDirectSoundCaptureFXAec_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) |
||
| 1856 | #define IDirectSoundCaptureFXAec_AddRef(p) IUnknown_AddRef(p) |
||
| 1857 | #define IDirectSoundCaptureFXAec_Release(p) IUnknown_Release(p) |
||
| 1858 | |||
| 1859 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1860 | #define IDirectSoundCaptureFXAec_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) |
||
| 1861 | #define IDirectSoundCaptureFXAec_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) |
||
| 1862 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1863 | #define IDirectSoundCaptureFXAec_SetAllParameters(p,a) (p)->SetAllParameters(a) |
||
| 1864 | #define IDirectSoundCaptureFXAec_GetAllParameters(p,a) (p)->GetAllParameters(a) |
||
| 1865 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1866 | |||
| 1867 | |||
| 1868 | // |
||
| 1869 | // IDirectSoundCaptureFXNoiseSuppress |
||
| 1870 | // |
||
| 1871 | |||
| 1872 | DEFINE_GUID(IID_IDirectSoundCaptureFXNoiseSuppress, 0xed311e41, 0xfbae, 0x4175, 0x96, 0x25, 0xcd, 0x8, 0x54, 0xf6, 0x93, 0xca); |
||
| 1873 | |||
| 1874 | typedef struct _DSCFXNoiseSuppress |
||
| 1875 | { |
||
| 1876 | BOOL fEnable; |
||
| 1877 | } DSCFXNoiseSuppress, *LPDSCFXNoiseSuppress; |
||
| 1878 | |||
| 1879 | typedef const DSCFXNoiseSuppress *LPCDSCFXNoiseSuppress; |
||
| 1880 | |||
| 1881 | #undef INTERFACE |
||
| 1882 | #define INTERFACE IDirectSoundCaptureFXNoiseSuppress |
||
| 1883 | |||
| 1884 | DECLARE_INTERFACE_(IDirectSoundCaptureFXNoiseSuppress, IUnknown) |
||
| 1885 | { |
||
| 1886 | // IUnknown methods |
||
| 1887 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 1888 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 1889 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 1890 | |||
| 1891 | // IDirectSoundCaptureFXNoiseSuppress methods |
||
| 1892 | STDMETHOD(SetAllParameters) (THIS_ __in LPCDSCFXNoiseSuppress pcDscFxNoiseSuppress) PURE; |
||
| 1893 | STDMETHOD(GetAllParameters) (THIS_ __out LPDSCFXNoiseSuppress pDscFxNoiseSuppress) PURE; |
||
| 1894 | STDMETHOD(Reset) (THIS) PURE; |
||
| 1895 | }; |
||
| 1896 | |||
| 1897 | #define IDirectSoundCaptureFXNoiseSuppress_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) |
||
| 1898 | #define IDirectSoundCaptureFXNoiseSuppress_AddRef(p) IUnknown_AddRef(p) |
||
| 1899 | #define IDirectSoundCaptureFXNoiseSuppress_Release(p) IUnknown_Release(p) |
||
| 1900 | |||
| 1901 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1902 | #define IDirectSoundCaptureFXNoiseSuppress_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) |
||
| 1903 | #define IDirectSoundCaptureFXNoiseSuppress_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) |
||
| 1904 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1905 | #define IDirectSoundCaptureFXNoiseSuppress_SetAllParameters(p,a) (p)->SetAllParameters(a) |
||
| 1906 | #define IDirectSoundCaptureFXNoiseSuppress_GetAllParameters(p,a) (p)->GetAllParameters(a) |
||
| 1907 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1908 | |||
| 1909 | |||
| 1910 | // |
||
| 1911 | // IDirectSoundFullDuplex |
||
| 1912 | // |
||
| 1913 | |||
| 1914 | #ifndef _IDirectSoundFullDuplex_ |
||
| 1915 | #define _IDirectSoundFullDuplex_ |
||
| 1916 | |||
| 1917 | #ifdef __cplusplus |
||
| 1918 | // 'struct' not 'class' per the way DECLARE_INTERFACE_ is defined |
||
| 1919 | struct IDirectSoundFullDuplex; |
||
| 1920 | #endif // __cplusplus |
||
| 1921 | |||
| 1922 | typedef struct IDirectSoundFullDuplex *LPDIRECTSOUNDFULLDUPLEX; |
||
| 1923 | |||
| 1924 | DEFINE_GUID(IID_IDirectSoundFullDuplex, 0xedcb4c7a, 0xdaab, 0x4216, 0xa4, 0x2e, 0x6c, 0x50, 0x59, 0x6d, 0xdc, 0x1d); |
||
| 1925 | |||
| 1926 | #undef INTERFACE |
||
| 1927 | #define INTERFACE IDirectSoundFullDuplex |
||
| 1928 | |||
| 1929 | DECLARE_INTERFACE_(IDirectSoundFullDuplex, IUnknown) |
||
| 1930 | { |
||
| 1931 | // IUnknown methods |
||
| 1932 | STDMETHOD(QueryInterface) (THIS_ __in REFIID, __deref_out LPVOID*) PURE; |
||
| 1933 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
||
| 1934 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
||
| 1935 | |||
| 1936 | // IDirectSoundFullDuplex methods |
||
| 1937 | STDMETHOD(Initialize) (THIS_ __in LPCGUID pCaptureGuid, __in LPCGUID pRenderGuid, __in LPCDSCBUFFERDESC lpDscBufferDesc, __in LPCDSBUFFERDESC lpDsBufferDesc, HWND hWnd, DWORD dwLevel, |
||
| 1938 | __deref_out LPLPDIRECTSOUNDCAPTUREBUFFER8 lplpDirectSoundCaptureBuffer8, __deref_out LPLPDIRECTSOUNDBUFFER8 lplpDirectSoundBuffer8) PURE; |
||
| 1939 | }; |
||
| 1940 | |||
| 1941 | #define IDirectSoundFullDuplex_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) |
||
| 1942 | #define IDirectSoundFullDuplex_AddRef(p) IUnknown_AddRef(p) |
||
| 1943 | #define IDirectSoundFullDuplex_Release(p) IUnknown_Release(p) |
||
| 1944 | |||
| 1945 | #if !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1946 | #define IDirectSoundFullDuplex_Initialize(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->Initialize(p,a,b,c,d,e,f,g,h) |
||
| 1947 | #else // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1948 | #define IDirectSoundFullDuplex_Initialize(p,a,b,c,d,e,f,g,h) (p)->Initialize(a,b,c,d,e,f,g,h) |
||
| 1949 | #endif // !defined(__cplusplus) || defined(CINTERFACE) |
||
| 1950 | |||
| 1951 | #endif // _IDirectSoundFullDuplex_ |
||
| 1952 | |||
| 1953 | #endif // DIRECTSOUND_VERSION >= 0x0800 |
||
| 1954 | |||
| 1955 | // |
||
| 1956 | // Return Codes |
||
| 1957 | // |
||
| 1958 | |||
| 1959 | // The function completed successfully |
||
| 1960 | #define DS_OK S_OK |
||
| 1961 | |||
| 1962 | // The call succeeded, but we had to substitute the 3D algorithm |
||
| 1963 | #define DS_NO_VIRTUALIZATION MAKE_HRESULT(0, _FACDS, 10) |
||
| 1964 | |||
| 1965 | // The call failed because resources (such as a priority level) |
||
| 1966 | // were already being used by another caller |
||
| 1967 | #define DSERR_ALLOCATED MAKE_DSHRESULT(10) |
||
| 1968 | |||
| 1969 | // The control (vol, pan, etc.) requested by the caller is not available |
||
| 1970 | #define DSERR_CONTROLUNAVAIL MAKE_DSHRESULT(30) |
||
| 1971 | |||
| 1972 | // An invalid parameter was passed to the returning function |
||
| 1973 | #define DSERR_INVALIDPARAM E_INVALIDARG |
||
| 1974 | |||
| 1975 | // This call is not valid for the current state of this object |
||
| 1976 | #define DSERR_INVALIDCALL MAKE_DSHRESULT(50) |
||
| 1977 | |||
| 1978 | // An undetermined error occurred inside the DirectSound subsystem |
||
| 1979 | #define DSERR_GENERIC E_FAIL |
||
| 1980 | |||
| 1981 | // The caller does not have the priority level required for the function to |
||
| 1982 | // succeed |
||
| 1983 | #define DSERR_PRIOLEVELNEEDED MAKE_DSHRESULT(70) |
||
| 1984 | |||
| 1985 | // Not enough free memory is available to complete the operation |
||
| 1986 | #define DSERR_OUTOFMEMORY E_OUTOFMEMORY |
||
| 1987 | |||
| 1988 | // The specified WAVE format is not supported |
||
| 1989 | #define DSERR_BADFORMAT MAKE_DSHRESULT(100) |
||
| 1990 | |||
| 1991 | // The function called is not supported at this time |
||
| 1992 | #define DSERR_UNSUPPORTED E_NOTIMPL |
||
| 1993 | |||
| 1994 | // No sound driver is available for use |
||
| 1995 | #define DSERR_NODRIVER MAKE_DSHRESULT(120) |
||
| 1996 | |||
| 1997 | // This object is already initialized |
||
| 1998 | #define DSERR_ALREADYINITIALIZED MAKE_DSHRESULT(130) |
||
| 1999 | |||
| 2000 | // This object does not support aggregation |
||
| 2001 | #define DSERR_NOAGGREGATION CLASS_E_NOAGGREGATION |
||
| 2002 | |||
| 2003 | // The buffer memory has been lost, and must be restored |
||
| 2004 | #define DSERR_BUFFERLOST MAKE_DSHRESULT(150) |
||
| 2005 | |||
| 2006 | // Another app has a higher priority level, preventing this call from |
||
| 2007 | // succeeding |
||
| 2008 | #define DSERR_OTHERAPPHASPRIO MAKE_DSHRESULT(160) |
||
| 2009 | |||
| 2010 | // This object has not been initialized |
||
| 2011 | #define DSERR_UNINITIALIZED MAKE_DSHRESULT(170) |
||
| 2012 | |||
| 2013 | // The requested COM interface is not available |
||
| 2014 | #define DSERR_NOINTERFACE E_NOINTERFACE |
||
| 2015 | |||
| 2016 | // Access is denied |
||
| 2017 | #define DSERR_ACCESSDENIED E_ACCESSDENIED |
||
| 2018 | |||
| 2019 | // Tried to create a DSBCAPS_CTRLFX buffer shorter than DSBSIZE_FX_MIN milliseconds |
||
| 2020 | #define DSERR_BUFFERTOOSMALL MAKE_DSHRESULT(180) |
||
| 2021 | |||
| 2022 | // Attempt to use DirectSound 8 functionality on an older DirectSound object |
||
| 2023 | #define DSERR_DS8_REQUIRED MAKE_DSHRESULT(190) |
||
| 2024 | |||
| 2025 | // A circular loop of send effects was detected |
||
| 2026 | #define DSERR_SENDLOOP MAKE_DSHRESULT(200) |
||
| 2027 | |||
| 2028 | // The GUID specified in an audiopath file does not match a valid MIXIN buffer |
||
| 2029 | #define DSERR_BADSENDBUFFERGUID MAKE_DSHRESULT(210) |
||
| 2030 | |||
| 2031 | // The object requested was not found (numerically equal to DMUS_E_NOT_FOUND) |
||
| 2032 | #define DSERR_OBJECTNOTFOUND MAKE_DSHRESULT(4449) |
||
| 2033 | |||
| 2034 | // The effects requested could not be found on the system, or they were found |
||
| 2035 | // but in the wrong order, or in the wrong hardware/software locations. |
||
| 2036 | #define DSERR_FXUNAVAILABLE MAKE_DSHRESULT(220) |
||
| 2037 | |||
| 2038 | // |
||
| 2039 | // Flags |
||
| 2040 | // |
||
| 2041 | |||
| 2042 | #define DSCAPS_PRIMARYMONO 0x00000001 |
||
| 2043 | #define DSCAPS_PRIMARYSTEREO 0x00000002 |
||
| 2044 | #define DSCAPS_PRIMARY8BIT 0x00000004 |
||
| 2045 | #define DSCAPS_PRIMARY16BIT 0x00000008 |
||
| 2046 | #define DSCAPS_CONTINUOUSRATE 0x00000010 |
||
| 2047 | #define DSCAPS_EMULDRIVER 0x00000020 |
||
| 2048 | #define DSCAPS_CERTIFIED 0x00000040 |
||
| 2049 | #define DSCAPS_SECONDARYMONO 0x00000100 |
||
| 2050 | #define DSCAPS_SECONDARYSTEREO 0x00000200 |
||
| 2051 | #define DSCAPS_SECONDARY8BIT 0x00000400 |
||
| 2052 | #define DSCAPS_SECONDARY16BIT 0x00000800 |
||
| 2053 | |||
| 2054 | #define DSSCL_NORMAL 0x00000001 |
||
| 2055 | #define DSSCL_PRIORITY 0x00000002 |
||
| 2056 | #define DSSCL_EXCLUSIVE 0x00000003 |
||
| 2057 | #define DSSCL_WRITEPRIMARY 0x00000004 |
||
| 2058 | |||
| 2059 | #define DSSPEAKER_DIRECTOUT 0x00000000 |
||
| 2060 | #define DSSPEAKER_HEADPHONE 0x00000001 |
||
| 2061 | #define DSSPEAKER_MONO 0x00000002 |
||
| 2062 | #define DSSPEAKER_QUAD 0x00000003 |
||
| 2063 | #define DSSPEAKER_STEREO 0x00000004 |
||
| 2064 | #define DSSPEAKER_SURROUND 0x00000005 |
||
| 2065 | #define DSSPEAKER_5POINT1 0x00000006 // obsolete 5.1 setting |
||
| 2066 | #define DSSPEAKER_7POINT1 0x00000007 // obsolete 7.1 setting |
||
| 2067 | #define DSSPEAKER_7POINT1_SURROUND 0x00000008 // correct 7.1 Home Theater setting |
||
| 2068 | #define DSSPEAKER_5POINT1_SURROUND 0x00000009 // correct 5.1 setting |
||
| 2069 | #define DSSPEAKER_7POINT1_WIDE DSSPEAKER_7POINT1 |
||
| 2070 | #define DSSPEAKER_5POINT1_BACK DSSPEAKER_5POINT1 |
||
| 2071 | |||
| 2072 | #define DSSPEAKER_GEOMETRY_MIN 0x00000005 // 5 degrees |
||
| 2073 | #define DSSPEAKER_GEOMETRY_NARROW 0x0000000A // 10 degrees |
||
| 2074 | #define DSSPEAKER_GEOMETRY_WIDE 0x00000014 // 20 degrees |
||
| 2075 | #define DSSPEAKER_GEOMETRY_MAX 0x000000B4 // 180 degrees |
||
| 2076 | |||
| 2077 | #define DSSPEAKER_COMBINED(c, g) ((DWORD)(((BYTE)(c)) | ((DWORD)((BYTE)(g))) << 16)) |
||
| 2078 | #define DSSPEAKER_CONFIG(a) ((BYTE)(a)) |
||
| 2079 | #define DSSPEAKER_GEOMETRY(a) ((BYTE)(((DWORD)(a) >> 16) & 0x00FF)) |
||
| 2080 | |||
| 2081 | #define DSBCAPS_PRIMARYBUFFER 0x00000001 |
||
| 2082 | #define DSBCAPS_STATIC 0x00000002 |
||
| 2083 | #define DSBCAPS_LOCHARDWARE 0x00000004 |
||
| 2084 | #define DSBCAPS_LOCSOFTWARE 0x00000008 |
||
| 2085 | #define DSBCAPS_CTRL3D 0x00000010 |
||
| 2086 | #define DSBCAPS_CTRLFREQUENCY 0x00000020 |
||
| 2087 | #define DSBCAPS_CTRLPAN 0x00000040 |
||
| 2088 | #define DSBCAPS_CTRLVOLUME 0x00000080 |
||
| 2089 | #define DSBCAPS_CTRLPOSITIONNOTIFY 0x00000100 |
||
| 2090 | #define DSBCAPS_CTRLFX 0x00000200 |
||
| 2091 | #define DSBCAPS_STICKYFOCUS 0x00004000 |
||
| 2092 | #define DSBCAPS_GLOBALFOCUS 0x00008000 |
||
| 2093 | #define DSBCAPS_GETCURRENTPOSITION2 0x00010000 |
||
| 2094 | #define DSBCAPS_MUTE3DATMAXDISTANCE 0x00020000 |
||
| 2095 | #define DSBCAPS_LOCDEFER 0x00040000 |
||
| 2096 | #define DSBCAPS_TRUEPLAYPOSITION 0x00080000 |
||
| 2097 | |||
| 2098 | #define DSBPLAY_LOOPING 0x00000001 |
||
| 2099 | #define DSBPLAY_LOCHARDWARE 0x00000002 |
||
| 2100 | #define DSBPLAY_LOCSOFTWARE 0x00000004 |
||
| 2101 | #define DSBPLAY_TERMINATEBY_TIME 0x00000008 |
||
| 2102 | #define DSBPLAY_TERMINATEBY_DISTANCE 0x000000010 |
||
| 2103 | #define DSBPLAY_TERMINATEBY_PRIORITY 0x000000020 |
||
| 2104 | |||
| 2105 | #define DSBSTATUS_PLAYING 0x00000001 |
||
| 2106 | #define DSBSTATUS_BUFFERLOST 0x00000002 |
||
| 2107 | #define DSBSTATUS_LOOPING 0x00000004 |
||
| 2108 | #define DSBSTATUS_LOCHARDWARE 0x00000008 |
||
| 2109 | #define DSBSTATUS_LOCSOFTWARE 0x00000010 |
||
| 2110 | #define DSBSTATUS_TERMINATED 0x00000020 |
||
| 2111 | |||
| 2112 | #define DSBLOCK_FROMWRITECURSOR 0x00000001 |
||
| 2113 | #define DSBLOCK_ENTIREBUFFER 0x00000002 |
||
| 2114 | |||
| 2115 | #define DSBFREQUENCY_ORIGINAL 0 |
||
| 2116 | #define DSBFREQUENCY_MIN 100 |
||
| 2117 | #if DIRECTSOUND_VERSION >= 0x0900 |
||
| 2118 | #define DSBFREQUENCY_MAX 200000 |
||
| 2119 | #else |
||
| 2120 | #define DSBFREQUENCY_MAX 100000 |
||
| 2121 | #endif |
||
| 2122 | |||
| 2123 | #define DSBPAN_LEFT -10000 |
||
| 2124 | #define DSBPAN_CENTER 0 |
||
| 2125 | #define DSBPAN_RIGHT 10000 |
||
| 2126 | |||
| 2127 | #define DSBVOLUME_MIN -10000 |
||
| 2128 | #define DSBVOLUME_MAX 0 |
||
| 2129 | |||
| 2130 | #define DSBSIZE_MIN 4 |
||
| 2131 | #define DSBSIZE_MAX 0x0FFFFFFF |
||
| 2132 | #define DSBSIZE_FX_MIN 150 // NOTE: Milliseconds, not bytes |
||
| 2133 | |||
| 2134 | #define DSBNOTIFICATIONS_MAX 100000UL |
||
| 2135 | |||
| 2136 | #define DS3DMODE_NORMAL 0x00000000 |
||
| 2137 | #define DS3DMODE_HEADRELATIVE 0x00000001 |
||
| 2138 | #define DS3DMODE_DISABLE 0x00000002 |
||
| 2139 | |||
| 2140 | #define DS3D_IMMEDIATE 0x00000000 |
||
| 2141 | #define DS3D_DEFERRED 0x00000001 |
||
| 2142 | |||
| 2143 | #define DS3D_MINDISTANCEFACTOR FLT_MIN |
||
| 2144 | #define DS3D_MAXDISTANCEFACTOR FLT_MAX |
||
| 2145 | #define DS3D_DEFAULTDISTANCEFACTOR 1.0f |
||
| 2146 | |||
| 2147 | #define DS3D_MINROLLOFFFACTOR 0.0f |
||
| 2148 | #define DS3D_MAXROLLOFFFACTOR 10.0f |
||
| 2149 | #define DS3D_DEFAULTROLLOFFFACTOR 1.0f |
||
| 2150 | |||
| 2151 | #define DS3D_MINDOPPLERFACTOR 0.0f |
||
| 2152 | #define DS3D_MAXDOPPLERFACTOR 10.0f |
||
| 2153 | #define DS3D_DEFAULTDOPPLERFACTOR 1.0f |
||
| 2154 | |||
| 2155 | #define DS3D_DEFAULTMINDISTANCE 1.0f |
||
| 2156 | #define DS3D_DEFAULTMAXDISTANCE 1000000000.0f |
||
| 2157 | |||
| 2158 | #define DS3D_MINCONEANGLE 0 |
||
| 2159 | #define DS3D_MAXCONEANGLE 360 |
||
| 2160 | #define DS3D_DEFAULTCONEANGLE 360 |
||
| 2161 | |||
| 2162 | #define DS3D_DEFAULTCONEOUTSIDEVOLUME DSBVOLUME_MAX |
||
| 2163 | |||
| 2164 | // IDirectSoundCapture attributes |
||
| 2165 | |||
| 2166 | #define DSCCAPS_EMULDRIVER DSCAPS_EMULDRIVER |
||
| 2167 | #define DSCCAPS_CERTIFIED DSCAPS_CERTIFIED |
||
| 2168 | #define DSCCAPS_MULTIPLECAPTURE 0x00000001 |
||
| 2169 | |||
| 2170 | // IDirectSoundCaptureBuffer attributes |
||
| 2171 | |||
| 2172 | #define DSCBCAPS_WAVEMAPPED 0x80000000 |
||
| 2173 | #if DIRECTSOUND_VERSION >= 0x0800 |
||
| 2174 | #define DSCBCAPS_CTRLFX 0x00000200 |
||
| 2175 | #endif |
||
| 2176 | |||
| 2177 | #define DSCBLOCK_ENTIREBUFFER 0x00000001 |
||
| 2178 | |||
| 2179 | #define DSCBSTATUS_CAPTURING 0x00000001 |
||
| 2180 | #define DSCBSTATUS_LOOPING 0x00000002 |
||
| 2181 | |||
| 2182 | #define DSCBSTART_LOOPING 0x00000001 |
||
| 2183 | |||
| 2184 | #define DSBPN_OFFSETSTOP 0xFFFFFFFF |
||
| 2185 | |||
| 2186 | #define DS_CERTIFIED 0x00000000 |
||
| 2187 | #define DS_UNCERTIFIED 0x00000001 |
||
| 2188 | |||
| 2189 | // |
||
| 2190 | // Flags for the I3DL2 effects |
||
| 2191 | // |
||
| 2192 | |||
| 2193 | // |
||
| 2194 | // I3DL2 Material Presets |
||
| 2195 | // |
||
| 2196 | |||
| 2197 | enum |
||
| 2198 | { |
||
| 2199 | DSFX_I3DL2_MATERIAL_PRESET_SINGLEWINDOW, |
||
| 2200 | DSFX_I3DL2_MATERIAL_PRESET_DOUBLEWINDOW, |
||
| 2201 | DSFX_I3DL2_MATERIAL_PRESET_THINDOOR, |
||
| 2202 | DSFX_I3DL2_MATERIAL_PRESET_THICKDOOR, |
||
| 2203 | DSFX_I3DL2_MATERIAL_PRESET_WOODWALL, |
||
| 2204 | DSFX_I3DL2_MATERIAL_PRESET_BRICKWALL, |
||
| 2205 | DSFX_I3DL2_MATERIAL_PRESET_STONEWALL, |
||
| 2206 | DSFX_I3DL2_MATERIAL_PRESET_CURTAIN |
||
| 2207 | }; |
||
| 2208 | |||
| 2209 | #define I3DL2_MATERIAL_PRESET_SINGLEWINDOW -2800,0.71f |
||
| 2210 | #define I3DL2_MATERIAL_PRESET_DOUBLEWINDOW -5000,0.40f |
||
| 2211 | #define I3DL2_MATERIAL_PRESET_THINDOOR -1800,0.66f |
||
| 2212 | #define I3DL2_MATERIAL_PRESET_THICKDOOR -4400,0.64f |
||
| 2213 | #define I3DL2_MATERIAL_PRESET_WOODWALL -4000,0.50f |
||
| 2214 | #define I3DL2_MATERIAL_PRESET_BRICKWALL -5000,0.60f |
||
| 2215 | #define I3DL2_MATERIAL_PRESET_STONEWALL -6000,0.68f |
||
| 2216 | #define I3DL2_MATERIAL_PRESET_CURTAIN -1200,0.15f |
||
| 2217 | |||
| 2218 | enum |
||
| 2219 | { |
||
| 2220 | DSFX_I3DL2_ENVIRONMENT_PRESET_DEFAULT, |
||
| 2221 | DSFX_I3DL2_ENVIRONMENT_PRESET_GENERIC, |
||
| 2222 | DSFX_I3DL2_ENVIRONMENT_PRESET_PADDEDCELL, |
||
| 2223 | DSFX_I3DL2_ENVIRONMENT_PRESET_ROOM, |
||
| 2224 | DSFX_I3DL2_ENVIRONMENT_PRESET_BATHROOM, |
||
| 2225 | DSFX_I3DL2_ENVIRONMENT_PRESET_LIVINGROOM, |
||
| 2226 | DSFX_I3DL2_ENVIRONMENT_PRESET_STONEROOM, |
||
| 2227 | DSFX_I3DL2_ENVIRONMENT_PRESET_AUDITORIUM, |
||
| 2228 | DSFX_I3DL2_ENVIRONMENT_PRESET_CONCERTHALL, |
||
| 2229 | DSFX_I3DL2_ENVIRONMENT_PRESET_CAVE, |
||
| 2230 | DSFX_I3DL2_ENVIRONMENT_PRESET_ARENA, |
||
| 2231 | DSFX_I3DL2_ENVIRONMENT_PRESET_HANGAR, |
||
| 2232 | DSFX_I3DL2_ENVIRONMENT_PRESET_CARPETEDHALLWAY, |
||
| 2233 | DSFX_I3DL2_ENVIRONMENT_PRESET_HALLWAY, |
||
| 2234 | DSFX_I3DL2_ENVIRONMENT_PRESET_STONECORRIDOR, |
||
| 2235 | DSFX_I3DL2_ENVIRONMENT_PRESET_ALLEY, |
||
| 2236 | DSFX_I3DL2_ENVIRONMENT_PRESET_FOREST, |
||
| 2237 | DSFX_I3DL2_ENVIRONMENT_PRESET_CITY, |
||
| 2238 | DSFX_I3DL2_ENVIRONMENT_PRESET_MOUNTAINS, |
||
| 2239 | DSFX_I3DL2_ENVIRONMENT_PRESET_QUARRY, |
||
| 2240 | DSFX_I3DL2_ENVIRONMENT_PRESET_PLAIN, |
||
| 2241 | DSFX_I3DL2_ENVIRONMENT_PRESET_PARKINGLOT, |
||
| 2242 | DSFX_I3DL2_ENVIRONMENT_PRESET_SEWERPIPE, |
||
| 2243 | DSFX_I3DL2_ENVIRONMENT_PRESET_UNDERWATER, |
||
| 2244 | DSFX_I3DL2_ENVIRONMENT_PRESET_SMALLROOM, |
||
| 2245 | DSFX_I3DL2_ENVIRONMENT_PRESET_MEDIUMROOM, |
||
| 2246 | DSFX_I3DL2_ENVIRONMENT_PRESET_LARGEROOM, |
||
| 2247 | DSFX_I3DL2_ENVIRONMENT_PRESET_MEDIUMHALL, |
||
| 2248 | DSFX_I3DL2_ENVIRONMENT_PRESET_LARGEHALL, |
||
| 2249 | DSFX_I3DL2_ENVIRONMENT_PRESET_PLATE |
||
| 2250 | }; |
||
| 2251 | |||
| 2252 | // |
||
| 2253 | // I3DL2 Reverberation Presets Values |
||
| 2254 | // |
||
| 2255 | |||
| 2256 | #define I3DL2_ENVIRONMENT_PRESET_DEFAULT -1000, -100, 0.0f, 1.49f, 0.83f, -2602, 0.007f, 200, 0.011f, 100.0f, 100.0f, 5000.0f |
||
| 2257 | #define I3DL2_ENVIRONMENT_PRESET_GENERIC -1000, -100, 0.0f, 1.49f, 0.83f, -2602, 0.007f, 200, 0.011f, 100.0f, 100.0f, 5000.0f |
||
| 2258 | #define I3DL2_ENVIRONMENT_PRESET_PADDEDCELL -1000,-6000, 0.0f, 0.17f, 0.10f, -1204, 0.001f, 207, 0.002f, 100.0f, 100.0f, 5000.0f |
||
| 2259 | #define I3DL2_ENVIRONMENT_PRESET_ROOM -1000, -454, 0.0f, 0.40f, 0.83f, -1646, 0.002f, 53, 0.003f, 100.0f, 100.0f, 5000.0f |
||
| 2260 | #define I3DL2_ENVIRONMENT_PRESET_BATHROOM -1000,-1200, 0.0f, 1.49f, 0.54f, -370, 0.007f, 1030, 0.011f, 100.0f, 60.0f, 5000.0f |
||
| 2261 | #define I3DL2_ENVIRONMENT_PRESET_LIVINGROOM -1000,-6000, 0.0f, 0.50f, 0.10f, -1376, 0.003f, -1104, 0.004f, 100.0f, 100.0f, 5000.0f |
||
| 2262 | #define I3DL2_ENVIRONMENT_PRESET_STONEROOM -1000, -300, 0.0f, 2.31f, 0.64f, -711, 0.012f, 83, 0.017f, 100.0f, 100.0f, 5000.0f |
||
| 2263 | #define I3DL2_ENVIRONMENT_PRESET_AUDITORIUM -1000, -476, 0.0f, 4.32f, 0.59f, -789, 0.020f, -289, 0.030f, 100.0f, 100.0f, 5000.0f |
||
| 2264 | #define I3DL2_ENVIRONMENT_PRESET_CONCERTHALL -1000, -500, 0.0f, 3.92f, 0.70f, -1230, 0.020f, -2, 0.029f, 100.0f, 100.0f, 5000.0f |
||
| 2265 | #define I3DL2_ENVIRONMENT_PRESET_CAVE -1000, 0, 0.0f, 2.91f, 1.30f, -602, 0.015f, -302, 0.022f, 100.0f, 100.0f, 5000.0f |
||
| 2266 | #define I3DL2_ENVIRONMENT_PRESET_ARENA -1000, -698, 0.0f, 7.24f, 0.33f, -1166, 0.020f, 16, 0.030f, 100.0f, 100.0f, 5000.0f |
||
| 2267 | #define I3DL2_ENVIRONMENT_PRESET_HANGAR -1000,-1000, 0.0f,10.05f, 0.23f, -602, 0.020f, 198, 0.030f, 100.0f, 100.0f, 5000.0f |
||
| 2268 | #define I3DL2_ENVIRONMENT_PRESET_CARPETEDHALLWAY -1000,-4000, 0.0f, 0.30f, 0.10f, -1831, 0.002f, -1630, 0.030f, 100.0f, 100.0f, 5000.0f |
||
| 2269 | #define I3DL2_ENVIRONMENT_PRESET_HALLWAY -1000, -300, 0.0f, 1.49f, 0.59f, -1219, 0.007f, 441, 0.011f, 100.0f, 100.0f, 5000.0f |
||
| 2270 | #define I3DL2_ENVIRONMENT_PRESET_STONECORRIDOR -1000, -237, 0.0f, 2.70f, 0.79f, -1214, 0.013f, 395, 0.020f, 100.0f, 100.0f, 5000.0f |
||
| 2271 | #define I3DL2_ENVIRONMENT_PRESET_ALLEY -1000, -270, 0.0f, 1.49f, 0.86f, -1204, 0.007f, -4, 0.011f, 100.0f, 100.0f, 5000.0f |
||
| 2272 | #define I3DL2_ENVIRONMENT_PRESET_FOREST -1000,-3300, 0.0f, 1.49f, 0.54f, -2560, 0.162f, -613, 0.088f, 79.0f, 100.0f, 5000.0f |
||
| 2273 | #define I3DL2_ENVIRONMENT_PRESET_CITY -1000, -800, 0.0f, 1.49f, 0.67f, -2273, 0.007f, -2217, 0.011f, 50.0f, 100.0f, 5000.0f |
||
| 2274 | #define I3DL2_ENVIRONMENT_PRESET_MOUNTAINS -1000,-2500, 0.0f, 1.49f, 0.21f, -2780, 0.300f, -2014, 0.100f, 27.0f, 100.0f, 5000.0f |
||
| 2275 | #define I3DL2_ENVIRONMENT_PRESET_QUARRY -1000,-1000, 0.0f, 1.49f, 0.83f,-10000, 0.061f, 500, 0.025f, 100.0f, 100.0f, 5000.0f |
||
| 2276 | #define I3DL2_ENVIRONMENT_PRESET_PLAIN -1000,-2000, 0.0f, 1.49f, 0.50f, -2466, 0.179f, -2514, 0.100f, 21.0f, 100.0f, 5000.0f |
||
| 2277 | #define I3DL2_ENVIRONMENT_PRESET_PARKINGLOT -1000, 0, 0.0f, 1.65f, 1.50f, -1363, 0.008f, -1153, 0.012f, 100.0f, 100.0f, 5000.0f |
||
| 2278 | #define I3DL2_ENVIRONMENT_PRESET_SEWERPIPE -1000,-1000, 0.0f, 2.81f, 0.14f, 429, 0.014f, 648, 0.021f, 80.0f, 60.0f, 5000.0f |
||
| 2279 | #define I3DL2_ENVIRONMENT_PRESET_UNDERWATER -1000,-4000, 0.0f, 1.49f, 0.10f, -449, 0.007f, 1700, 0.011f, 100.0f, 100.0f, 5000.0f |
||
| 2280 | |||
| 2281 | // |
||
| 2282 | // Examples simulating 'musical' reverb presets |
||
| 2283 | // |
||
| 2284 | // Name Decay time Description |
||
| 2285 | // Small Room 1.1s A small size room with a length of 5m or so. |
||
| 2286 | // Medium Room 1.3s A medium size room with a length of 10m or so. |
||
| 2287 | // Large Room 1.5s A large size room suitable for live performances. |
||
| 2288 | // Medium Hall 1.8s A medium size concert hall. |
||
| 2289 | // Large Hall 1.8s A large size concert hall suitable for a full orchestra. |
||
| 2290 | // Plate 1.3s A plate reverb simulation. |
||
| 2291 | // |
||
| 2292 | |||
| 2293 | #define I3DL2_ENVIRONMENT_PRESET_SMALLROOM -1000, -600, 0.0f, 1.10f, 0.83f, -400, 0.005f, 500, 0.010f, 100.0f, 100.0f, 5000.0f |
||
| 2294 | #define I3DL2_ENVIRONMENT_PRESET_MEDIUMROOM -1000, -600, 0.0f, 1.30f, 0.83f, -1000, 0.010f, -200, 0.020f, 100.0f, 100.0f, 5000.0f |
||
| 2295 | #define I3DL2_ENVIRONMENT_PRESET_LARGEROOM -1000, -600, 0.0f, 1.50f, 0.83f, -1600, 0.020f, -1000, 0.040f, 100.0f, 100.0f, 5000.0f |
||
| 2296 | #define I3DL2_ENVIRONMENT_PRESET_MEDIUMHALL -1000, -600, 0.0f, 1.80f, 0.70f, -1300, 0.015f, -800, 0.030f, 100.0f, 100.0f, 5000.0f |
||
| 2297 | #define I3DL2_ENVIRONMENT_PRESET_LARGEHALL -1000, -600, 0.0f, 1.80f, 0.70f, -2000, 0.030f, -1400, 0.060f, 100.0f, 100.0f, 5000.0f |
||
| 2298 | #define I3DL2_ENVIRONMENT_PRESET_PLATE -1000, -200, 0.0f, 1.30f, 0.90f, 0, 0.002f, 0, 0.010f, 100.0f, 75.0f, 5000.0f |
||
| 2299 | |||
| 2300 | // |
||
| 2301 | // DirectSound3D Algorithms |
||
| 2302 | // |
||
| 2303 | |||
| 2304 | // Default DirectSound3D algorithm {00000000-0000-0000-0000-000000000000} |
||
| 2305 | #define DS3DALG_DEFAULT GUID_NULL |
||
| 2306 | |||
| 2307 | // No virtualization (Pan3D) {C241333F-1C1B-11d2-94F5-00C04FC28ACA} |
||
| 2308 | DEFINE_GUID(DS3DALG_NO_VIRTUALIZATION, 0xc241333f, 0x1c1b, 0x11d2, 0x94, 0xf5, 0x0, 0xc0, 0x4f, 0xc2, 0x8a, 0xca); |
||
| 2309 | |||
| 2310 | // High-quality HRTF algorithm {C2413340-1C1B-11d2-94F5-00C04FC28ACA} |
||
| 2311 | DEFINE_GUID(DS3DALG_HRTF_FULL, 0xc2413340, 0x1c1b, 0x11d2, 0x94, 0xf5, 0x0, 0xc0, 0x4f, 0xc2, 0x8a, 0xca); |
||
| 2312 | |||
| 2313 | // Lower-quality HRTF algorithm {C2413342-1C1B-11d2-94F5-00C04FC28ACA} |
||
| 2314 | DEFINE_GUID(DS3DALG_HRTF_LIGHT, 0xc2413342, 0x1c1b, 0x11d2, 0x94, 0xf5, 0x0, 0xc0, 0x4f, 0xc2, 0x8a, 0xca); |
||
| 2315 | |||
| 2316 | |||
| 2317 | #if DIRECTSOUND_VERSION >= 0x0800 |
||
| 2318 | |||
| 2319 | // |
||
| 2320 | // DirectSound Internal Effect Algorithms |
||
| 2321 | // |
||
| 2322 | |||
| 2323 | |||
| 2324 | // Gargle {DAFD8210-5711-4B91-9FE3-F75B7AE279BF} |
||
| 2325 | DEFINE_GUID(GUID_DSFX_STANDARD_GARGLE, 0xdafd8210, 0x5711, 0x4b91, 0x9f, 0xe3, 0xf7, 0x5b, 0x7a, 0xe2, 0x79, 0xbf); |
||
| 2326 | |||
| 2327 | // Chorus {EFE6629C-81F7-4281-BD91-C9D604A95AF6} |
||
| 2328 | DEFINE_GUID(GUID_DSFX_STANDARD_CHORUS, 0xefe6629c, 0x81f7, 0x4281, 0xbd, 0x91, 0xc9, 0xd6, 0x04, 0xa9, 0x5a, 0xf6); |
||
| 2329 | |||
| 2330 | // Flanger {EFCA3D92-DFD8-4672-A603-7420894BAD98} |
||
| 2331 | DEFINE_GUID(GUID_DSFX_STANDARD_FLANGER, 0xefca3d92, 0xdfd8, 0x4672, 0xa6, 0x03, 0x74, 0x20, 0x89, 0x4b, 0xad, 0x98); |
||
| 2332 | |||
| 2333 | // Echo/Delay {EF3E932C-D40B-4F51-8CCF-3F98F1B29D5D} |
||
| 2334 | DEFINE_GUID(GUID_DSFX_STANDARD_ECHO, 0xef3e932c, 0xd40b, 0x4f51, 0x8c, 0xcf, 0x3f, 0x98, 0xf1, 0xb2, 0x9d, 0x5d); |
||
| 2335 | |||
| 2336 | // Distortion {EF114C90-CD1D-484E-96E5-09CFAF912A21} |
||
| 2337 | DEFINE_GUID(GUID_DSFX_STANDARD_DISTORTION, 0xef114c90, 0xcd1d, 0x484e, 0x96, 0xe5, 0x09, 0xcf, 0xaf, 0x91, 0x2a, 0x21); |
||
| 2338 | |||
| 2339 | // Compressor/Limiter {EF011F79-4000-406D-87AF-BFFB3FC39D57} |
||
| 2340 | DEFINE_GUID(GUID_DSFX_STANDARD_COMPRESSOR, 0xef011f79, 0x4000, 0x406d, 0x87, 0xaf, 0xbf, 0xfb, 0x3f, 0xc3, 0x9d, 0x57); |
||
| 2341 | |||
| 2342 | // Parametric Equalization {120CED89-3BF4-4173-A132-3CB406CF3231} |
||
| 2343 | DEFINE_GUID(GUID_DSFX_STANDARD_PARAMEQ, 0x120ced89, 0x3bf4, 0x4173, 0xa1, 0x32, 0x3c, 0xb4, 0x06, 0xcf, 0x32, 0x31); |
||
| 2344 | |||
| 2345 | // I3DL2 Environmental Reverberation: Reverb (Listener) Effect {EF985E71-D5C7-42D4-BA4D-2D073E2E96F4} |
||
| 2346 | DEFINE_GUID(GUID_DSFX_STANDARD_I3DL2REVERB, 0xef985e71, 0xd5c7, 0x42d4, 0xba, 0x4d, 0x2d, 0x07, 0x3e, 0x2e, 0x96, 0xf4); |
||
| 2347 | |||
| 2348 | // Waves Reverberation {87FC0268-9A55-4360-95AA-004A1D9DE26C} |
||
| 2349 | DEFINE_GUID(GUID_DSFX_WAVES_REVERB, 0x87fc0268, 0x9a55, 0x4360, 0x95, 0xaa, 0x00, 0x4a, 0x1d, 0x9d, 0xe2, 0x6c); |
||
| 2350 | |||
| 2351 | // |
||
| 2352 | // DirectSound Capture Effect Algorithms |
||
| 2353 | // |
||
| 2354 | |||
| 2355 | |||
| 2356 | // Acoustic Echo Canceller {BF963D80-C559-11D0-8A2B-00A0C9255AC1} |
||
| 2357 | // Matches KSNODETYPE_ACOUSTIC_ECHO_CANCEL in ksmedia.h |
||
| 2358 | DEFINE_GUID(GUID_DSCFX_CLASS_AEC, 0xBF963D80L, 0xC559, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1); |
||
| 2359 | |||
| 2360 | // Microsoft AEC {CDEBB919-379A-488a-8765-F53CFD36DE40} |
||
| 2361 | DEFINE_GUID(GUID_DSCFX_MS_AEC, 0xcdebb919, 0x379a, 0x488a, 0x87, 0x65, 0xf5, 0x3c, 0xfd, 0x36, 0xde, 0x40); |
||
| 2362 | |||
| 2363 | // System AEC {1C22C56D-9879-4f5b-A389-27996DDC2810} |
||
| 2364 | DEFINE_GUID(GUID_DSCFX_SYSTEM_AEC, 0x1c22c56d, 0x9879, 0x4f5b, 0xa3, 0x89, 0x27, 0x99, 0x6d, 0xdc, 0x28, 0x10); |
||
| 2365 | |||
| 2366 | // Noise Supression {E07F903F-62FD-4e60-8CDD-DEA7236665B5} |
||
| 2367 | // Matches KSNODETYPE_NOISE_SUPPRESS in post Windows ME DDK's ksmedia.h |
||
| 2368 | DEFINE_GUID(GUID_DSCFX_CLASS_NS, 0xe07f903f, 0x62fd, 0x4e60, 0x8c, 0xdd, 0xde, 0xa7, 0x23, 0x66, 0x65, 0xb5); |
||
| 2369 | |||
| 2370 | // Microsoft Noise Suppresion {11C5C73B-66E9-4ba1-A0BA-E814C6EED92D} |
||
| 2371 | DEFINE_GUID(GUID_DSCFX_MS_NS, 0x11c5c73b, 0x66e9, 0x4ba1, 0xa0, 0xba, 0xe8, 0x14, 0xc6, 0xee, 0xd9, 0x2d); |
||
| 2372 | |||
| 2373 | // System Noise Suppresion {5AB0882E-7274-4516-877D-4EEE99BA4FD0} |
||
| 2374 | DEFINE_GUID(GUID_DSCFX_SYSTEM_NS, 0x5ab0882e, 0x7274, 0x4516, 0x87, 0x7d, 0x4e, 0xee, 0x99, 0xba, 0x4f, 0xd0); |
||
| 2375 | |||
| 2376 | #endif // DIRECTSOUND_VERSION >= 0x0800 |
||
| 2377 | |||
| 2378 | #endif // __DSOUND_INCLUDED__ |
||
| 2379 | |||
| 2380 | |||
| 2381 | |||
| 2382 | #ifdef __cplusplus |
||
| 2383 | }; |
||
| 2384 | #endif // __cplusplus |
||
| 2385 |