Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) the Wine project |
| 3 | * |
| 4 | * This library is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU Lesser General Public |
| 6 | * License as published by the Free Software Foundation; either |
| 7 | * version 2.1 of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This library is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | * Lesser General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Lesser General Public |
| 15 | * License along with this library; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 17 | */ |
| 18 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 19 | #ifndef __WINE_DSOUND_H |
| 20 | #define __WINE_DSOUND_H |
| 21 | |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 22 | #ifndef DIRECTSOUND_VERSION |
Robert Reif | 7dd6374 | 2004-01-09 22:06:54 +0000 | [diff] [blame] | 23 | #define DIRECTSOUND_VERSION 0x0900 |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 24 | #endif |
| 25 | |
Alexandre Julliard | e37c6e1 | 2003-09-05 23:08:26 +0000 | [diff] [blame] | 26 | #define COM_NO_WINDOWS_H |
| 27 | #include <objbase.h> |
| 28 | #include <float.h> |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 29 | |
Patrik Stridvall | 14da7b1 | 1999-06-12 10:53:06 +0000 | [diff] [blame] | 30 | #ifdef __cplusplus |
| 31 | extern "C" { |
| 32 | #endif /* defined(__cplusplus) */ |
| 33 | |
Alexandre Julliard | e37c6e1 | 2003-09-05 23:08:26 +0000 | [diff] [blame] | 34 | #ifndef DX_SHARED_DEFINES |
| 35 | |
| 36 | typedef float D3DVALUE, *LPD3DVALUE; |
| 37 | |
| 38 | #ifndef D3DCOLOR_DEFINED |
| 39 | typedef DWORD D3DCOLOR, *LPD3DCOLOR; |
| 40 | #define D3DCOLOR_DEFINED |
| 41 | #endif |
| 42 | |
| 43 | #ifndef D3DVECTOR_DEFINED |
| 44 | typedef struct _D3DVECTOR { |
| 45 | float x; |
| 46 | float y; |
| 47 | float z; |
| 48 | } D3DVECTOR, *LPD3DVECTOR; |
| 49 | #define D3DVECTOR_DEFINED |
| 50 | #endif |
| 51 | |
| 52 | #define DX_SHARED_DEFINES |
| 53 | #endif /* DX_SHARED_DEFINES */ |
| 54 | |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 55 | /***************************************************************************** |
| 56 | * Predeclare the interfaces |
| 57 | */ |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 58 | DEFINE_GUID(CLSID_DirectSound, 0x47d4d946, 0x62e8, 0x11cf, 0x93, 0xbc, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00); |
| 59 | DEFINE_GUID(CLSID_DirectSound8, 0x3901cc3f, 0x84b5, 0x4fa4, 0xba, 0x35, 0xaa, 0x81, 0x72, 0xb8, 0xa0, 0x9b); |
| 60 | DEFINE_GUID(CLSID_DirectSoundCapture, 0xb0210780, 0x89cd, 0x11d0, 0xaf, 0x08, 0x00, 0xa0, 0xc9, 0x25, 0xcd, 0x16); |
| 61 | DEFINE_GUID(CLSID_DirectSoundCapture8, 0xe4bcac13, 0x7f99, 0x4908, 0x9a, 0x8e, 0x74, 0xe3, 0xbf, 0x24, 0xb6, 0xe1); |
| 62 | DEFINE_GUID(CLSID_DirectSoundFullDuplex,0xfea4300c, 0x7959, 0x4147, 0xb2, 0x6a, 0x23, 0x77, 0xb9, 0xe7, 0xa9, 0x1d); |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 63 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 64 | DEFINE_GUID(IID_IDirectSound, 0x279AFA83,0x4981,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60); |
Robert Reif | f0006c8 | 2004-07-06 19:41:57 +0000 | [diff] [blame] | 65 | typedef struct IDirectSound IDirectSound,*LPDIRECTSOUND,**LPLPDIRECTSOUND; |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 66 | |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 67 | DEFINE_GUID(IID_IDirectSound8, 0xC50A7E93,0xF395,0x4834,0x9E,0xF6,0x7F,0xA9,0x9D,0xE5,0x09,0x66); |
Robert Reif | f0006c8 | 2004-07-06 19:41:57 +0000 | [diff] [blame] | 68 | typedef struct IDirectSound8 IDirectSound8,*LPDIRECTSOUND8,**LPLPDIRECTSOUND8; |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 69 | |
Vincent Béron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 70 | DEFINE_GUID(IID_IDirectSoundBuffer, 0x279AFA85,0x4981,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60); |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 71 | typedef struct IDirectSoundBuffer IDirectSoundBuffer,*LPDIRECTSOUNDBUFFER,**LPLPDIRECTSOUNDBUFFER; |
| 72 | |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 73 | DEFINE_GUID(IID_IDirectSoundBuffer8, 0x6825A449,0x7524,0x4D82,0x92,0x0F,0x50,0xE3,0x6A,0xB3,0xAB,0x1E); |
| 74 | typedef struct IDirectSoundBuffer8 IDirectSoundBuffer8,*LPDIRECTSOUNDBUFFER8,**LPLPDIRECTSOUNDBUFFER8; |
| 75 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 76 | DEFINE_GUID(IID_IDirectSoundNotify, 0xB0210783,0x89cd,0x11d0,0xAF,0x08,0x00,0xA0,0xC9,0x25,0xCD,0x16); |
Robert Reif | f0006c8 | 2004-07-06 19:41:57 +0000 | [diff] [blame] | 77 | typedef struct IDirectSoundNotify IDirectSoundNotify,*LPDIRECTSOUNDNOTIFY,**LPLPDIRECTSOUNDNOTIFY; |
Robert Reif | acd4bc0 | 2003-04-03 18:02:39 +0000 | [diff] [blame] | 78 | #define IID_IDirectSoundNotify8 IID_IDirectSoundNotify |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 79 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 80 | DEFINE_GUID(IID_IDirectSound3DListener, 0x279AFA84,0x4981,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60); |
Robert Reif | f0006c8 | 2004-07-06 19:41:57 +0000 | [diff] [blame] | 81 | typedef struct IDirectSound3DListener IDirectSound3DListener,*LPDIRECTSOUND3DLISTENER,**LPLPDIRECTSOUND3DLISTENER; |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 82 | |
Vincent Béron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 83 | DEFINE_GUID(IID_IDirectSound3DBuffer, 0x279AFA86,0x4981,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60); |
Robert Reif | f0006c8 | 2004-07-06 19:41:57 +0000 | [diff] [blame] | 84 | typedef struct IDirectSound3DBuffer IDirectSound3DBuffer,*LPDIRECTSOUND3DBUFFER,**LPLPDIRECTSOUND3DBUFFER; |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 85 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 86 | DEFINE_GUID(IID_IDirectSoundCapture, 0xB0210781,0x89CD,0x11D0,0xAF,0x08,0x00,0xA0,0xC9,0x25,0xCD,0x16); |
Robert Reif | f0006c8 | 2004-07-06 19:41:57 +0000 | [diff] [blame] | 87 | typedef struct IDirectSoundCapture IDirectSoundCapture,*LPDIRECTSOUNDCAPTURE,**LPLPDIRECTSOUNDCAPTURE; |
Robert Reif | acd4bc0 | 2003-04-03 18:02:39 +0000 | [diff] [blame] | 88 | #define IID_IDirectSoundCapture8 IID_IDirectSoundCapture |
Robert Reif | f0006c8 | 2004-07-06 19:41:57 +0000 | [diff] [blame] | 89 | typedef struct IDirectSoundCapture IDirectSoundCapture8,*LPDIRECTSOUNDCAPTURE8,**LPLPDIRECTSOUNDCAPTURE8; |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 90 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 91 | DEFINE_GUID(IID_IDirectSoundCaptureBuffer,0xB0210782,0x89CD,0x11D0,0xAF,0x08,0x00,0xA0,0xC9,0x25,0xCD,0x16); |
Robert Reif | f0006c8 | 2004-07-06 19:41:57 +0000 | [diff] [blame] | 92 | typedef struct IDirectSoundCaptureBuffer IDirectSoundCaptureBuffer,*LPDIRECTSOUNDCAPTUREBUFFER,**LPLPDIRECTSOUNDCAPTUREBUFFER; |
Vincent Béron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 93 | |
Robert Reif | bc362fd | 2003-02-24 20:37:50 +0000 | [diff] [blame] | 94 | DEFINE_GUID(IID_IDirectSoundCaptureBuffer8,0x00990DF4,0x0DBB,0x4872,0x83,0x3E,0x6D,0x30,0x3E,0x80,0xAE,0xB6); |
| 95 | typedef struct IDirectSoundCaptureBuffer8 IDirectSoundCaptureBuffer8,*LPDIRECTSOUNDCAPTUREBUFFER8,**LPLPDIRECTSOUNDCAPTUREBUFFER8; |
| 96 | |
| 97 | DEFINE_GUID(IID_IDirectSoundFullDuplex, 0xEDCB4C7A,0xDAAB,0x4216,0xA4,0x2E,0x6C,0x50,0x59,0x6D,0xDC,0x1D); |
Robert Reif | f0006c8 | 2004-07-06 19:41:57 +0000 | [diff] [blame] | 98 | typedef struct IDirectSoundFullDuplex IDirectSoundFullDuplex,*LPDIRECTSOUNDFULLDUPLEX,**LPLPDIRECTSOUNDFULLDUPLEX; |
Robert Reif | acd4bc0 | 2003-04-03 18:02:39 +0000 | [diff] [blame] | 99 | #define IID_IDirectSoundFullDuplex8 IID_IDirectSoundFullDuplex |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 100 | |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 101 | DEFINE_GUID(DSDEVID_DefaultPlayback, 0xDEF00000,0x9C6D,0x47Ed,0xAA,0xF1,0x4D,0xDA,0x8F,0x2B,0x5C,0x03); |
| 102 | DEFINE_GUID(DSDEVID_DefaultCapture, 0xDEF00001,0x9C6D,0x47Ed,0xAA,0xF1,0x4D,0xDA,0x8F,0x2B,0x5C,0x03); |
| 103 | DEFINE_GUID(DSDEVID_DefaultVoicePlayback,0xDEF00002,0x9C6D,0x47Ed,0xAA,0xF1,0x4D,0xDA,0x8F,0x2B,0x5C,0x03); |
| 104 | DEFINE_GUID(DSDEVID_DefaultVoiceCapture, 0xDEF00003,0x9C6D,0x47ED,0xAA,0xF1,0x4D,0xDA,0x8F,0x2B,0x5C,0x03); |
| 105 | |
Robert Reif | bc362fd | 2003-02-24 20:37:50 +0000 | [diff] [blame] | 106 | DEFINE_GUID(DSDEVID_WinePlayback, 0x40316A1D,0x605B,0xD611,0x87,0xC6,0x00,0x80,0xAD,0x00,0x02,0xFE); |
Alexandre Julliard | 140e722 | 2002-05-05 19:40:57 +0000 | [diff] [blame] | 107 | |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 108 | #define _FACDS 0x878 |
| 109 | #define MAKE_DSHRESULT(code) MAKE_HRESULT(1,_FACDS,code) |
| 110 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 111 | #define DS_OK 0 |
Robert Reif | 7dd6374 | 2004-01-09 22:06:54 +0000 | [diff] [blame] | 112 | #define DS_NO_VIRTUALIZATION MAKE_HRESULT(0, _FACDS, 10) |
Robert Reif | e7310f4 | 2004-02-27 21:29:10 +0000 | [diff] [blame] | 113 | #define DS_INCOMPLETE MAKE_HRESULT(0, _FACDS, 20) |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 114 | #define DSERR_ALLOCATED MAKE_DSHRESULT(10) |
| 115 | #define DSERR_CONTROLUNAVAIL MAKE_DSHRESULT(30) |
| 116 | #define DSERR_INVALIDPARAM E_INVALIDARG |
| 117 | #define DSERR_INVALIDCALL MAKE_DSHRESULT(50) |
| 118 | #define DSERR_GENERIC E_FAIL |
| 119 | #define DSERR_PRIOLEVELNEEDED MAKE_DSHRESULT(70) |
| 120 | #define DSERR_OUTOFMEMORY E_OUTOFMEMORY |
| 121 | #define DSERR_BADFORMAT MAKE_DSHRESULT(100) |
| 122 | #define DSERR_UNSUPPORTED E_NOTIMPL |
| 123 | #define DSERR_NODRIVER MAKE_DSHRESULT(120) |
| 124 | #define DSERR_ALREADYINITIALIZED MAKE_DSHRESULT(130) |
| 125 | #define DSERR_NOAGGREGATION CLASS_E_NOAGGREGATION |
| 126 | #define DSERR_BUFFERLOST MAKE_DSHRESULT(150) |
| 127 | #define DSERR_OTHERAPPHASPRIO MAKE_DSHRESULT(160) |
| 128 | #define DSERR_UNINITIALIZED MAKE_DSHRESULT(170) |
Robert Reif | 7dd6374 | 2004-01-09 22:06:54 +0000 | [diff] [blame] | 129 | #define DSERR_NOINTERFACE E_NOINTERFACE |
| 130 | #define DSERR_ACCESSDENIED E_ACCESSDENIED |
| 131 | #define DSERR_BUFFERTOOSMALL MAKE_DSHRESULT(180) |
| 132 | #define DSERR_DS8_REQUIRED MAKE_DSHRESULT(190) |
| 133 | #define DSERR_SENDLOOP MAKE_DSHRESULT(200) |
| 134 | #define DSERR_BADSENDBUFFERGUID MAKE_DSHRESULT(210) |
| 135 | #define DSERR_FXUNAVAILABLE MAKE_DSHRESULT(220) |
| 136 | #define DSERR_OBJECTNOTFOUND MAKE_DSHRESULT(4449) |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 137 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 138 | #define DSCAPS_PRIMARYMONO 0x00000001 |
| 139 | #define DSCAPS_PRIMARYSTEREO 0x00000002 |
| 140 | #define DSCAPS_PRIMARY8BIT 0x00000004 |
| 141 | #define DSCAPS_PRIMARY16BIT 0x00000008 |
| 142 | #define DSCAPS_CONTINUOUSRATE 0x00000010 |
| 143 | #define DSCAPS_EMULDRIVER 0x00000020 |
| 144 | #define DSCAPS_CERTIFIED 0x00000040 |
| 145 | #define DSCAPS_SECONDARYMONO 0x00000100 |
| 146 | #define DSCAPS_SECONDARYSTEREO 0x00000200 |
| 147 | #define DSCAPS_SECONDARY8BIT 0x00000400 |
| 148 | #define DSCAPS_SECONDARY16BIT 0x00000800 |
| 149 | |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 150 | #define DSSCL_NORMAL 1 |
| 151 | #define DSSCL_PRIORITY 2 |
| 152 | #define DSSCL_EXCLUSIVE 3 |
| 153 | #define DSSCL_WRITEPRIMARY 4 |
| 154 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 155 | typedef struct _DSCAPS |
| 156 | { |
| 157 | DWORD dwSize; |
| 158 | DWORD dwFlags; |
| 159 | DWORD dwMinSecondarySampleRate; |
| 160 | DWORD dwMaxSecondarySampleRate; |
| 161 | DWORD dwPrimaryBuffers; |
| 162 | DWORD dwMaxHwMixingAllBuffers; |
| 163 | DWORD dwMaxHwMixingStaticBuffers; |
| 164 | DWORD dwMaxHwMixingStreamingBuffers; |
| 165 | DWORD dwFreeHwMixingAllBuffers; |
| 166 | DWORD dwFreeHwMixingStaticBuffers; |
| 167 | DWORD dwFreeHwMixingStreamingBuffers; |
| 168 | DWORD dwMaxHw3DAllBuffers; |
| 169 | DWORD dwMaxHw3DStaticBuffers; |
| 170 | DWORD dwMaxHw3DStreamingBuffers; |
| 171 | DWORD dwFreeHw3DAllBuffers; |
| 172 | DWORD dwFreeHw3DStaticBuffers; |
| 173 | DWORD dwFreeHw3DStreamingBuffers; |
| 174 | DWORD dwTotalHwMemBytes; |
| 175 | DWORD dwFreeHwMemBytes; |
| 176 | DWORD dwMaxContigFreeHwMemBytes; |
| 177 | DWORD dwUnlockTransferRateHwBuffers; |
| 178 | DWORD dwPlayCpuOverheadSwBuffers; |
| 179 | DWORD dwReserved1; |
| 180 | DWORD dwReserved2; |
| 181 | } DSCAPS,*LPDSCAPS; |
Robert Reif | 7dd6374 | 2004-01-09 22:06:54 +0000 | [diff] [blame] | 182 | typedef const DSCAPS *LPCDSCAPS; |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 183 | |
Robert Reif | 7dd6374 | 2004-01-09 22:06:54 +0000 | [diff] [blame] | 184 | #define DSBPLAY_LOOPING 0x00000001 |
| 185 | #define DSBPLAY_LOCHARDWARE 0x00000002 |
| 186 | #define DSBPLAY_LOCSOFTWARE 0x00000004 |
| 187 | #define DSBPLAY_TERMINATEBY_TIME 0x00000008 |
| 188 | #define DSBPLAY_TERMINATEBY_DISTANCE 0x000000010 |
| 189 | #define DSBPLAY_TERMINATEBY_PRIORITY 0x000000020 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 190 | |
| 191 | #define DSBSTATUS_PLAYING 0x00000001 |
| 192 | #define DSBSTATUS_BUFFERLOST 0x00000002 |
| 193 | #define DSBSTATUS_LOOPING 0x00000004 |
Robert Reif | 7dd6374 | 2004-01-09 22:06:54 +0000 | [diff] [blame] | 194 | #define DSBSTATUS_LOCHARDWARE 0x00000008 |
| 195 | #define DSBSTATUS_LOCSOFTWARE 0x00000010 |
| 196 | #define DSBSTATUS_TERMINATED 0x00000020 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 197 | |
Robert Riggs | 88bd980 | 1998-11-22 15:09:33 +0000 | [diff] [blame] | 198 | #define DSBLOCK_FROMWRITECURSOR 0x00000001 |
| 199 | #define DSBLOCK_ENTIREBUFFER 0x00000002 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 200 | |
| 201 | #define DSBCAPS_PRIMARYBUFFER 0x00000001 |
| 202 | #define DSBCAPS_STATIC 0x00000002 |
| 203 | #define DSBCAPS_LOCHARDWARE 0x00000004 |
| 204 | #define DSBCAPS_LOCSOFTWARE 0x00000008 |
Robert Riggs | 88bd980 | 1998-11-22 15:09:33 +0000 | [diff] [blame] | 205 | #define DSBCAPS_CTRL3D 0x00000010 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 206 | #define DSBCAPS_CTRLFREQUENCY 0x00000020 |
| 207 | #define DSBCAPS_CTRLPAN 0x00000040 |
| 208 | #define DSBCAPS_CTRLVOLUME 0x00000080 |
Robert Reif | 7dd6374 | 2004-01-09 22:06:54 +0000 | [diff] [blame] | 209 | #define DSBCAPS_CTRLDEFAULT 0x000000E0 /* Pan + volume + frequency. */ |
Robert Riggs | 88bd980 | 1998-11-22 15:09:33 +0000 | [diff] [blame] | 210 | #define DSBCAPS_CTRLPOSITIONNOTIFY 0x00000100 |
Raphael Junqueira | 493660a | 2003-10-27 22:08:37 +0000 | [diff] [blame] | 211 | #define DSBCAPS_CTRLFX 0x00000200 |
Robert Riggs | 88bd980 | 1998-11-22 15:09:33 +0000 | [diff] [blame] | 212 | #define DSBCAPS_CTRLALL 0x000001F0 /* All control capabilities */ |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 213 | #define DSBCAPS_STICKYFOCUS 0x00004000 |
Robert Riggs | 88bd980 | 1998-11-22 15:09:33 +0000 | [diff] [blame] | 214 | #define DSBCAPS_GLOBALFOCUS 0x00008000 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 215 | #define DSBCAPS_GETCURRENTPOSITION2 0x00010000 /* More accurate play cursor under emulation*/ |
Robert Riggs | 88bd980 | 1998-11-22 15:09:33 +0000 | [diff] [blame] | 216 | #define DSBCAPS_MUTE3DATMAXDISTANCE 0x00020000 |
Robert Reif | 7dd6374 | 2004-01-09 22:06:54 +0000 | [diff] [blame] | 217 | #define DSBCAPS_LOCDEFER 0x00040000 |
Robert Riggs | 88bd980 | 1998-11-22 15:09:33 +0000 | [diff] [blame] | 218 | |
Ove Kaaven | fdebace | 2001-09-10 23:08:11 +0000 | [diff] [blame] | 219 | #define DSBSIZE_MIN 4 |
| 220 | #define DSBSIZE_MAX 0xFFFFFFF |
Robert Riggs | 88bd980 | 1998-11-22 15:09:33 +0000 | [diff] [blame] | 221 | #define DSBPAN_LEFT -10000 |
Robert Reif | 7dd6374 | 2004-01-09 22:06:54 +0000 | [diff] [blame] | 222 | #define DSBPAN_CENTER 0 |
Robert Riggs | 88bd980 | 1998-11-22 15:09:33 +0000 | [diff] [blame] | 223 | #define DSBPAN_RIGHT 10000 |
| 224 | #define DSBVOLUME_MAX 0 |
| 225 | #define DSBVOLUME_MIN -10000 |
| 226 | #define DSBFREQUENCY_MIN 100 |
Robert Reif | 7dd6374 | 2004-01-09 22:06:54 +0000 | [diff] [blame] | 227 | #define DSBFREQUENCY_MAX 200000 |
Robert Riggs | 88bd980 | 1998-11-22 15:09:33 +0000 | [diff] [blame] | 228 | #define DSBFREQUENCY_ORIGINAL 0 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 229 | |
| 230 | typedef struct _DSBCAPS |
| 231 | { |
| 232 | DWORD dwSize; |
| 233 | DWORD dwFlags; |
| 234 | DWORD dwBufferBytes; |
| 235 | DWORD dwUnlockTransferRate; |
| 236 | DWORD dwPlayCpuOverhead; |
| 237 | } DSBCAPS,*LPDSBCAPS; |
Robert Reif | 7dd6374 | 2004-01-09 22:06:54 +0000 | [diff] [blame] | 238 | typedef const DSBCAPS *LPCDSBCAPS; |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 239 | |
| 240 | #define DSSCL_NORMAL 1 |
| 241 | #define DSSCL_PRIORITY 2 |
| 242 | #define DSSCL_EXCLUSIVE 3 |
| 243 | #define DSSCL_WRITEPRIMARY 4 |
| 244 | |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 245 | typedef struct _DSEFFECTDESC |
| 246 | { |
| 247 | DWORD dwSize; |
| 248 | DWORD dwFlags; |
| 249 | GUID guidDSFXClass; |
| 250 | DWORD_PTR dwReserved1; |
| 251 | DWORD_PTR dwReserved2; |
| 252 | } DSEFFECTDESC,*LPDSEFFECTDESC; |
| 253 | typedef const DSEFFECTDESC *LPCDSEFFECTDESC; |
| 254 | |
| 255 | #define DSFX_LOCHARDWARE 0x00000001 |
| 256 | #define DSFX_LOCSOFTWARE 0x00000002 |
| 257 | |
| 258 | enum |
| 259 | { |
| 260 | DSFXR_PRESENT, |
| 261 | DSFXR_LOCHARDWARE, |
| 262 | DSFXR_LOCSOFTWARE, |
| 263 | DSFXR_UNALLOCATED, |
| 264 | DSFXR_FAILED, |
| 265 | DSFXR_UNKNOWN, |
| 266 | DSFXR_SENDLOOP |
| 267 | }; |
| 268 | |
Robert Reif | dbb03ec | 2004-04-19 02:58:45 +0000 | [diff] [blame] | 269 | typedef struct _DSBUFFERDESC1 |
| 270 | { |
| 271 | DWORD dwSize; |
| 272 | DWORD dwFlags; |
| 273 | DWORD dwBufferBytes; |
| 274 | DWORD dwReserved; |
| 275 | LPWAVEFORMATEX lpwfxFormat; |
| 276 | } DSBUFFERDESC1,*LPDSBUFFERDESC1; |
| 277 | typedef const DSBUFFERDESC1 *LPCDSBUFFERDESC1; |
| 278 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 279 | typedef struct _DSBUFFERDESC |
| 280 | { |
| 281 | DWORD dwSize; |
| 282 | DWORD dwFlags; |
| 283 | DWORD dwBufferBytes; |
| 284 | DWORD dwReserved; |
| 285 | LPWAVEFORMATEX lpwfxFormat; |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 286 | GUID guid3DAlgorithm; |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 287 | } DSBUFFERDESC,*LPDSBUFFERDESC; |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 288 | typedef const DSBUFFERDESC *LPCDSBUFFERDESC; |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 289 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 290 | typedef struct _DSBPOSITIONNOTIFY |
| 291 | { |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 292 | DWORD dwOffset; |
| 293 | HANDLE hEventNotify; |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 294 | } DSBPOSITIONNOTIFY,*LPDSBPOSITIONNOTIFY; |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 295 | typedef const DSBPOSITIONNOTIFY *LPCDSBPOSITIONNOTIFY; |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 296 | |
| 297 | #define DSSPEAKER_HEADPHONE 1 |
| 298 | #define DSSPEAKER_MONO 2 |
| 299 | #define DSSPEAKER_QUAD 3 |
| 300 | #define DSSPEAKER_STEREO 4 |
| 301 | #define DSSPEAKER_SURROUND 5 |
Robert Reif | 7dd6374 | 2004-01-09 22:06:54 +0000 | [diff] [blame] | 302 | #define DSSPEAKER_5POINT1 6 |
| 303 | #define DSSPEAKER_7POINT1 7 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 304 | |
Marcus Meissner | 73458b0 | 1998-12-26 12:54:29 +0000 | [diff] [blame] | 305 | #define DSSPEAKER_GEOMETRY_MIN 0x00000005 /* 5 degrees */ |
| 306 | #define DSSPEAKER_GEOMETRY_NARROW 0x0000000A /* 10 degrees */ |
| 307 | #define DSSPEAKER_GEOMETRY_WIDE 0x00000014 /* 20 degrees */ |
| 308 | #define DSSPEAKER_GEOMETRY_MAX 0x000000B4 /* 180 degrees */ |
Robert Riggs | b995012 | 1998-12-01 12:57:31 +0000 | [diff] [blame] | 309 | |
Robert Reif | 76a5e0a | 2003-08-28 19:38:29 +0000 | [diff] [blame] | 310 | #define DSSPEAKER_COMBINED(c, g) ((DWORD)(((BYTE)(c)) | ((DWORD)((BYTE)(g))) << 16)) |
| 311 | #define DSSPEAKER_CONFIG(a) ((BYTE)(a)) |
| 312 | #define DSSPEAKER_GEOMETRY(a) ((BYTE)(((DWORD)(a) >> 16) & 0x00FF)) |
| 313 | |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 314 | #define DS_CERTIFIED 0x00000000 |
| 315 | #define DS_UNCERTIFIED 0x00000001 |
| 316 | |
Robert Reif | 7dd6374 | 2004-01-09 22:06:54 +0000 | [diff] [blame] | 317 | typedef struct _DSCEFFECTDESC |
| 318 | { |
| 319 | DWORD dwSize; |
| 320 | DWORD dwFlags; |
| 321 | GUID guidDSCFXClass; |
| 322 | GUID guidDSCFXInstance; |
| 323 | DWORD dwReserved1; |
| 324 | DWORD dwReserved2; |
| 325 | } DSCEFFECTDESC, *LPDSCEFFECTDESC; |
| 326 | typedef const DSCEFFECTDESC *LPCDSCEFFECTDESC; |
Robert Reif | dbb03ec | 2004-04-19 02:58:45 +0000 | [diff] [blame] | 327 | |
Robert Reif | 7dd6374 | 2004-01-09 22:06:54 +0000 | [diff] [blame] | 328 | #define DSCFX_LOCHARDWARE 0x00000001 |
| 329 | #define DSCFX_LOCSOFTWARE 0x00000002 |
Robert Reif | dbb03ec | 2004-04-19 02:58:45 +0000 | [diff] [blame] | 330 | |
Robert Reif | 7dd6374 | 2004-01-09 22:06:54 +0000 | [diff] [blame] | 331 | #define DSCFXR_LOCHARDWARE 0x00000010 |
| 332 | #define DSCFXR_LOCSOFTWARE 0x00000020 |
Robert Reif | dbb03ec | 2004-04-19 02:58:45 +0000 | [diff] [blame] | 333 | |
| 334 | typedef struct _DSCBUFFERDESC1 |
| 335 | { |
| 336 | DWORD dwSize; |
| 337 | DWORD dwFlags; |
| 338 | DWORD dwBufferBytes; |
| 339 | DWORD dwReserved; |
| 340 | LPWAVEFORMATEX lpwfxFormat; |
| 341 | } DSCBUFFERDESC1, *LPDSCBUFFERDESC1; |
| 342 | |
Peter Hunnisett | f5a1027 | 2000-06-01 22:47:35 +0000 | [diff] [blame] | 343 | typedef struct _DSCBUFFERDESC |
| 344 | { |
Robert Reif | 7dd6374 | 2004-01-09 22:06:54 +0000 | [diff] [blame] | 345 | DWORD dwSize; |
| 346 | DWORD dwFlags; |
| 347 | DWORD dwBufferBytes; |
| 348 | DWORD dwReserved; |
| 349 | LPWAVEFORMATEX lpwfxFormat; |
| 350 | DWORD dwFXCount; |
| 351 | LPDSCEFFECTDESC lpDSCFXDesc; |
Peter Hunnisett | f5a1027 | 2000-06-01 22:47:35 +0000 | [diff] [blame] | 352 | } DSCBUFFERDESC, *LPDSCBUFFERDESC; |
| 353 | typedef const DSCBUFFERDESC *LPCDSCBUFFERDESC; |
| 354 | |
| 355 | typedef struct _DSCCAPS |
| 356 | { |
Robert Reif | 6041ff3 | 2003-02-14 23:57:27 +0000 | [diff] [blame] | 357 | DWORD dwSize; |
Peter Hunnisett | f5a1027 | 2000-06-01 22:47:35 +0000 | [diff] [blame] | 358 | DWORD dwFlags; |
| 359 | DWORD dwFormats; |
| 360 | DWORD dwChannels; |
| 361 | } DSCCAPS, *LPDSCCAPS; |
| 362 | typedef const DSCCAPS *LPCDSCCAPS; |
| 363 | |
| 364 | typedef struct _DSCBCAPS |
| 365 | { |
| 366 | DWORD dwSize; |
| 367 | DWORD dwFlags; |
| 368 | DWORD dwBufferBytes; |
| 369 | DWORD dwReserved; |
| 370 | } DSCBCAPS, *LPDSCBCAPS; |
| 371 | typedef const DSCBCAPS *LPCDSCBCAPS; |
| 372 | |
Robert Reif | 6041ff3 | 2003-02-14 23:57:27 +0000 | [diff] [blame] | 373 | #define DSCCAPS_EMULDRIVER DSCAPS_EMULDRIVER |
| 374 | #define DSCCAPS_CERTIFIED DSCAPS_CERTIFIED |
Robert Reif | 7dd6374 | 2004-01-09 22:06:54 +0000 | [diff] [blame] | 375 | #define DSCCAPS_MULTIPLECAPTURE 0x00000001 |
Robert Reif | 6041ff3 | 2003-02-14 23:57:27 +0000 | [diff] [blame] | 376 | |
| 377 | #define DSCBCAPS_WAVEMAPPED 0x80000000 |
| 378 | #define DSCBCAPS_CTRLFX 0x00000200 |
| 379 | |
Robert Reif | 7dd6374 | 2004-01-09 22:06:54 +0000 | [diff] [blame] | 380 | #define DSCBLOCK_ENTIREBUFFER 0x00000001 |
Robert Reif | 6041ff3 | 2003-02-14 23:57:27 +0000 | [diff] [blame] | 381 | #define DSCBSTART_LOOPING 0x00000001 |
| 382 | #define DSCBPN_OFFSET_STOP 0xffffffff |
| 383 | |
| 384 | #define DSCBSTATUS_CAPTURING 0x00000001 |
| 385 | #define DSCBSTATUS_LOOPING 0x00000002 |
| 386 | |
Peter Hunnisett | f5a1027 | 2000-06-01 22:47:35 +0000 | [diff] [blame] | 387 | #ifndef __LPCGUID_DEFINED__ |
| 388 | #define __LPCGUID_DEFINED__ |
| 389 | typedef const GUID *LPCGUID; |
Vincent Béron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 390 | #endif |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 391 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 392 | typedef LPVOID* LPLPVOID; |
| 393 | |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 394 | typedef BOOL (CALLBACK *LPDSENUMCALLBACKW)(LPGUID,LPCWSTR,LPCWSTR,LPVOID); |
| 395 | typedef BOOL (CALLBACK *LPDSENUMCALLBACKA)(LPGUID,LPCSTR,LPCSTR,LPVOID); |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 396 | |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 397 | extern HRESULT WINAPI DirectSoundCreate(LPCGUID lpGUID,LPDIRECTSOUND *ppDS,LPUNKNOWN pUnkOuter); |
Peter Hunnisett | 62f3233 | 2000-05-30 20:07:31 +0000 | [diff] [blame] | 398 | extern HRESULT WINAPI DirectSoundEnumerateA(LPDSENUMCALLBACKA, LPVOID); |
| 399 | extern HRESULT WINAPI DirectSoundEnumerateW(LPDSENUMCALLBACKW, LPVOID); |
| 400 | |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 401 | extern HRESULT WINAPI DirectSoundCaptureCreate(LPCGUID lpGUID, LPDIRECTSOUNDCAPTURE *ppDSC, LPUNKNOWN pUnkOuter); |
Peter Hunnisett | 62f3233 | 2000-05-30 20:07:31 +0000 | [diff] [blame] | 402 | extern HRESULT WINAPI DirectSoundCaptureEnumerateA(LPDSENUMCALLBACKA, LPVOID); |
| 403 | extern HRESULT WINAPI DirectSoundCaptureEnumerateW(LPDSENUMCALLBACKW, LPVOID); |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 404 | |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 405 | extern HRESULT WINAPI DirectSoundCreate8(LPCGUID lpGUID,LPDIRECTSOUND8 *ppDS8,LPUNKNOWN pUnkOuter); |
Robert Reif | 998f56e | 2003-03-06 22:44:38 +0000 | [diff] [blame] | 406 | extern HRESULT WINAPI DirectSoundCaptureCreate8(LPCGUID lpGUID, LPDIRECTSOUNDCAPTURE *ppDSC8, LPUNKNOWN pUnkOuter); |
Robert Reif | dbb03ec | 2004-04-19 02:58:45 +0000 | [diff] [blame] | 407 | extern HRESULT WINAPI DirectSoundFullDuplexCreate(LPCGUID pcGuidCaptureDevice, LPCGUID pcGuidRenderDevice, |
| 408 | LPCDSCBUFFERDESC pcDSCBufferDesc, LPCDSBUFFERDESC pcDSBufferDesc, HWND hWnd, DWORD dwLevel, |
| 409 | LPDIRECTSOUNDFULLDUPLEX *ppDSFD, LPDIRECTSOUNDCAPTUREBUFFER8 *ppDSCBuffer8, LPDIRECTSOUNDBUFFER8 *ppDSBuffer8, LPUNKNOWN pUnkOuter); |
Robert Reif | 998f56e | 2003-03-06 22:44:38 +0000 | [diff] [blame] | 410 | #define DirectSoundFullDuplexCreate8 DirectSoundFullDuplexCreate |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 411 | extern HRESULT WINAPI GetDeviceID(LPCGUID lpGuidSrc, LPGUID lpGuidDest); |
| 412 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 413 | |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 414 | /***************************************************************************** |
| 415 | * IDirectSound interface |
| 416 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 417 | #define INTERFACE IDirectSound |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 418 | DECLARE_INTERFACE_(IDirectSound,IUnknown) |
| 419 | { |
| 420 | /*** IUnknown methods ***/ |
| 421 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 422 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 423 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 424 | /*** IDirectSound methods ***/ |
| 425 | STDMETHOD(CreateSoundBuffer)(THIS_ LPCDSBUFFERDESC lpcDSBufferDesc, LPLPDIRECTSOUNDBUFFER lplpDirectSoundBuffer, IUnknown *pUnkOuter) PURE; |
| 426 | STDMETHOD(GetCaps)(THIS_ LPDSCAPS lpDSCaps) PURE; |
| 427 | STDMETHOD(DuplicateSoundBuffer)(THIS_ LPDIRECTSOUNDBUFFER lpDsbOriginal, LPLPDIRECTSOUNDBUFFER lplpDsbDuplicate) PURE; |
| 428 | STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwLevel) PURE; |
| 429 | STDMETHOD(Compact)(THIS) PURE; |
| 430 | STDMETHOD(GetSpeakerConfig)(THIS_ LPDWORD lpdwSpeakerConfig) PURE; |
| 431 | STDMETHOD(SetSpeakerConfig)(THIS_ DWORD dwSpeakerConfig) PURE; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 432 | STDMETHOD(Initialize)(THIS_ LPCGUID lpcGuid) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 433 | }; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 434 | #undef INTERFACE |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 435 | |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 436 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 437 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 438 | #define IDirectSound_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 439 | #define IDirectSound_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 440 | #define IDirectSound_Release(p) (p)->lpVtbl->Release(p) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 441 | /*** IDirectSound methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 442 | #define IDirectSound_CreateSoundBuffer(p,a,b,c) (p)->lpVtbl->CreateSoundBuffer(p,a,b,c) |
| 443 | #define IDirectSound_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) |
| 444 | #define IDirectSound_DuplicateSoundBuffer(p,a,b) (p)->lpVtbl->DuplicateSoundBuffer(p,a,b) |
| 445 | #define IDirectSound_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b) |
| 446 | #define IDirectSound_Compact(p) (p)->lpVtbl->Compact(p) |
| 447 | #define IDirectSound_GetSpeakerConfig(p,a) (p)->lpVtbl->GetSpeakerConfig(p,a) |
| 448 | #define IDirectSound_SetSpeakerConfig(p,a) (p)->lpVtbl->SetSpeakerConfig(p,a) |
| 449 | #define IDirectSound_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 450 | #else |
| 451 | /*** IUnknown methods ***/ |
| 452 | #define IDirectSound_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 453 | #define IDirectSound_AddRef(p) (p)->AddRef() |
| 454 | #define IDirectSound_Release(p) (p)->Release() |
| 455 | /*** IDirectSound methods ***/ |
| 456 | #define IDirectSound_CreateSoundBuffer(p,a,b,c) (p)->CreateSoundBuffer(a,b,c) |
| 457 | #define IDirectSound_GetCaps(p,a) (p)->GetCaps(a) |
| 458 | #define IDirectSound_DuplicateSoundBuffer(p,a,b) (p)->DuplicateSoundBuffer(a,b) |
| 459 | #define IDirectSound_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b) |
| 460 | #define IDirectSound_Compact(p) (p)->Compact() |
| 461 | #define IDirectSound_GetSpeakerConfig(p,a) (p)->GetSpeakerConfig(a) |
| 462 | #define IDirectSound_SetSpeakerConfig(p,a) (p)->SetSpeakerConfig(a) |
| 463 | #define IDirectSound_Initialize(p,a) (p)->Initialize(a) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 464 | #endif |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 465 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 466 | |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 467 | /***************************************************************************** |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 468 | * IDirectSound8 interface |
| 469 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 470 | #define INTERFACE IDirectSound8 |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 471 | DECLARE_INTERFACE_(IDirectSound8,IUnknown) |
| 472 | { |
| 473 | /*** IUnknown methods ***/ |
| 474 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 475 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 476 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 477 | /*** IDirectSound8 methods ***/ |
| 478 | STDMETHOD(CreateSoundBuffer)(THIS_ LPCDSBUFFERDESC lpcDSBufferDesc, LPLPDIRECTSOUNDBUFFER lplpDirectSoundBuffer, IUnknown *pUnkOuter) PURE; |
| 479 | STDMETHOD(GetCaps)(THIS_ LPDSCAPS lpDSCaps) PURE; |
| 480 | STDMETHOD(DuplicateSoundBuffer)(THIS_ LPDIRECTSOUNDBUFFER lpDsbOriginal, LPLPDIRECTSOUNDBUFFER lplpDsbDuplicate) PURE; |
| 481 | STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwLevel) PURE; |
| 482 | STDMETHOD(Compact)(THIS) PURE; |
| 483 | STDMETHOD(GetSpeakerConfig)(THIS_ LPDWORD lpdwSpeakerConfig) PURE; |
| 484 | STDMETHOD(SetSpeakerConfig)(THIS_ DWORD dwSpeakerConfig) PURE; |
| 485 | STDMETHOD(Initialize)(THIS_ LPCGUID lpcGuid) PURE; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 486 | STDMETHOD(VerifyCertification)(THIS_ LPDWORD pdwCertified) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 487 | }; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 488 | #undef INTERFACE |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 489 | |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 490 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 491 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 492 | #define IDirectSound8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 493 | #define IDirectSound8_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 494 | #define IDirectSound8_Release(p) (p)->lpVtbl->Release(p) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 495 | /*** IDirectSound methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 496 | #define IDirectSound8_CreateSoundBuffer(p,a,b,c) (p)->lpVtbl->CreateSoundBuffer(p,a,b,c) |
| 497 | #define IDirectSound8_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) |
| 498 | #define IDirectSound8_DuplicateSoundBuffer(p,a,b) (p)->lpVtbl->DuplicateSoundBuffer(p,a,b) |
| 499 | #define IDirectSound8_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b) |
| 500 | #define IDirectSound8_Compact(p) (p)->lpVtbl->Compact(p) |
| 501 | #define IDirectSound8_GetSpeakerConfig(p,a) (p)->lpVtbl->GetSpeakerConfig(p,a) |
| 502 | #define IDirectSound8_SetSpeakerConfig(p,a) (p)->lpVtbl->SetSpeakerConfig(p,a) |
| 503 | #define IDirectSound8_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 504 | /*** IDirectSound8 methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 505 | #define IDirectSound8_VerifyCertification(p,a) (p)->lpVtbl->VerifyCertification(p,a) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 506 | #else |
| 507 | /*** IUnknown methods ***/ |
| 508 | #define IDirectSound8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 509 | #define IDirectSound8_AddRef(p) (p)->AddRef() |
| 510 | #define IDirectSound8_Release(p) (p)->Release() |
| 511 | /*** IDirectSound methods ***/ |
| 512 | #define IDirectSound8_CreateSoundBuffer(p,a,b,c) (p)->CreateSoundBuffer(a,b,c) |
| 513 | #define IDirectSound8_GetCaps(p,a) (p)->GetCaps(a) |
| 514 | #define IDirectSound8_DuplicateSoundBuffer(p,a,b) (p)->DuplicateSoundBuffer(a,b) |
| 515 | #define IDirectSound8_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b) |
| 516 | #define IDirectSound8_Compact(p) (p)->Compact() |
| 517 | #define IDirectSound8_GetSpeakerConfig(p,a) (p)->GetSpeakerConfig(a) |
| 518 | #define IDirectSound8_SetSpeakerConfig(p,a) (p)->SetSpeakerConfig(a) |
| 519 | #define IDirectSound8_Initialize(p,a) (p)->Initialize(a) |
| 520 | /*** IDirectSound8 methods ***/ |
| 521 | #define IDirectSound8_VerifyCertification(p,a) (p)->VerifyCertification(a) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 522 | #endif |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 523 | |
| 524 | |
| 525 | /***************************************************************************** |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 526 | * IDirectSoundBuffer interface |
| 527 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 528 | #define INTERFACE IDirectSoundBuffer |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 529 | DECLARE_INTERFACE_(IDirectSoundBuffer,IUnknown) |
| 530 | { |
| 531 | /*** IUnknown methods ***/ |
| 532 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 533 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 534 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 535 | /*** IDirectSoundBuffer methods ***/ |
| 536 | STDMETHOD(GetCaps)(THIS_ LPDSBCAPS lpDSBufferCaps) PURE; |
| 537 | STDMETHOD(GetCurrentPosition)(THIS_ LPDWORD lpdwCurrentPlayCursor, LPDWORD lpdwCurrentWriteCursor) PURE; |
| 538 | STDMETHOD(GetFormat)(THIS_ LPWAVEFORMATEX lpwfxFormat, DWORD dwSizeAllocated, LPDWORD lpdwSizeWritten) PURE; |
| 539 | STDMETHOD(GetVolume)(THIS_ LPLONG lplVolume) PURE; |
| 540 | STDMETHOD(GetPan)(THIS_ LPLONG lplpan) PURE; |
| 541 | STDMETHOD(GetFrequency)(THIS_ LPDWORD lpdwFrequency) PURE; |
| 542 | STDMETHOD(GetStatus)(THIS_ LPDWORD lpdwStatus) PURE; |
| 543 | STDMETHOD(Initialize)(THIS_ LPDIRECTSOUND lpDirectSound, LPCDSBUFFERDESC lpcDSBufferDesc) PURE; |
| 544 | STDMETHOD(Lock)(THIS_ DWORD dwWriteCursor, DWORD dwWriteBytes, LPVOID lplpvAudioPtr1, LPDWORD lpdwAudioBytes1, LPVOID lplpvAudioPtr2, LPDWORD lpdwAudioBytes2, DWORD dwFlags) PURE; |
| 545 | STDMETHOD(Play)(THIS_ DWORD dwReserved1, DWORD dwReserved2, DWORD dwFlags) PURE; |
| 546 | STDMETHOD(SetCurrentPosition)(THIS_ DWORD dwNewPosition) PURE; |
| 547 | STDMETHOD(SetFormat)(THIS_ LPCWAVEFORMATEX lpcfxFormat) PURE; |
| 548 | STDMETHOD(SetVolume)(THIS_ LONG lVolume) PURE; |
| 549 | STDMETHOD(SetPan)(THIS_ LONG lPan) PURE; |
| 550 | STDMETHOD(SetFrequency)(THIS_ DWORD dwFrequency) PURE; |
| 551 | STDMETHOD(Stop)(THIS) PURE; |
| 552 | STDMETHOD(Unlock)(THIS_ LPVOID lpvAudioPtr1, DWORD dwAudioBytes1, LPVOID lpvAudioPtr2, DWORD dwAudioPtr2) PURE; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 553 | STDMETHOD(Restore)(THIS) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 554 | }; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 555 | #undef INTERFACE |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 556 | |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 557 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 558 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 559 | #define IDirectSoundBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 560 | #define IDirectSoundBuffer_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 561 | #define IDirectSoundBuffer_Release(p) (p)->lpVtbl->Release(p) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 562 | /*** IDirectSoundBuffer methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 563 | #define IDirectSoundBuffer_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) |
| 564 | #define IDirectSoundBuffer_GetCurrentPosition(p,a,b) (p)->lpVtbl->GetCurrentPosition(p,a,b) |
| 565 | #define IDirectSoundBuffer_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c) |
| 566 | #define IDirectSoundBuffer_GetVolume(p,a) (p)->lpVtbl->GetVolume(p,a) |
| 567 | #define IDirectSoundBuffer_GetPan(p,a) (p)->lpVtbl->GetPan(p,a) |
| 568 | #define IDirectSoundBuffer_GetFrequency(p,a) (p)->lpVtbl->GetFrequency(p,a) |
| 569 | #define IDirectSoundBuffer_GetStatus(p,a) (p)->lpVtbl->GetStatus(p,a) |
| 570 | #define IDirectSoundBuffer_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) |
| 571 | #define IDirectSoundBuffer_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g) |
| 572 | #define IDirectSoundBuffer_Play(p,a,b,c) (p)->lpVtbl->Play(p,a,b,c) |
| 573 | #define IDirectSoundBuffer_SetCurrentPosition(p,a) (p)->lpVtbl->SetCurrentPosition(p,a) |
| 574 | #define IDirectSoundBuffer_SetFormat(p,a) (p)->lpVtbl->SetFormat(p,a) |
| 575 | #define IDirectSoundBuffer_SetVolume(p,a) (p)->lpVtbl->SetVolume(p,a) |
| 576 | #define IDirectSoundBuffer_SetPan(p,a) (p)->lpVtbl->SetPan(p,a) |
| 577 | #define IDirectSoundBuffer_SetFrequency(p,a) (p)->lpVtbl->SetFrequency(p,a) |
| 578 | #define IDirectSoundBuffer_Stop(p) (p)->lpVtbl->Stop(p) |
| 579 | #define IDirectSoundBuffer_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d) |
| 580 | #define IDirectSoundBuffer_Restore(p) (p)->lpVtbl->Restore(p) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 581 | #else |
| 582 | /*** IUnknown methods ***/ |
| 583 | #define IDirectSoundBuffer_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 584 | #define IDirectSoundBuffer_AddRef(p) (p)->AddRef() |
| 585 | #define IDirectSoundBuffer_Release(p) (p)->Release() |
| 586 | /*** IDirectSoundBuffer methods ***/ |
| 587 | #define IDirectSoundBuffer_GetCaps(p,a) (p)->GetCaps(a) |
| 588 | #define IDirectSoundBuffer_GetCurrentPosition(p,a,b) (p)->GetCurrentPosition(a,b) |
| 589 | #define IDirectSoundBuffer_GetFormat(p,a,b,c) (p)->GetFormat(a,b,c) |
| 590 | #define IDirectSoundBuffer_GetVolume(p,a) (p)->GetVolume(a) |
| 591 | #define IDirectSoundBuffer_GetPan(p,a) (p)->GetPan(a) |
| 592 | #define IDirectSoundBuffer_GetFrequency(p,a) (p)->GetFrequency(a) |
| 593 | #define IDirectSoundBuffer_GetStatus(p,a) (p)->GetStatus(a) |
| 594 | #define IDirectSoundBuffer_Initialize(p,a,b) (p)->Initialize(a,b) |
| 595 | #define IDirectSoundBuffer_Lock(p,a,b,c,d,e,f,g) (p)->Lock(a,b,c,d,e,f,g) |
| 596 | #define IDirectSoundBuffer_Play(p,a,b,c) (p)->Play(a,b,c) |
| 597 | #define IDirectSoundBuffer_SetCurrentPosition(p,a) (p)->SetCurrentPosition(a) |
| 598 | #define IDirectSoundBuffer_SetFormat(p,a) (p)->SetFormat(a) |
| 599 | #define IDirectSoundBuffer_SetVolume(p,a) (p)->SetVolume(a) |
| 600 | #define IDirectSoundBuffer_SetPan(p,a) (p)->SetPan(a) |
| 601 | #define IDirectSoundBuffer_SetFrequency(p,a) (p)->SetFrequency(a) |
| 602 | #define IDirectSoundBuffer_Stop(p) (p)->Stop() |
| 603 | #define IDirectSoundBuffer_Unlock(p,a,b,c,d) (p)->Unlock(a,b,c,d) |
| 604 | #define IDirectSoundBuffer_Restore(p) (p)->Restore() |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 605 | #endif |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 606 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 607 | |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 608 | /***************************************************************************** |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 609 | * IDirectSoundBuffer8 interface |
| 610 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 611 | #define INTERFACE IDirectSoundBuffer8 |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 612 | DECLARE_INTERFACE_(IDirectSoundBuffer8,IUnknown) |
| 613 | { |
| 614 | /*** IUnknown methods ***/ |
| 615 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 616 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 617 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 618 | /*** IDirectSoundBuffer8 methods ***/ |
| 619 | STDMETHOD(GetCaps)(THIS_ LPDSBCAPS lpDSBufferCaps) PURE; |
| 620 | STDMETHOD(GetCurrentPosition)(THIS_ LPDWORD lpdwCurrentPlayCursor, LPDWORD lpdwCurrentWriteCursor) PURE; |
| 621 | STDMETHOD(GetFormat)(THIS_ LPWAVEFORMATEX lpwfxFormat, DWORD dwSizeAllocated, LPDWORD lpdwSizeWritten) PURE; |
| 622 | STDMETHOD(GetVolume)(THIS_ LPLONG lplVolume) PURE; |
| 623 | STDMETHOD(GetPan)(THIS_ LPLONG lplpan) PURE; |
| 624 | STDMETHOD(GetFrequency)(THIS_ LPDWORD lpdwFrequency) PURE; |
| 625 | STDMETHOD(GetStatus)(THIS_ LPDWORD lpdwStatus) PURE; |
| 626 | STDMETHOD(Initialize)(THIS_ LPDIRECTSOUND lpDirectSound, LPCDSBUFFERDESC lpcDSBufferDesc) PURE; |
| 627 | STDMETHOD(Lock)(THIS_ DWORD dwWriteCursor, DWORD dwWriteBytes, LPVOID lplpvAudioPtr1, LPDWORD lpdwAudioBytes1, LPVOID lplpvAudioPtr2, LPDWORD lpdwAudioBytes2, DWORD dwFlags) PURE; |
| 628 | STDMETHOD(Play)(THIS_ DWORD dwReserved1, DWORD dwReserved2, DWORD dwFlags) PURE; |
| 629 | STDMETHOD(SetCurrentPosition)(THIS_ DWORD dwNewPosition) PURE; |
| 630 | STDMETHOD(SetFormat)(THIS_ LPCWAVEFORMATEX lpcfxFormat) PURE; |
| 631 | STDMETHOD(SetVolume)(THIS_ LONG lVolume) PURE; |
| 632 | STDMETHOD(SetPan)(THIS_ LONG lPan) PURE; |
| 633 | STDMETHOD(SetFrequency)(THIS_ DWORD dwFrequency) PURE; |
| 634 | STDMETHOD(Stop)(THIS) PURE; |
| 635 | STDMETHOD(Unlock)(THIS_ LPVOID lpvAudioPtr1, DWORD dwAudioBytes1, LPVOID lpvAudioPtr2, DWORD dwAudioPtr2) PURE; |
| 636 | STDMETHOD(Restore)(THIS) PURE; |
| 637 | STDMETHOD(SetFX)(THIS_ DWORD dwEffectsCount, LPDSEFFECTDESC pDSFXDesc, LPDWORD pdwResultCodes) PURE; |
| 638 | STDMETHOD(AcquireResources)(THIS_ DWORD dwFlags, DWORD dwEffectsCount, LPDWORD pdwResultCodes) PURE; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 639 | STDMETHOD(GetObjectInPath)(THIS_ REFGUID rguidObject, DWORD dwIndex, REFGUID rguidInterface, LPVOID *ppObject) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 640 | }; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 641 | #undef INTERFACE |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 642 | |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 643 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 644 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 645 | #define IDirectSoundBuffer8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 646 | #define IDirectSoundBuffer8_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 647 | #define IDirectSoundBuffer8_Release(p) (p)->lpVtbl->Release(p) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 648 | /*** IDirectSoundBuffer methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 649 | #define IDirectSoundBuffer8_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) |
| 650 | #define IDirectSoundBuffer8_GetCurrentPosition(p,a,b) (p)->lpVtbl->GetCurrentPosition(p,a,b) |
| 651 | #define IDirectSoundBuffer8_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c) |
| 652 | #define IDirectSoundBuffer8_GetVolume(p,a) (p)->lpVtbl->GetVolume(p,a) |
| 653 | #define IDirectSoundBuffer8_GetPan(p,a) (p)->lpVtbl->GetPan(p,a) |
| 654 | #define IDirectSoundBuffer8_GetFrequency(p,a) (p)->lpVtbl->GetFrequency(p,a) |
| 655 | #define IDirectSoundBuffer8_GetStatus(p,a) (p)->lpVtbl->GetStatus(p,a) |
| 656 | #define IDirectSoundBuffer8_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) |
| 657 | #define IDirectSoundBuffer8_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g) |
| 658 | #define IDirectSoundBuffer8_Play(p,a,b,c) (p)->lpVtbl->Play(p,a,b,c) |
| 659 | #define IDirectSoundBuffer8_SetCurrentPosition(p,a) (p)->lpVtbl->SetCurrentPosition(p,a) |
| 660 | #define IDirectSoundBuffer8_SetFormat(p,a) (p)->lpVtbl->SetFormat(p,a) |
| 661 | #define IDirectSoundBuffer8_SetVolume(p,a) (p)->lpVtbl->SetVolume(p,a) |
| 662 | #define IDirectSoundBuffer8_SetPan(p,a) (p)->lpVtbl->SetPan(p,a) |
| 663 | #define IDirectSoundBuffer8_SetFrequency(p,a) (p)->lpVtbl->SetFrequency(p,a) |
| 664 | #define IDirectSoundBuffer8_Stop(p) (p)->lpVtbl->Stop(p) |
| 665 | #define IDirectSoundBuffer8_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d) |
| 666 | #define IDirectSoundBuffer8_Restore(p) (p)->lpVtbl->Restore(p) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 667 | /*** IDirectSoundBuffer8 methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 668 | #define IDirectSoundBuffer8_SetFX(p,a,b,c) (p)->lpVtbl->SetFX(p,a,b,c) |
| 669 | #define IDirectSoundBuffer8_AcquireResources(p,a,b,c) (p)->lpVtbl->AcquireResources(p,a,b,c) |
Robert Reif | 59cc52b | 2004-07-07 00:48:18 +0000 | [diff] [blame] | 670 | #define IDirectSoundBuffer8_GetObjectInPath(p,a,b,c,d) (p)->lpVtbl->GetObjectInPath(p,a,b,c,d) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 671 | #else |
| 672 | /*** IUnknown methods ***/ |
| 673 | #define IDirectSoundBuffer8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 674 | #define IDirectSoundBuffer8_AddRef(p) (p)->AddRef() |
| 675 | #define IDirectSoundBuffer8_Release(p) (p)->Release() |
| 676 | /*** IDirectSoundBuffer methods ***/ |
| 677 | #define IDirectSoundBuffer8_GetCaps(p,a) (p)->GetCaps(a) |
| 678 | #define IDirectSoundBuffer8_GetCurrentPosition(p,a,b) (p)->GetCurrentPosition(a,b) |
| 679 | #define IDirectSoundBuffer8_GetFormat(p,a,b,c) (p)->GetFormat(a,b,c) |
| 680 | #define IDirectSoundBuffer8_GetVolume(p,a) (p)->GetVolume(a) |
| 681 | #define IDirectSoundBuffer8_GetPan(p,a) (p)->GetPan(a) |
| 682 | #define IDirectSoundBuffer8_GetFrequency(p,a) (p)->GetFrequency(a) |
| 683 | #define IDirectSoundBuffer8_GetStatus(p,a) (p)->GetStatus(a) |
| 684 | #define IDirectSoundBuffer8_Initialize(p,a,b) (p)->Initialize(a,b) |
| 685 | #define IDirectSoundBuffer8_Lock(p,a,b,c,d,e,f,g) (p)->Lock(a,b,c,d,e,f,g) |
| 686 | #define IDirectSoundBuffer8_Play(p,a,b,c) (p)->Play(a,b,c) |
| 687 | #define IDirectSoundBuffer8_SetCurrentPosition(p,a) (p)->SetCurrentPosition(a) |
| 688 | #define IDirectSoundBuffer8_SetFormat(p,a) (p)->SetFormat(a) |
| 689 | #define IDirectSoundBuffer8_SetVolume(p,a) (p)->SetVolume(a) |
| 690 | #define IDirectSoundBuffer8_SetPan(p,a) (p)->SetPan(a) |
| 691 | #define IDirectSoundBuffer8_SetFrequency(p,a) (p)->SetFrequency(a) |
| 692 | #define IDirectSoundBuffer8_Stop(p) (p)->Stop() |
| 693 | #define IDirectSoundBuffer8_Unlock(p,a,b,c,d) (p)->Unlock(a,b,c,d) |
| 694 | #define IDirectSoundBuffer8_Restore(p) (p)->Restore() |
| 695 | /*** IDirectSoundBuffer8 methods ***/ |
| 696 | #define IDirectSoundBuffer8_SetFX(p,a,b,c) (p)->SetFX(a,b,c) |
| 697 | #define IDirectSoundBuffer8_AcquireResources(p,a,b,c) (p)->AcquireResources(a,b,c) |
| 698 | #define IDirectSoundBuffer8_GetObjectInPath(p,a,b,c,d) (p)->GetObjectInPath(a,b,c,d) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 699 | #endif |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 700 | |
| 701 | |
| 702 | /***************************************************************************** |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 703 | * IDirectSoundCapture interface |
| 704 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 705 | #define INTERFACE IDirectSoundCapture |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 706 | DECLARE_INTERFACE_(IDirectSoundCapture,IUnknown) |
| 707 | { |
| 708 | /*** IUnknown methods ***/ |
| 709 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 710 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 711 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 712 | /*** IDirectSoundCapture methods ***/ |
| 713 | STDMETHOD(CreateCaptureBuffer)(THIS_ LPCDSCBUFFERDESC lpcDSCBufferDesc,LPDIRECTSOUNDCAPTUREBUFFER *lplpDSCaptureBuffer, LPUNKNOWN pUnk) PURE; |
| 714 | STDMETHOD(GetCaps)(THIS_ LPDSCCAPS lpDSCCaps) PURE; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 715 | STDMETHOD(Initialize)(THIS_ LPCGUID lpcGUID) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 716 | }; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 717 | #undef INTERFACE |
Peter Hunnisett | f5a1027 | 2000-06-01 22:47:35 +0000 | [diff] [blame] | 718 | |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 719 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 720 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 721 | #define IDirectSoundCapture_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 722 | #define IDirectSoundCapture_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 723 | #define IDirectSoundCapture_Release(p) (p)->lpVtbl->Release(p) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 724 | /*** IDirectSoundCapture methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 725 | #define IDirectSoundCapture_CreateCaptureBuffer(p,a,b,c) (p)->lpVtbl->CreateCaptureBuffer(p,a,b,c) |
| 726 | #define IDirectSoundCapture_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) |
| 727 | #define IDirectSoundCapture_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 728 | #else |
| 729 | /*** IUnknown methods ***/ |
| 730 | #define IDirectSoundCapture_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 731 | #define IDirectSoundCapture_AddRef(p) (p)->AddRef() |
| 732 | #define IDirectSoundCapture_Release(p) (p)->Release() |
| 733 | /*** IDirectSoundCapture methods ***/ |
| 734 | #define IDirectSoundCapture_CreateCaptureBuffer(p,a,b,c) (p)->CreateCaptureBuffer(a,b,c) |
| 735 | #define IDirectSoundCapture_GetCaps(p,a) (p)->GetCaps(a) |
| 736 | #define IDirectSoundCapture_Initialize(p,a) (p)->Initialize(a) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 737 | #endif |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 738 | |
| 739 | /***************************************************************************** |
| 740 | * IDirectSoundCaptureBuffer interface |
| 741 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 742 | #define INTERFACE IDirectSoundCaptureBuffer |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 743 | DECLARE_INTERFACE_(IDirectSoundCaptureBuffer,IUnknown) |
| 744 | { |
| 745 | /*** IUnknown methods ***/ |
| 746 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 747 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 748 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 749 | /*** IDirectSoundCaptureBuffer methods ***/ |
| 750 | STDMETHOD(GetCaps)(THIS_ LPDSCBCAPS lpDSCBCaps) PURE; |
| 751 | STDMETHOD(GetCurrentPosition)(THIS_ LPDWORD lpdwCapturePosition,LPDWORD lpdwReadPosition) PURE; |
| 752 | STDMETHOD(GetFormat)(THIS_ LPWAVEFORMATEX lpwfxFormat, DWORD dwSizeAllocated, LPDWORD lpdwSizeWritten) PURE; |
| 753 | STDMETHOD(GetStatus)(THIS_ LPDWORD lpdwStatus) PURE; |
| 754 | STDMETHOD(Initialize)(THIS_ LPDIRECTSOUNDCAPTURE lpDSC, LPCDSCBUFFERDESC lpcDSCBDesc) PURE; |
| 755 | STDMETHOD(Lock)(THIS_ DWORD dwReadCusor, DWORD dwReadBytes, LPVOID *lplpvAudioPtr1, LPDWORD lpdwAudioBytes1, LPVOID *lplpvAudioPtr2, LPDWORD lpdwAudioBytes2, DWORD dwFlags) PURE; |
| 756 | STDMETHOD(Start)(THIS_ DWORD dwFlags) PURE; |
| 757 | STDMETHOD(Stop)(THIS) PURE; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 758 | STDMETHOD(Unlock)(THIS_ LPVOID lpvAudioPtr1, DWORD dwAudioBytes1, LPVOID lpvAudioPtr2, DWORD dwAudioBytes2) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 759 | }; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 760 | #undef INTERFACE |
Peter Hunnisett | f5a1027 | 2000-06-01 22:47:35 +0000 | [diff] [blame] | 761 | |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 762 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 763 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 764 | #define IDirectSoundCaptureBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 765 | #define IDirectSoundCaptureBuffer_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 766 | #define IDirectSoundCaptureBuffer_Release(p) (p)->lpVtbl->Release(p) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 767 | /*** IDirectSoundCaptureBuffer methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 768 | #define IDirectSoundCaptureBuffer_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) |
| 769 | #define IDirectSoundCaptureBuffer_GetCurrentPosition(p,a,b) (p)->lpVtbl->GetCurrentPosition(p,a,b) |
| 770 | #define IDirectSoundCaptureBuffer_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c) |
| 771 | #define IDirectSoundCaptureBuffer_GetStatus(p,a) (p)->lpVtbl->GetStatus(p,a) |
| 772 | #define IDirectSoundCaptureBuffer_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) |
| 773 | #define IDirectSoundCaptureBuffer_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g) |
| 774 | #define IDirectSoundCaptureBuffer_Start(p,a) (p)->lpVtbl->Start(p,a) |
| 775 | #define IDirectSoundCaptureBuffer_Stop(p) (p)->lpVtbl->Stop(p) |
| 776 | #define IDirectSoundCaptureBuffer_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 777 | #else |
| 778 | /*** IUnknown methods ***/ |
| 779 | #define IDirectSoundCaptureBuffer_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 780 | #define IDirectSoundCaptureBuffer_AddRef(p) (p)->AddRef() |
| 781 | #define IDirectSoundCaptureBuffer_Release(p) (p)->Release() |
| 782 | /*** IDirectSoundCaptureBuffer methods ***/ |
| 783 | #define IDirectSoundCaptureBuffer_GetCaps(p,a) (p)->GetCaps(a) |
| 784 | #define IDirectSoundCaptureBuffer_GetCurrentPosition(p,a,b) (p)->GetCurrentPosition(a,b) |
| 785 | #define IDirectSoundCaptureBuffer_GetFormat(p,a,b,c) (p)->GetFormat(a,b,c) |
| 786 | #define IDirectSoundCaptureBuffer_GetStatus(p,a) (p)->GetStatus(a) |
| 787 | #define IDirectSoundCaptureBuffer_Initialize(p,a,b) (p)->Initialize(a,b) |
| 788 | #define IDirectSoundCaptureBuffer_Lock(p,a,b,c,d,e,f,g) (p)->Lock(a,b,c,d,e,f,g) |
| 789 | #define IDirectSoundCaptureBuffer_Start(p,a) (p)->Start(a) |
| 790 | #define IDirectSoundCaptureBuffer_Stop(p) (p)->Stop() |
| 791 | #define IDirectSoundCaptureBuffer_Unlock(p,a,b,c,d) (p)->Unlock(a,b,c,d) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 792 | #endif |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 793 | |
| 794 | /***************************************************************************** |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 795 | * IDirectSoundCaptureBuffer8 interface |
| 796 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 797 | #define INTERFACE IDirectSoundCaptureBuffer8 |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 798 | DECLARE_INTERFACE_(IDirectSoundCaptureBuffer8,IDirectSoundCaptureBuffer) |
| 799 | { |
| 800 | /*** IUnknown methods ***/ |
| 801 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 802 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 803 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 804 | /*** IDirectSoundCaptureBuffer methods ***/ |
| 805 | STDMETHOD(GetCaps)(THIS_ LPDSCBCAPS lpDSCBCaps) PURE; |
| 806 | STDMETHOD(GetCurrentPosition)(THIS_ LPDWORD lpdwCapturePosition,LPDWORD lpdwReadPosition) PURE; |
| 807 | STDMETHOD(GetFormat)(THIS_ LPWAVEFORMATEX lpwfxFormat, DWORD dwSizeAllocated, LPDWORD lpdwSizeWritten) PURE; |
| 808 | STDMETHOD(GetStatus)(THIS_ LPDWORD lpdwStatus) PURE; |
| 809 | STDMETHOD(Initialize)(THIS_ LPDIRECTSOUNDCAPTURE lpDSC, LPCDSCBUFFERDESC lpcDSCBDesc) PURE; |
| 810 | STDMETHOD(Lock)(THIS_ DWORD dwReadCusor, DWORD dwReadBytes, LPVOID *lplpvAudioPtr1, LPDWORD lpdwAudioBytes1, LPVOID *lplpvAudioPtr2, LPDWORD lpdwAudioBytes2, DWORD dwFlags) PURE; |
| 811 | STDMETHOD(Start)(THIS_ DWORD dwFlags) PURE; |
| 812 | STDMETHOD(Stop)(THIS) PURE; |
| 813 | STDMETHOD(Unlock)(THIS_ LPVOID lpvAudioPtr1, DWORD dwAudioBytes1, LPVOID lpvAudioPtr2, DWORD dwAudioBytes2) PURE; |
| 814 | /*** IDirectSoundCaptureBuffer8 methods ***/ |
| 815 | STDMETHOD(GetObjectInPath)(THIS_ REFGUID rguidObject, DWORD dwIndex, REFGUID rguidInterface, LPVOID *ppObject) PURE; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 816 | STDMETHOD(GetFXStatus)(THIS_ DWORD dwFXCount, LPDWORD pdwFXStatus) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 817 | }; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 818 | #undef INTERFACE |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 819 | |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 820 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 821 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 822 | #define IDirectSoundCaptureBuffer8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 823 | #define IDirectSoundCaptureBuffer8_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 824 | #define IDirectSoundCaptureBuffer8_Release(p) (p)->lpVtbl->Release(p) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 825 | /*** IDirectSoundCaptureBuffer methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 826 | #define IDirectSoundCaptureBuffer8_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) |
| 827 | #define IDirectSoundCaptureBuffer8_GetCurrentPosition(p,a,b) (p)->lpVtbl->GetCurrentPosition(p,a,b) |
| 828 | #define IDirectSoundCaptureBuffer8_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c) |
| 829 | #define IDirectSoundCaptureBuffer8_GetStatus(p,a) (p)->lpVtbl->GetStatus(p,a) |
| 830 | #define IDirectSoundCaptureBuffer8_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) |
| 831 | #define IDirectSoundCaptureBuffer8_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g) |
| 832 | #define IDirectSoundCaptureBuffer8_Start(p,a) (p)->lpVtbl->Start(p,a) |
| 833 | #define IDirectSoundCaptureBuffer8_Stop(p) (p)->lpVtbl->Stop(p) |
| 834 | #define IDirectSoundCaptureBuffer8_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 835 | /*** IDirectSoundCaptureBuffer8 methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 836 | #define IDirectSoundCaptureBuffer8_GetObjectInPath(p,a,b,c,d) (p)->lpVtbl->GetObjectInPath(p,a,b,c,d) |
| 837 | #define IDirectSoundCaptureBuffer8_GetFXStatus(p,a,b) (p)->lpVtbl->GetFXStatus(p,a,b) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 838 | #else |
| 839 | /*** IUnknown methods ***/ |
| 840 | #define IDirectSoundCaptureBuffer8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 841 | #define IDirectSoundCaptureBuffer8_AddRef(p) (p)->AddRef() |
| 842 | #define IDirectSoundCaptureBuffer8_Release(p) (p)->Release() |
| 843 | /*** IDirectSoundCaptureBuffer methods ***/ |
| 844 | #define IDirectSoundCaptureBuffer8_GetCaps(p,a) (p)->GetCaps(a) |
| 845 | #define IDirectSoundCaptureBuffer8_GetCurrentPosition(p,a,b) (p)->GetCurrentPosition(a,b) |
| 846 | #define IDirectSoundCaptureBuffer8_GetFormat(p,a,b,c) (p)->GetFormat(a,b,c) |
| 847 | #define IDirectSoundCaptureBuffer8_GetStatus(p,a) (p)->GetStatus(a) |
| 848 | #define IDirectSoundCaptureBuffer8_Initialize(p,a,b) (p)->Initialize(a,b) |
| 849 | #define IDirectSoundCaptureBuffer8_Lock(p,a,b,c,d,e,f,g) (p)->Lock(a,b,c,d,e,f,g) |
| 850 | #define IDirectSoundCaptureBuffer8_Start(p,a) (p)->Start(a) |
| 851 | #define IDirectSoundCaptureBuffer8_Stop(p) (p)->Stop() |
| 852 | #define IDirectSoundCaptureBuffer8_Unlock(p,a,b,c,d) (p)->Unlock(a,b,c,d) |
| 853 | /*** IDirectSoundCaptureBuffer8 methods ***/ |
| 854 | #define IDirectSoundCaptureBuffer8_GetObjectInPath(p,a,b,c,d) (p)->GetObjectInPath(a,b,c,d) |
| 855 | #define IDirectSoundCaptureBuffer8_GetFXStatus(p,a,b) (p)->GetFXStatus(a,b) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 856 | #endif |
Ove Kaaven | 935e3df | 2002-06-13 19:15:06 +0000 | [diff] [blame] | 857 | |
| 858 | /***************************************************************************** |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 859 | * IDirectSoundNotify interface |
| 860 | */ |
Robert Riggs | 88bd980 | 1998-11-22 15:09:33 +0000 | [diff] [blame] | 861 | #define WINE_NOBUFFER 0x80000000 |
| 862 | |
Robert Riggs | b995012 | 1998-12-01 12:57:31 +0000 | [diff] [blame] | 863 | #define DSBPN_OFFSETSTOP -1 |
| 864 | |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 865 | #define INTERFACE IDirectSoundNotify |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 866 | DECLARE_INTERFACE_(IDirectSoundNotify,IUnknown) |
| 867 | { |
| 868 | /*** IUnknown methods ***/ |
| 869 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 870 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 871 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 872 | /*** IDirectSoundNotify methods ***/ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 873 | STDMETHOD(SetNotificationPositions)(THIS_ DWORD cPositionNotifies, LPCDSBPOSITIONNOTIFY lpcPositionNotifies) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 874 | }; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 875 | #undef INTERFACE |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 876 | |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 877 | #if !defined(__cplusplus) || defined(CINTERFACE) |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 878 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 879 | #define IDirectSoundNotify_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 880 | #define IDirectSoundNotify_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 881 | #define IDirectSoundNotify_Release(p) (p)->lpVtbl->Release(p) |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 882 | /*** IDirectSoundNotify methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 883 | #define IDirectSoundNotify_SetNotificationPositions(p,a,b) (p)->lpVtbl->SetNotificationPositions(p,a,b) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 884 | #else |
| 885 | /*** IUnknown methods ***/ |
| 886 | #define IDirectSoundNotify_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 887 | #define IDirectSoundNotify_AddRef(p) (p)->AddRef() |
| 888 | #define IDirectSoundNotify_Release(p) (p)->Release() |
| 889 | /*** IDirectSoundNotify methods ***/ |
| 890 | #define IDirectSoundNotify_SetNotificationPositions(p,a,b) (p)->SetNotificationPositions(a,b) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 891 | #endif |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 892 | |
Robert Riggs | 88bd980 | 1998-11-22 15:09:33 +0000 | [diff] [blame] | 893 | |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 894 | /***************************************************************************** |
| 895 | * IDirectSound3DListener interface |
| 896 | */ |
Robert Riggs | 88bd980 | 1998-11-22 15:09:33 +0000 | [diff] [blame] | 897 | #define DS3DMODE_NORMAL 0x00000000 |
| 898 | #define DS3DMODE_HEADRELATIVE 0x00000001 |
| 899 | #define DS3DMODE_DISABLE 0x00000002 |
| 900 | |
| 901 | #define DS3D_IMMEDIATE 0x00000000 |
| 902 | #define DS3D_DEFERRED 0x00000001 |
| 903 | |
Robert Reif | 7dd6374 | 2004-01-09 22:06:54 +0000 | [diff] [blame] | 904 | #define DS3D_MINDISTANCEFACTOR FLT_MIN |
| 905 | #define DS3D_MAXDISTANCEFACTOR FLT_MAX |
Robert Riggs | 88bd980 | 1998-11-22 15:09:33 +0000 | [diff] [blame] | 906 | #define DS3D_DEFAULTDISTANCEFACTOR 1.0f |
| 907 | |
| 908 | #define DS3D_MINROLLOFFFACTOR 0.0f |
| 909 | #define DS3D_MAXROLLOFFFACTOR 10.0f |
| 910 | #define DS3D_DEFAULTROLLOFFFACTOR 1.0f |
| 911 | |
| 912 | #define DS3D_MINDOPPLERFACTOR 0.0f |
| 913 | #define DS3D_MAXDOPPLERFACTOR 10.0f |
| 914 | #define DS3D_DEFAULTDOPPLERFACTOR 1.0f |
| 915 | |
| 916 | #define DS3D_DEFAULTMINDISTANCE 1.0f |
| 917 | #define DS3D_DEFAULTMAXDISTANCE 1000000000.0f |
| 918 | |
| 919 | #define DS3D_MINCONEANGLE 0 |
| 920 | #define DS3D_MAXCONEANGLE 360 |
| 921 | #define DS3D_DEFAULTCONEANGLE 360 |
| 922 | |
Robert Reif | 7dd6374 | 2004-01-09 22:06:54 +0000 | [diff] [blame] | 923 | #define DS3D_DEFAULTCONEOUTSIDEVOLUME DSBVOLUME_MAX |
Robert Riggs | 88bd980 | 1998-11-22 15:09:33 +0000 | [diff] [blame] | 924 | |
| 925 | typedef struct _DS3DLISTENER { |
| 926 | DWORD dwSize; |
| 927 | D3DVECTOR vPosition; |
| 928 | D3DVECTOR vVelocity; |
| 929 | D3DVECTOR vOrientFront; |
| 930 | D3DVECTOR vOrientTop; |
| 931 | D3DVALUE flDistanceFactor; |
| 932 | D3DVALUE flRolloffFactor; |
| 933 | D3DVALUE flDopplerFactor; |
| 934 | } DS3DLISTENER, *LPDS3DLISTENER; |
| 935 | |
| 936 | typedef const DS3DLISTENER *LPCDS3DLISTENER; |
Vincent Béron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 937 | |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 938 | #define INTERFACE IDirectSound3DListener |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 939 | DECLARE_INTERFACE_(IDirectSound3DListener,IUnknown) |
| 940 | { |
| 941 | /*** IUnknown methods ***/ |
| 942 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 943 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 944 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 945 | /*** IDirectSound3DListener methods ***/ |
| 946 | STDMETHOD(GetAllParameters)(THIS_ LPDS3DLISTENER lpListener) PURE; |
| 947 | STDMETHOD(GetDistanceFactor)(THIS_ LPD3DVALUE lpflDistanceFactor) PURE; |
| 948 | STDMETHOD(GetDopplerFactor)(THIS_ LPD3DVALUE lpflDopplerFactor) PURE; |
| 949 | STDMETHOD(GetOrientation)(THIS_ LPD3DVECTOR lpvOrientFront, LPD3DVECTOR lpvOrientTop) PURE; |
| 950 | STDMETHOD(GetPosition)(THIS_ LPD3DVECTOR lpvPosition) PURE; |
| 951 | STDMETHOD(GetRolloffFactor)(THIS_ LPD3DVALUE lpflRolloffFactor) PURE; |
| 952 | STDMETHOD(GetVelocity)(THIS_ LPD3DVECTOR lpvVelocity) PURE; |
| 953 | STDMETHOD(SetAllParameters)(THIS_ LPCDS3DLISTENER lpcListener, DWORD dwApply) PURE; |
| 954 | STDMETHOD(SetDistanceFactor)(THIS_ D3DVALUE flDistanceFactor, DWORD dwApply) PURE; |
| 955 | STDMETHOD(SetDopplerFactor)(THIS_ D3DVALUE flDopplerFactor, DWORD dwApply) PURE; |
| 956 | STDMETHOD(SetOrientation)(THIS_ D3DVALUE xFront, D3DVALUE yFront, D3DVALUE zFront, D3DVALUE xTop, D3DVALUE yTop, D3DVALUE zTop, DWORD dwApply) PURE; |
| 957 | STDMETHOD(SetPosition)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE; |
| 958 | STDMETHOD(SetRolloffFactor)(THIS_ D3DVALUE flRolloffFactor, DWORD dwApply) PURE; |
| 959 | STDMETHOD(SetVelocity)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 960 | STDMETHOD(CommitDeferredSettings)(THIS) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 961 | }; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 962 | #undef INTERFACE |
Robert Riggs | 88bd980 | 1998-11-22 15:09:33 +0000 | [diff] [blame] | 963 | |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 964 | #if !defined(__cplusplus) || defined(CINTERFACE) |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 965 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 966 | #define IDirectSound3DListener_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 967 | #define IDirectSound3DListener_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 968 | #define IDirectSound3DListener_Release(p) (p)->lpVtbl->Release(p) |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 969 | /*** IDirectSound3DListener methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 970 | #define IDirectSound3DListener_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) |
| 971 | #define IDirectSound3DListener_GetDistanceFactor(p,a) (p)->lpVtbl->GetDistanceFactor(p,a) |
| 972 | #define IDirectSound3DListener_GetDopplerFactor(p,a) (p)->lpVtbl->GetDopplerFactor(p,a) |
| 973 | #define IDirectSound3DListener_GetOrientation(p,a,b) (p)->lpVtbl->GetOrientation(p,a,b) |
| 974 | #define IDirectSound3DListener_GetPosition(p,a) (p)->lpVtbl->GetPosition(p,a) |
| 975 | #define IDirectSound3DListener_GetRolloffFactor(p,a) (p)->lpVtbl->GetRolloffFactor(p,a) |
| 976 | #define IDirectSound3DListener_GetVelocity(p,a) (p)->lpVtbl->GetVelocity(p,a) |
| 977 | #define IDirectSound3DListener_SetAllParameters(p,a,b) (p)->lpVtbl->SetAllParameters(p,a,b) |
| 978 | #define IDirectSound3DListener_SetDistanceFactor(p,a,b) (p)->lpVtbl->SetDistanceFactor(p,a,b) |
| 979 | #define IDirectSound3DListener_SetDopplerFactor(p,a,b) (p)->lpVtbl->SetDopplerFactor(p,a,b) |
| 980 | #define IDirectSound3DListener_SetOrientation(p,a,b,c,d,e,f,g) (p)->lpVtbl->SetOrientation(p,a,b,c,d,e,f,g) |
| 981 | #define IDirectSound3DListener_SetPosition(p,a,b,c,d) (p)->lpVtbl->SetPosition(p,a,b,c,d) |
| 982 | #define IDirectSound3DListener_SetRolloffFactor(p,a,b) (p)->lpVtbl->SetRolloffFactor(p,a,b) |
| 983 | #define IDirectSound3DListener_SetVelocity(p,a,b,c,d) (p)->lpVtbl->SetVelocity(p,a,b,c,d) |
| 984 | #define IDirectSound3DListener_CommitDeferredSettings(p) (p)->lpVtbl->CommitDeferredSettings(p) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 985 | #else |
| 986 | /*** IUnknown methods ***/ |
| 987 | #define IDirectSound3DListener_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 988 | #define IDirectSound3DListener_AddRef(p) (p)->AddRef() |
| 989 | #define IDirectSound3DListener_Release(p) (p)->Release() |
| 990 | /*** IDirectSound3DListener methods ***/ |
| 991 | #define IDirectSound3DListener_GetAllParameters(p,a) (p)->GetAllParameters(a) |
| 992 | #define IDirectSound3DListener_GetDistanceFactor(p,a) (p)->GetDistanceFactor(a) |
| 993 | #define IDirectSound3DListener_GetDopplerFactor(p,a) (p)->GetDopplerFactor(a) |
| 994 | #define IDirectSound3DListener_GetOrientation(p,a,b) (p)->GetOrientation(a,b) |
| 995 | #define IDirectSound3DListener_GetPosition(p,a) (p)->GetPosition(a) |
| 996 | #define IDirectSound3DListener_GetRolloffFactor(p,a) (p)->GetRolloffFactor(a) |
| 997 | #define IDirectSound3DListener_GetVelocity(p,a) (p)->GetVelocity(a) |
| 998 | #define IDirectSound3DListener_SetAllParameters(p,a,b) (p)->SetAllParameters(a,b) |
| 999 | #define IDirectSound3DListener_SetDistanceFactor(p,a,b) (p)->SetDistanceFactor(a,b) |
| 1000 | #define IDirectSound3DListener_SetDopplerFactor(p,a,b) (p)->SetDopplerFactor(a,b) |
| 1001 | #define IDirectSound3DListener_SetOrientation(p,a,b,c,d,e,f,g) (p)->SetOrientation(a,b,c,d,e,f,g) |
| 1002 | #define IDirectSound3DListener_SetPosition(p,a,b,c,d) (p)->SetPosition(a,b,c,d) |
| 1003 | #define IDirectSound3DListener_SetRolloffFactor(p,a,b) (p)->SetRolloffFactor(a,b) |
| 1004 | #define IDirectSound3DListener_SetVelocity(p,a,b,c,d) (p)->SetVelocity(a,b,c,d) |
| 1005 | #define IDirectSound3DListener_CommitDeferredSettings(p) (p)->CommitDeferredSettings() |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1006 | #endif |
Robert Riggs | 88bd980 | 1998-11-22 15:09:33 +0000 | [diff] [blame] | 1007 | |
Robert Riggs | 88bd980 | 1998-11-22 15:09:33 +0000 | [diff] [blame] | 1008 | |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 1009 | /***************************************************************************** |
| 1010 | * IDirectSound3DBuffer interface |
| 1011 | */ |
Robert Riggs | 88bd980 | 1998-11-22 15:09:33 +0000 | [diff] [blame] | 1012 | typedef struct _DS3DBUFFER { |
| 1013 | DWORD dwSize; |
| 1014 | D3DVECTOR vPosition; |
| 1015 | D3DVECTOR vVelocity; |
| 1016 | DWORD dwInsideConeAngle; |
| 1017 | DWORD dwOutsideConeAngle; |
| 1018 | D3DVECTOR vConeOrientation; |
| 1019 | LONG lConeOutsideVolume; |
| 1020 | D3DVALUE flMinDistance; |
| 1021 | D3DVALUE flMaxDistance; |
| 1022 | DWORD dwMode; |
| 1023 | } DS3DBUFFER, *LPDS3DBUFFER; |
| 1024 | |
| 1025 | typedef const DS3DBUFFER *LPCDS3DBUFFER; |
| 1026 | |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1027 | #define INTERFACE IDirectSound3DBuffer |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 1028 | DECLARE_INTERFACE_(IDirectSound3DBuffer,IUnknown) |
| 1029 | { |
| 1030 | /*** IUnknown methods ***/ |
| 1031 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 1032 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 1033 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 1034 | /*** IDirectSound3DBuffer methods ***/ |
| 1035 | STDMETHOD(GetAllParameters)(THIS_ LPDS3DBUFFER lpDs3dBuffer) PURE; |
| 1036 | STDMETHOD(GetConeAngles)(THIS_ LPDWORD lpdwInsideConeAngle, LPDWORD lpdwOutsideConeAngle) PURE; |
| 1037 | STDMETHOD(GetConeOrientation)(THIS_ LPD3DVECTOR lpvOrientation) PURE; |
| 1038 | STDMETHOD(GetConeOutsideVolume)(THIS_ LPLONG lplConeOutsideVolume) PURE; |
| 1039 | STDMETHOD(GetMaxDistance)(THIS_ LPD3DVALUE lpflMaxDistance) PURE; |
| 1040 | STDMETHOD(GetMinDistance)(THIS_ LPD3DVALUE lpflMinDistance) PURE; |
| 1041 | STDMETHOD(GetMode)(THIS_ LPDWORD lpwdMode) PURE; |
| 1042 | STDMETHOD(GetPosition)(THIS_ LPD3DVECTOR lpvPosition) PURE; |
| 1043 | STDMETHOD(GetVelocity)(THIS_ LPD3DVECTOR lpvVelocity) PURE; |
| 1044 | STDMETHOD(SetAllParameters)(THIS_ LPCDS3DBUFFER lpcDs3dBuffer, DWORD dwApply) PURE; |
| 1045 | STDMETHOD(SetConeAngles)(THIS_ DWORD dwInsideConeAngle, DWORD dwOutsideConeAngle, DWORD dwApply) PURE; |
| 1046 | STDMETHOD(SetConeOrientation)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE; |
| 1047 | STDMETHOD(SetConeOutsideVolume)(THIS_ LONG lConeOutsideVolume, DWORD dwApply) PURE; |
| 1048 | STDMETHOD(SetMaxDistance)(THIS_ D3DVALUE flMaxDistance, DWORD dwApply) PURE; |
| 1049 | STDMETHOD(SetMinDistance)(THIS_ D3DVALUE flMinDistance, DWORD dwApply) PURE; |
| 1050 | STDMETHOD(SetMode)(THIS_ DWORD dwMode, DWORD dwApply) PURE; |
| 1051 | STDMETHOD(SetPosition)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1052 | STDMETHOD(SetVelocity)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 1053 | }; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1054 | #undef INTERFACE |
Robert Riggs | 88bd980 | 1998-11-22 15:09:33 +0000 | [diff] [blame] | 1055 | |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 1056 | #if !defined(__cplusplus) || defined(CINTERFACE) |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 1057 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1058 | #define IDirectSound3DBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1059 | #define IDirectSound3DBuffer_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1060 | #define IDirectSound3DBuffer_Release(p) (p)->lpVtbl->Release(p) |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 1061 | /*** IDirectSound3DBuffer methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1062 | #define IDirectSound3DBuffer_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) |
| 1063 | #define IDirectSound3DBuffer_GetConeAngles(p,a,b) (p)->lpVtbl->GetConeAngles(p,a,b) |
| 1064 | #define IDirectSound3DBuffer_GetConeOrientation(p,a) (p)->lpVtbl->GetConeOrientation(p,a) |
| 1065 | #define IDirectSound3DBuffer_GetConeOutsideVolume(p,a) (p)->lpVtbl->GetConeOutsideVolume(p,a) |
| 1066 | #define IDirectSound3DBuffer_GetMaxDistance(p,a) (p)->lpVtbl->GetMaxDistance(p,a) |
| 1067 | #define IDirectSound3DBuffer_GetMinDistance(p,a) (p)->lpVtbl->GetMinDistance(p,a) |
| 1068 | #define IDirectSound3DBuffer_GetMode(p,a) (p)->lpVtbl->GetMode(p,a) |
| 1069 | #define IDirectSound3DBuffer_GetPosition(p,a) (p)->lpVtbl->GetPosition(p,a) |
| 1070 | #define IDirectSound3DBuffer_GetVelocity(p,a) (p)->lpVtbl->GetVelocity(p,a) |
| 1071 | #define IDirectSound3DBuffer_SetAllParameters(p,a,b) (p)->lpVtbl->SetAllParameters(p,a,b) |
| 1072 | #define IDirectSound3DBuffer_SetConeAngles(p,a,b) (p)->lpVtbl->SetConeAngles(p,a,b) |
| 1073 | #define IDirectSound3DBuffer_SetConeOrientation(p,a,b,c,d) (p)->lpVtbl->SetConeOrientation(p,a,b,c,d) |
| 1074 | #define IDirectSound3DBuffer_SetConeOutsideVolume(p,a,b) (p)->lpVtbl->SetConeOutsideVolume(p,a,b) |
| 1075 | #define IDirectSound3DBuffer_SetMaxDistance(p,a,b) (p)->lpVtbl->SetMaxDistance(p,a,b) |
| 1076 | #define IDirectSound3DBuffer_SetMinDistance(p,a,b) (p)->lpVtbl->SetMinDistance(p,a,b) |
| 1077 | #define IDirectSound3DBuffer_SetMode(p,a,b) (p)->lpVtbl->SetMode(p,a,b) |
| 1078 | #define IDirectSound3DBuffer_SetPosition(p,a,b,c,d) (p)->lpVtbl->SetPosition(p,a,b,c,d) |
| 1079 | #define IDirectSound3DBuffer_SetVelocity(p,a,b,c,d) (p)->lpVtbl->SetVelocity(p,a,b,c,d) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 1080 | #else |
| 1081 | /*** IUnknown methods ***/ |
| 1082 | #define IDirectSound3DBuffer_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 1083 | #define IDirectSound3DBuffer_AddRef(p) (p)->AddRef() |
| 1084 | #define IDirectSound3DBuffer_Release(p) (p)->Release() |
| 1085 | /*** IDirectSound3DBuffer methods ***/ |
| 1086 | #define IDirectSound3DBuffer_GetAllParameters(p,a) (p)->GetAllParameters(a) |
| 1087 | #define IDirectSound3DBuffer_GetConeAngles(p,a,b) (p)->GetConeAngles(a,b) |
| 1088 | #define IDirectSound3DBuffer_GetConeOrientation(p,a) (p)->GetConeOrientation(a) |
| 1089 | #define IDirectSound3DBuffer_GetConeOutsideVolume(p,a) (p)->GetConeOutsideVolume(a) |
| 1090 | #define IDirectSound3DBuffer_GetMaxDistance(p,a) (p)->GetMaxDistance(a) |
| 1091 | #define IDirectSound3DBuffer_GetMinDistance(p,a) (p)->GetMinDistance(a) |
| 1092 | #define IDirectSound3DBuffer_GetMode(p,a) (p)->GetMode(a) |
| 1093 | #define IDirectSound3DBuffer_GetPosition(p,a) (p)->GetPosition(a) |
| 1094 | #define IDirectSound3DBuffer_GetVelocity(p,a) (p)->GetVelocity(a) |
| 1095 | #define IDirectSound3DBuffer_SetAllParameters(p,a,b) (p)->SetAllParameters(a,b) |
| 1096 | #define IDirectSound3DBuffer_SetConeAngles(p,a,b) (p)->SetConeAngles(a,b) |
| 1097 | #define IDirectSound3DBuffer_SetConeOrientation(p,a,b,c,d) (p)->SetConeOrientation(a,b,c,d) |
| 1098 | #define IDirectSound3DBuffer_SetConeOutsideVolume(p,a,b) (p)->SetConeOutsideVolume(a,b) |
| 1099 | #define IDirectSound3DBuffer_SetMaxDistance(p,a,b) (p)->SetMaxDistance(a,b) |
| 1100 | #define IDirectSound3DBuffer_SetMinDistance(p,a,b) (p)->SetMinDistance(a,b) |
| 1101 | #define IDirectSound3DBuffer_SetMode(p,a,b) (p)->SetMode(a,b) |
| 1102 | #define IDirectSound3DBuffer_SetPosition(p,a,b,c,d) (p)->SetPosition(a,b,c,d) |
| 1103 | #define IDirectSound3DBuffer_SetVelocity(p,a,b,c,d) (p)->SetVelocity(a,b,c,d) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1104 | #endif |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 1105 | |
Alexandre Julliard | 140e722 | 2002-05-05 19:40:57 +0000 | [diff] [blame] | 1106 | /***************************************************************************** |
| 1107 | * IKsPropertySet interface |
| 1108 | */ |
Alexandre Julliard | 4433f15 | 2003-07-01 04:33:35 +0000 | [diff] [blame] | 1109 | #ifndef _IKsPropertySet_ |
| 1110 | #define _IKsPropertySet_ |
| 1111 | |
| 1112 | typedef struct IKsPropertySet IKsPropertySet,*LPKSPROPERTYSET; |
| 1113 | |
| 1114 | DEFINE_GUID(IID_IKsPropertySet,0x31EFAC30,0x515C,0x11D0,0xA9,0xAA,0x00,0xAA,0x00,0x61,0xBE,0x93); |
| 1115 | |
Alexandre Julliard | 140e722 | 2002-05-05 19:40:57 +0000 | [diff] [blame] | 1116 | #define KSPROPERTY_SUPPORT_GET 1 |
| 1117 | #define KSPROPERTY_SUPPORT_SET 2 |
| 1118 | |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1119 | #define INTERFACE IKsPropertySet |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 1120 | DECLARE_INTERFACE_(IKsPropertySet,IUnknown) |
| 1121 | { |
| 1122 | /*** IUnknown methods ***/ |
| 1123 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 1124 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 1125 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 1126 | /*** IKsPropertySet methods ***/ |
| 1127 | STDMETHOD(Get)(THIS_ REFGUID rgid,ULONG x1,LPVOID p1,ULONG x2,LPVOID p2,ULONG x3,ULONG *px4) PURE; |
| 1128 | STDMETHOD(Set)(THIS_ REFGUID rgid,ULONG x1,LPVOID p1,ULONG x2,LPVOID p2,ULONG x3) PURE; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1129 | STDMETHOD(QuerySupport)(THIS_ REFGUID rgid,ULONG x1,ULONG *px2) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 1130 | }; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1131 | #undef INTERFACE |
Alexandre Julliard | 140e722 | 2002-05-05 19:40:57 +0000 | [diff] [blame] | 1132 | |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 1133 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 1134 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1135 | #define IKsPropertySet_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1136 | #define IKsPropertySet_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1137 | #define IKsPropertySet_Release(p) (p)->lpVtbl->Release(p) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 1138 | /*** IKsPropertySet methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1139 | #define IKsPropertySet_Get(p,a,b,c,d,e,f,g) (p)->lpVtbl->Get(p,a,b,c,d,e,f,g) |
| 1140 | #define IKsPropertySet_Set(p,a,b,c,d,e,f) (p)->lpVtbl->Set(p,a,b,c,d,e,f) |
| 1141 | #define IKsPropertySet_QuerySupport(p,a,b,c) (p)->lpVtbl->QuerySupport(p,a,b,c) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 1142 | #else |
| 1143 | /*** IUnknown methods ***/ |
| 1144 | #define IKsPropertySet_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 1145 | #define IKsPropertySet_AddRef(p) (p)->AddRef() |
| 1146 | #define IKsPropertySet_Release(p) (p)->Release() |
| 1147 | /*** IKsPropertySet methods ***/ |
| 1148 | #define IKsPropertySet_Get(p,a,b,c,d,e,f,g) (p)->Get(a,b,c,d,e,f,g) |
| 1149 | #define IKsPropertySet_Set(p,a,b,c,d,e,f) (p)->Set(a,b,c,d,e,f) |
| 1150 | #define IKsPropertySet_QuerySupport(p,a,b,c) (p)->QuerySupport(a,b,c) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1151 | #endif |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 1152 | |
Alexandre Julliard | 4433f15 | 2003-07-01 04:33:35 +0000 | [diff] [blame] | 1153 | #endif /* _IKsPropertySet_ */ |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 1154 | |
Robert Reif | bc362fd | 2003-02-24 20:37:50 +0000 | [diff] [blame] | 1155 | /***************************************************************************** |
| 1156 | * IDirectSoundFullDuplex interface |
| 1157 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1158 | #define INTERFACE IDirectSoundFullDuplex |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 1159 | DECLARE_INTERFACE_(IDirectSoundFullDuplex,IUnknown) |
| 1160 | { |
| 1161 | /*** IUnknown methods ***/ |
| 1162 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 1163 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 1164 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 1165 | /*** IDirectSoundFullDuplex methods ***/ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1166 | STDMETHOD(Initialize)(THIS_ LPCGUID pCaptureGuid,LPCGUID pRendererGuid,LPCDSCBUFFERDESC lpDscBufferDesc,LPCDSBUFFERDESC lpDsBufferDesc,HWND hWnd,DWORD dwLevel,LPLPDIRECTSOUNDCAPTUREBUFFER8 lplpDirectSoundCaptureBuffer8,LPLPDIRECTSOUNDBUFFER8 lplpDirectSoundBuffer8) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 1167 | }; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1168 | #undef INTERFACE |
Robert Reif | bc362fd | 2003-02-24 20:37:50 +0000 | [diff] [blame] | 1169 | |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 1170 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 1171 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1172 | #define IDirectSoundFullDuplex_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1173 | #define IDirectSoundFullDuplex_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1174 | #define IDirectSoundFullDuplex_Release(p) (p)->lpVtbl->Release(p) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 1175 | /*** IDirectSoundFullDuplex methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1176 | #define IDirectSoundFullDuplex_Initialize(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->Initialize(p,a,b,c,d,e,f,g,h) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 1177 | #else |
| 1178 | /*** IUnknown methods ***/ |
| 1179 | #define IDirectSoundFullDuplex_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 1180 | #define IDirectSoundFullDuplex_AddRef(p) (p)->AddRef() |
| 1181 | #define IDirectSoundFullDuplex_Release(p) (p)->Release() |
| 1182 | /*** IDirectSoundFullDuplex methods ***/ |
| 1183 | #define IDirectSoundFullDuplex_Initialize(p,a,b,c,d,e,f,g,h) (p)->Initialize(a,b,c,d,e,f,g,h) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1184 | #endif |
Robert Reif | bc362fd | 2003-02-24 20:37:50 +0000 | [diff] [blame] | 1185 | |
Patrik Stridvall | 14da7b1 | 1999-06-12 10:53:06 +0000 | [diff] [blame] | 1186 | #ifdef __cplusplus |
| 1187 | } /* extern "C" */ |
| 1188 | #endif /* defined(__cplusplus) */ |
Francois Gouget | bed8c26 | 1999-04-11 11:51:48 +0000 | [diff] [blame] | 1189 | |
| 1190 | #endif /* __WINE_DSOUND_H */ |