dsound.h 92 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885
  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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  17. */
  18. #include <_mingw_unicode.h>
  19. #undef INTERFACE
  20. #ifndef __DSOUND_INCLUDED__
  21. #define __DSOUND_INCLUDED__
  22. #ifndef DIRECTSOUND_VERSION
  23. #define DIRECTSOUND_VERSION 0x0900
  24. #endif
  25. #define COM_NO_WINDOWS_H
  26. #include <objbase.h>
  27. #include <float.h>
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif /* defined(__cplusplus) */
  31. #ifndef DX_SHARED_DEFINES
  32. typedef float D3DVALUE, *LPD3DVALUE;
  33. #ifndef D3DCOLOR_DEFINED
  34. typedef DWORD D3DCOLOR, *LPD3DCOLOR;
  35. #define D3DCOLOR_DEFINED
  36. #endif
  37. #ifndef D3DVECTOR_DEFINED
  38. typedef struct _D3DVECTOR {
  39. float x;
  40. float y;
  41. float z;
  42. } D3DVECTOR;
  43. #define D3DVECTOR_DEFINED
  44. #endif
  45. #ifndef LPD3DVECTOR_DEFINED
  46. typedef D3DVECTOR *LPD3DVECTOR;
  47. #define LPD3DVECTOR_DEFINED
  48. #endif
  49. #define DX_SHARED_DEFINES
  50. #endif /* DX_SHARED_DEFINES */
  51. /*****************************************************************************
  52. * Predeclare the interfaces
  53. */
  54. DEFINE_GUID(CLSID_DirectSound, 0x47d4d946, 0x62e8, 0x11cf, 0x93, 0xbc, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00);
  55. DEFINE_GUID(CLSID_DirectSound8, 0x3901cc3f, 0x84b5, 0x4fa4, 0xba, 0x35, 0xaa, 0x81, 0x72, 0xb8, 0xa0, 0x9b);
  56. DEFINE_GUID(CLSID_DirectSoundCapture, 0xb0210780, 0x89cd, 0x11d0, 0xaf, 0x08, 0x00, 0xa0, 0xc9, 0x25, 0xcd, 0x16);
  57. DEFINE_GUID(CLSID_DirectSoundCapture8, 0xe4bcac13, 0x7f99, 0x4908, 0x9a, 0x8e, 0x74, 0xe3, 0xbf, 0x24, 0xb6, 0xe1);
  58. DEFINE_GUID(CLSID_DirectSoundFullDuplex,0xfea4300c, 0x7959, 0x4147, 0xb2, 0x6a, 0x23, 0x77, 0xb9, 0xe7, 0xa9, 0x1d);
  59. DEFINE_GUID(IID_IDirectSound, 0x279AFA83,0x4981,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60);
  60. typedef struct IDirectSound *LPDIRECTSOUND,**LPLPDIRECTSOUND;
  61. DEFINE_GUID(IID_IDirectSound8, 0xC50A7E93,0xF395,0x4834,0x9E,0xF6,0x7F,0xA9,0x9D,0xE5,0x09,0x66);
  62. typedef struct IDirectSound8 *LPDIRECTSOUND8,**LPLPDIRECTSOUND8;
  63. DEFINE_GUID(IID_IDirectSoundBuffer, 0x279AFA85,0x4981,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60);
  64. typedef struct IDirectSoundBuffer *LPDIRECTSOUNDBUFFER,**LPLPDIRECTSOUNDBUFFER;
  65. DEFINE_GUID(IID_IDirectSoundBuffer8, 0x6825A449,0x7524,0x4D82,0x92,0x0F,0x50,0xE3,0x6A,0xB3,0xAB,0x1E);
  66. typedef struct IDirectSoundBuffer8 *LPDIRECTSOUNDBUFFER8,**LPLPDIRECTSOUNDBUFFER8;
  67. DEFINE_GUID(IID_IDirectSoundNotify, 0xB0210783,0x89cd,0x11d0,0xAF,0x08,0x00,0xA0,0xC9,0x25,0xCD,0x16);
  68. typedef struct IDirectSoundNotify *LPDIRECTSOUNDNOTIFY,**LPLPDIRECTSOUNDNOTIFY;
  69. #define IDirectSoundNotify8 IDirectSoundNotify
  70. typedef struct IDirectSoundNotify8 *LPDIRECTSOUNDNOTIFY8;
  71. #define IID_IDirectSoundNotify8 IID_IDirectSoundNotify
  72. DEFINE_GUID(IID_IDirectSound3DListener, 0x279AFA84,0x4981,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60);
  73. typedef struct IDirectSound3DListener *LPDIRECTSOUND3DLISTENER,**LPLPDIRECTSOUND3DLISTENER;
  74. #define IDirectSound3DListener8 IDirectSound3DListener
  75. typedef struct IDirectSound3DListener8 *LPDIRECTSOUND3DLISTENER8;
  76. #define IID_IDirectSound3DListener8 IID_IDirectSound3DListener
  77. DEFINE_GUID(IID_IDirectSound3DBuffer, 0x279AFA86,0x4981,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60);
  78. typedef struct IDirectSound3DBuffer *LPDIRECTSOUND3DBUFFER,**LPLPDIRECTSOUND3DBUFFER;
  79. #define IDirectSound3DBuffer8 IDirectSound3DBuffer
  80. typedef struct IDirectSound3DBuffer8 *LPDIRECTSOUND3DBUFFER8;
  81. #define IID_IDirectSound3DBuffer8 IID_IDirectSound3DBuffer
  82. DEFINE_GUID(IID_IDirectSoundCapture, 0xB0210781,0x89CD,0x11D0,0xAF,0x08,0x00,0xA0,0xC9,0x25,0xCD,0x16);
  83. typedef struct IDirectSoundCapture *LPDIRECTSOUNDCAPTURE,**LPLPDIRECTSOUNDCAPTURE;
  84. #define IID_IDirectSoundCapture8 IID_IDirectSoundCapture
  85. typedef struct IDirectSoundCapture IDirectSoundCapture8,*LPDIRECTSOUNDCAPTURE8,**LPLPDIRECTSOUNDCAPTURE8;
  86. DEFINE_GUID(IID_IDirectSoundCaptureBuffer,0xB0210782,0x89CD,0x11D0,0xAF,0x08,0x00,0xA0,0xC9,0x25,0xCD,0x16);
  87. typedef struct IDirectSoundCaptureBuffer *LPDIRECTSOUNDCAPTUREBUFFER,**LPLPDIRECTSOUNDCAPTUREBUFFER;
  88. DEFINE_GUID(IID_IDirectSoundCaptureBuffer8,0x00990DF4,0x0DBB,0x4872,0x83,0x3E,0x6D,0x30,0x3E,0x80,0xAE,0xB6);
  89. typedef struct IDirectSoundCaptureBuffer8 *LPDIRECTSOUNDCAPTUREBUFFER8,**LPLPDIRECTSOUNDCAPTUREBUFFER8;
  90. DEFINE_GUID(IID_IDirectSoundFullDuplex, 0xEDCB4C7A,0xDAAB,0x4216,0xA4,0x2E,0x6C,0x50,0x59,0x6D,0xDC,0x1D);
  91. typedef struct IDirectSoundFullDuplex *LPDIRECTSOUNDFULLDUPLEX,**LPLPDIRECTSOUNDFULLDUPLEX;
  92. #define IDirectSoundFullDuplex8 IDirectSoundFullDuplex
  93. typedef struct IDirectSoundFullDuplex8 *LPDIRECTSOUNDFULLDUPLEX8;
  94. #define IID_IDirectSoundFullDuplex8 IID_IDirectSoundFullDuplex
  95. DEFINE_GUID(IID_IDirectSoundFXI3DL2Reverb, 0x4b166a6a, 0x0d66, 0x43f3, 0x80, 0xe3, 0xee, 0x62, 0x80, 0xde, 0xe1, 0xa4);
  96. typedef struct IDirectSoundFXI3DL2Reverb *LPDIRECTSOUNDFXI3DL2REVERB;
  97. #define IDirectSoundFXI3DL2Reverb8 IDirectSoundFXI3DL2Reverb
  98. #define IID_IDirectSoundFXI3DL2Reverb8 IID_IDirectSoundFXI3DL2Reverb
  99. typedef struct IDirectSoundFXI3DL2Reverb8 *LPDIRECTSOUNDFXI3DL2REVERB8;
  100. DEFINE_GUID(DSDEVID_DefaultPlayback, 0xDEF00000,0x9C6D,0x47Ed,0xAA,0xF1,0x4D,0xDA,0x8F,0x2B,0x5C,0x03);
  101. DEFINE_GUID(DSDEVID_DefaultCapture, 0xDEF00001,0x9C6D,0x47Ed,0xAA,0xF1,0x4D,0xDA,0x8F,0x2B,0x5C,0x03);
  102. DEFINE_GUID(DSDEVID_DefaultVoicePlayback,0xDEF00002,0x9C6D,0x47Ed,0xAA,0xF1,0x4D,0xDA,0x8F,0x2B,0x5C,0x03);
  103. DEFINE_GUID(DSDEVID_DefaultVoiceCapture, 0xDEF00003,0x9C6D,0x47ED,0xAA,0xF1,0x4D,0xDA,0x8F,0x2B,0x5C,0x03);
  104. #define DS3DALG_DEFAULT GUID_NULL
  105. DEFINE_GUID(DS3DALG_NO_VIRTUALIZATION, 0xc241333f,0x1c1b,0x11d2,0x94,0xf5,0x00,0xc0,0x4f,0xc2,0x8a,0xca);
  106. DEFINE_GUID(DS3DALG_HRTF_FULL, 0xc2413340,0x1c1b,0x11d2,0x94,0xf5,0x00,0xc0,0x4f,0xc2,0x8a,0xca);
  107. DEFINE_GUID(DS3DALG_HRTF_LIGHT, 0xc2413342,0x1c1b,0x11d2,0x94,0xf5,0x00,0xc0,0x4f,0xc2,0x8a,0xca);
  108. DEFINE_GUID(GUID_DSFX_STANDARD_GARGLE, 0xDAFD8210,0x5711,0x4B91,0x9F,0xE3,0xF7,0x5B,0x7A,0xE2,0x79,0xBF);
  109. DEFINE_GUID(GUID_DSFX_STANDARD_CHORUS, 0xEFE6629C,0x81F7,0x4281,0xBD,0x91,0xC9,0xD6,0x04,0xA9,0x5A,0xF6);
  110. DEFINE_GUID(GUID_DSFX_STANDARD_FLANGER, 0xEFCA3D92,0xDFD8,0x4672,0xA6,0x03,0x74,0x20,0x89,0x4B,0xAD,0x98);
  111. DEFINE_GUID(GUID_DSFX_STANDARD_ECHO, 0xEF3E932C,0xD40B,0x4F51,0x8C,0xCF,0x3F,0x98,0xF1,0xB2,0x9D,0x5D);
  112. DEFINE_GUID(GUID_DSFX_STANDARD_DISTORTION, 0xEF114C90,0xCD1D,0x484E,0x96,0xE5,0x09,0xCF,0xAF,0x91,0x2A,0x21);
  113. DEFINE_GUID(GUID_DSFX_STANDARD_COMPRESSOR, 0xEF011F79,0x4000,0x406D,0x87,0xAF,0xBF,0xFB,0x3F,0xC3,0x9D,0x57);
  114. DEFINE_GUID(GUID_DSFX_STANDARD_PARAMEQ, 0x120CED89,0x3BF4,0x4173,0xA1,0x32,0x3C,0xB4,0x06,0xCF,0x32,0x31);
  115. DEFINE_GUID(GUID_DSFX_STANDARD_I3DL2REVERB, 0xEF985E71,0xD5C7,0x42D4,0xBA,0x4D,0x2D,0x07,0x3E,0x2E,0x96,0xF4);
  116. DEFINE_GUID(GUID_DSFX_WAVES_REVERB, 0x87FC0268,0x9A55,0x4360,0x95,0xAA,0x00,0x4A,0x1D,0x9D,0xE2,0x6C);
  117. DEFINE_GUID(GUID_DSCFX_CLASS_AEC, 0xBF963D80,0xC559,0x11D0,0x8A,0x2B,0x00,0xA0,0xC9,0x25,0x5A,0xC1);
  118. DEFINE_GUID(GUID_DSCFX_MS_AEC, 0xCDEBB919,0x379A,0x488A,0x87,0x65,0xF5,0x3C,0xFD,0x36,0xDE,0x40);
  119. DEFINE_GUID(GUID_DSCFX_SYSTEM_AEC, 0x1C22C56D,0x9879,0x4F5B,0xA3,0x89,0x27,0x99,0x6D,0xDC,0x28,0x10);
  120. DEFINE_GUID(GUID_DSCFX_CLASS_NS, 0xE07F903F,0x62FD,0x4E60,0x8C,0xDD,0xDE,0xA7,0x23,0x66,0x65,0xB5);
  121. DEFINE_GUID(GUID_DSCFX_MS_NS, 0x11C5C73B,0x66E9,0x4BA1,0xA0,0xBA,0xE8,0x14,0xC6,0xEE,0xD9,0x2D);
  122. DEFINE_GUID(GUID_DSCFX_SYSTEM_NS, 0x5AB0882E,0x7274,0x4516,0x87,0x7D,0x4E,0xEE,0x99,0xBA,0x4F,0xD0);
  123. DEFINE_GUID(IID_IDirectSoundFXGargle, 0xd616f352,0xd622,0x11ce,0xaa,0xc5,0x00,0x20,0xaf,0x0b,0x99,0xa3);
  124. #define IDirectSoundFXGargle8 IDirectSoundFXGargle
  125. typedef struct IDirectSoundFXGargle8 *LPDIRECTSOUNDFXGARGLE8;
  126. #define IID_IDirectSoundFXGargle8 IID_IDirectSoundFXGargle
  127. DEFINE_GUID(IID_IDirectSoundFXChorus, 0x880842e3,0x145f,0x43e6,0xa9,0x34,0xa7,0x18,0x06,0xe5,0x05,0x47);
  128. #define IDirectSoundFXChorus8 IDirectSoundFXChorus
  129. typedef struct IDirectSoundFXChorus8 *LPDIRECTSOUNDFXCHORUS8;
  130. #define IID_IDirectSoundFXChorus8 IID_IDirectSoundFXChorus
  131. DEFINE_GUID(IID_IDirectSoundFXFlanger, 0x903e9878,0x2c92,0x4072,0x9b,0x2c,0xea,0x68,0xf5,0x39,0x67,0x83);
  132. #define IDirectSoundFXFlanger8 IDirectSoundFXFlanger
  133. typedef struct IDirectSoundFXFlanger8 *LPDIRECTSOUNDFXFLANGER8;
  134. #define IID_IDirectSoundFXFlanger8 IID_IDirectSoundFXFlanger
  135. DEFINE_GUID(IID_IDirectSoundFXEcho, 0x8bd28edf,0x50db,0x4e92,0xa2,0xbd,0x44,0x54,0x88, 0xd1,0xed,0x42);
  136. #define IDirectSoundFXEcho8 IDirectSoundFXEcho
  137. typedef struct IDirectSoundFXEcho8 *LPDIRECTSOUNDFXECHO8;
  138. #define IID_IDirectSoundFXEcho8 IID_IDirectSoundFXEcho
  139. DEFINE_GUID(IID_IDirectSoundFXDistortion, 0x8ecf4326,0x455f,0x4d8b,0xbd,0xa9,0x8d,0x5d,0x3e,0x9e,0x3e,0x0b);
  140. #define IDirectSoundFXDistortion8 IDirectSoundFXDistortion
  141. typedef struct IDirectSoundFXDistortion8 *LPDIRECTSOUNDFXDISTORTION8;
  142. #define IID_IDirectSoundFXDistortion8 IID_IDirectSoundFXDistortion
  143. DEFINE_GUID(IID_IDirectSoundFXCompressor, 0x4bbd1154,0x62f6,0x4e2c,0xa1,0x5c,0xd3,0xb6,0xc4,0x17,0xf7,0xa0);
  144. #define IDirectSoundFXCompressor8 IDirectSoundFXCompressor
  145. typedef struct IDirectSoundFXCompressor8 *LPDIRECTSOUNDFXCOMPRESSOR8;
  146. #define IID_IDirectSoundFXCompressor8 IID_IDirectSoundFXCompressor
  147. DEFINE_GUID(IID_IDirectSoundFXParamEq, 0xc03ca9fe,0xfe90,0x4204,0x80,0x78,0x82,0x33,0x4c,0xd1,0x77,0xda);
  148. #define IDirectSoundFXParamEq8 IDirectSoundFXParamEq
  149. typedef struct IDirectSoundFXParamEq8 *LPDIRECTSOUNDFXPARAMEQ8;
  150. #define IID_IDirectSoundFXParamEq8 IID_IDirectSoundFXParamEq
  151. DEFINE_GUID(IID_IDirectSoundFXWavesReverb, 0x46858c3a,0x0dc6,0x45e3,0xb7,0x60,0xd4,0xee,0xf1,0x6c,0xb3,0x25);
  152. #define IDirectSoundFXWavesReverb8 IDirectSoundFXWavesReverb
  153. typedef struct IDirectSoundFXWavesReverb8 *LPDIRECTSOUNDFXWAVESREVERB8;
  154. #define IID_IDirectSoundFXWavesReverb8 IID_IDirectSoundFXWavesReverb
  155. #define _FACDS 0x878
  156. #define MAKE_DSHRESULT(code) MAKE_HRESULT(1,_FACDS,code)
  157. #define DS_OK 0
  158. #define DS_NO_VIRTUALIZATION MAKE_HRESULT(0, _FACDS, 10)
  159. #define DS_INCOMPLETE MAKE_HRESULT(0, _FACDS, 20)
  160. #define DSERR_ALLOCATED MAKE_DSHRESULT(10)
  161. #define DSERR_CONTROLUNAVAIL MAKE_DSHRESULT(30)
  162. #define DSERR_INVALIDPARAM E_INVALIDARG
  163. #define DSERR_INVALIDCALL MAKE_DSHRESULT(50)
  164. #define DSERR_GENERIC E_FAIL
  165. #define DSERR_PRIOLEVELNEEDED MAKE_DSHRESULT(70)
  166. #define DSERR_OUTOFMEMORY E_OUTOFMEMORY
  167. #define DSERR_BADFORMAT MAKE_DSHRESULT(100)
  168. #define DSERR_UNSUPPORTED E_NOTIMPL
  169. #define DSERR_NODRIVER MAKE_DSHRESULT(120)
  170. #define DSERR_ALREADYINITIALIZED MAKE_DSHRESULT(130)
  171. #define DSERR_NOAGGREGATION CLASS_E_NOAGGREGATION
  172. #define DSERR_BUFFERLOST MAKE_DSHRESULT(150)
  173. #define DSERR_OTHERAPPHASPRIO MAKE_DSHRESULT(160)
  174. #define DSERR_UNINITIALIZED MAKE_DSHRESULT(170)
  175. #define DSERR_NOINTERFACE E_NOINTERFACE
  176. #define DSERR_ACCESSDENIED E_ACCESSDENIED
  177. #define DSERR_BUFFERTOOSMALL MAKE_DSHRESULT(180)
  178. #define DSERR_DS8_REQUIRED MAKE_DSHRESULT(190)
  179. #define DSERR_SENDLOOP MAKE_DSHRESULT(200)
  180. #define DSERR_BADSENDBUFFERGUID MAKE_DSHRESULT(210)
  181. #define DSERR_FXUNAVAILABLE MAKE_DSHRESULT(220)
  182. #define DSERR_OBJECTNOTFOUND MAKE_DSHRESULT(4449)
  183. #define DSCAPS_PRIMARYMONO 0x00000001
  184. #define DSCAPS_PRIMARYSTEREO 0x00000002
  185. #define DSCAPS_PRIMARY8BIT 0x00000004
  186. #define DSCAPS_PRIMARY16BIT 0x00000008
  187. #define DSCAPS_CONTINUOUSRATE 0x00000010
  188. #define DSCAPS_EMULDRIVER 0x00000020
  189. #define DSCAPS_CERTIFIED 0x00000040
  190. #define DSCAPS_SECONDARYMONO 0x00000100
  191. #define DSCAPS_SECONDARYSTEREO 0x00000200
  192. #define DSCAPS_SECONDARY8BIT 0x00000400
  193. #define DSCAPS_SECONDARY16BIT 0x00000800
  194. #define DSSCL_NORMAL 1
  195. #define DSSCL_PRIORITY 2
  196. #define DSSCL_EXCLUSIVE 3
  197. #define DSSCL_WRITEPRIMARY 4
  198. typedef struct _DSCAPS
  199. {
  200. DWORD dwSize;
  201. DWORD dwFlags;
  202. DWORD dwMinSecondarySampleRate;
  203. DWORD dwMaxSecondarySampleRate;
  204. DWORD dwPrimaryBuffers;
  205. DWORD dwMaxHwMixingAllBuffers;
  206. DWORD dwMaxHwMixingStaticBuffers;
  207. DWORD dwMaxHwMixingStreamingBuffers;
  208. DWORD dwFreeHwMixingAllBuffers;
  209. DWORD dwFreeHwMixingStaticBuffers;
  210. DWORD dwFreeHwMixingStreamingBuffers;
  211. DWORD dwMaxHw3DAllBuffers;
  212. DWORD dwMaxHw3DStaticBuffers;
  213. DWORD dwMaxHw3DStreamingBuffers;
  214. DWORD dwFreeHw3DAllBuffers;
  215. DWORD dwFreeHw3DStaticBuffers;
  216. DWORD dwFreeHw3DStreamingBuffers;
  217. DWORD dwTotalHwMemBytes;
  218. DWORD dwFreeHwMemBytes;
  219. DWORD dwMaxContigFreeHwMemBytes;
  220. DWORD dwUnlockTransferRateHwBuffers;
  221. DWORD dwPlayCpuOverheadSwBuffers;
  222. DWORD dwReserved1;
  223. DWORD dwReserved2;
  224. } DSCAPS,*LPDSCAPS;
  225. typedef const DSCAPS *LPCDSCAPS;
  226. #define DSBPLAY_LOOPING 0x00000001
  227. #define DSBPLAY_LOCHARDWARE 0x00000002
  228. #define DSBPLAY_LOCSOFTWARE 0x00000004
  229. #define DSBPLAY_TERMINATEBY_TIME 0x00000008
  230. #define DSBPLAY_TERMINATEBY_DISTANCE 0x000000010
  231. #define DSBPLAY_TERMINATEBY_PRIORITY 0x000000020
  232. #define DSBSTATUS_PLAYING 0x00000001
  233. #define DSBSTATUS_BUFFERLOST 0x00000002
  234. #define DSBSTATUS_LOOPING 0x00000004
  235. #define DSBSTATUS_LOCHARDWARE 0x00000008
  236. #define DSBSTATUS_LOCSOFTWARE 0x00000010
  237. #define DSBSTATUS_TERMINATED 0x00000020
  238. #define DSBLOCK_FROMWRITECURSOR 0x00000001
  239. #define DSBLOCK_ENTIREBUFFER 0x00000002
  240. #define DSBCAPS_PRIMARYBUFFER 0x00000001
  241. #define DSBCAPS_STATIC 0x00000002
  242. #define DSBCAPS_LOCHARDWARE 0x00000004
  243. #define DSBCAPS_LOCSOFTWARE 0x00000008
  244. #define DSBCAPS_CTRL3D 0x00000010
  245. #define DSBCAPS_CTRLFREQUENCY 0x00000020
  246. #define DSBCAPS_CTRLPAN 0x00000040
  247. #define DSBCAPS_CTRLVOLUME 0x00000080
  248. #define DSBCAPS_CTRLDEFAULT 0x000000E0 /* Pan + volume + frequency. */
  249. #define DSBCAPS_CTRLPOSITIONNOTIFY 0x00000100
  250. #define DSBCAPS_CTRLFX 0x00000200
  251. #define DSBCAPS_CTRLALL 0x000001F0 /* All control capabilities */
  252. #define DSBCAPS_STICKYFOCUS 0x00004000
  253. #define DSBCAPS_GLOBALFOCUS 0x00008000
  254. #define DSBCAPS_GETCURRENTPOSITION2 0x00010000 /* More accurate play cursor under emulation*/
  255. #define DSBCAPS_MUTE3DATMAXDISTANCE 0x00020000
  256. #define DSBCAPS_LOCDEFER 0x00040000
  257. #define DSBSIZE_MIN 4
  258. #define DSBSIZE_MAX 0xFFFFFFF
  259. #define DSBSIZE_FX_MIN 150
  260. #define DSBPAN_LEFT -10000
  261. #define DSBPAN_CENTER 0
  262. #define DSBPAN_RIGHT 10000
  263. #define DSBVOLUME_MAX 0
  264. #define DSBVOLUME_MIN -10000
  265. #define DSBFREQUENCY_MIN 100
  266. #if (DIRECTSOUND_VERSION >= 0x0900)
  267. #define DSBFREQUENCY_MAX 200000
  268. #else
  269. #define DSBFREQUENCY_MAX 100000
  270. #endif
  271. #define DSBFREQUENCY_ORIGINAL 0
  272. #define DSBNOTIFICATIONS_MAX 100000U
  273. typedef struct _DSBCAPS
  274. {
  275. DWORD dwSize;
  276. DWORD dwFlags;
  277. DWORD dwBufferBytes;
  278. DWORD dwUnlockTransferRate;
  279. DWORD dwPlayCpuOverhead;
  280. } DSBCAPS,*LPDSBCAPS;
  281. typedef const DSBCAPS *LPCDSBCAPS;
  282. #define DSSCL_NORMAL 1
  283. #define DSSCL_PRIORITY 2
  284. #define DSSCL_EXCLUSIVE 3
  285. #define DSSCL_WRITEPRIMARY 4
  286. typedef struct _DSEFFECTDESC
  287. {
  288. DWORD dwSize;
  289. DWORD dwFlags;
  290. GUID guidDSFXClass;
  291. DWORD_PTR dwReserved1;
  292. DWORD_PTR dwReserved2;
  293. } DSEFFECTDESC,*LPDSEFFECTDESC;
  294. typedef const DSEFFECTDESC *LPCDSEFFECTDESC;
  295. #define DSFX_LOCHARDWARE 0x00000001
  296. #define DSFX_LOCSOFTWARE 0x00000002
  297. enum
  298. {
  299. DSFXR_PRESENT,
  300. DSFXR_LOCHARDWARE,
  301. DSFXR_LOCSOFTWARE,
  302. DSFXR_UNALLOCATED,
  303. DSFXR_FAILED,
  304. DSFXR_UNKNOWN,
  305. DSFXR_SENDLOOP
  306. };
  307. typedef struct _DSBUFFERDESC1
  308. {
  309. DWORD dwSize;
  310. DWORD dwFlags;
  311. DWORD dwBufferBytes;
  312. DWORD dwReserved;
  313. LPWAVEFORMATEX lpwfxFormat;
  314. } DSBUFFERDESC1,*LPDSBUFFERDESC1;
  315. typedef const DSBUFFERDESC1 *LPCDSBUFFERDESC1;
  316. typedef struct _DSBUFFERDESC
  317. {
  318. DWORD dwSize;
  319. DWORD dwFlags;
  320. DWORD dwBufferBytes;
  321. DWORD dwReserved;
  322. LPWAVEFORMATEX lpwfxFormat;
  323. #if (DIRECTSOUND_VERSION >= 0x0700)
  324. GUID guid3DAlgorithm;
  325. #endif /* DS7 */
  326. } DSBUFFERDESC,*LPDSBUFFERDESC;
  327. typedef const DSBUFFERDESC *LPCDSBUFFERDESC;
  328. typedef struct _DSBPOSITIONNOTIFY
  329. {
  330. DWORD dwOffset;
  331. HANDLE hEventNotify;
  332. } DSBPOSITIONNOTIFY,*LPDSBPOSITIONNOTIFY;
  333. typedef const DSBPOSITIONNOTIFY *LPCDSBPOSITIONNOTIFY;
  334. #define DSSPEAKER_DIRECTOUT 0
  335. #define DSSPEAKER_HEADPHONE 1
  336. #define DSSPEAKER_MONO 2
  337. #define DSSPEAKER_QUAD 3
  338. #define DSSPEAKER_STEREO 4
  339. #define DSSPEAKER_SURROUND 5
  340. #define DSSPEAKER_5POINT1 6
  341. #define DSSPEAKER_5POINT1_BACK 6
  342. #define DSSPEAKER_7POINT1 7
  343. #define DSSPEAKER_7POINT1_WIDE 7
  344. #define DSSPEAKER_7POINT1_SURROUND 8
  345. #define DSSPEAKER_5POINT1_SURROUND 9
  346. #define DSSPEAKER_GEOMETRY_MIN 0x00000005 /* 5 degrees */
  347. #define DSSPEAKER_GEOMETRY_NARROW 0x0000000A /* 10 degrees */
  348. #define DSSPEAKER_GEOMETRY_WIDE 0x00000014 /* 20 degrees */
  349. #define DSSPEAKER_GEOMETRY_MAX 0x000000B4 /* 180 degrees */
  350. #define DSSPEAKER_COMBINED(c, g) ((DWORD)(((BYTE)(c)) | ((DWORD)((BYTE)(g))) << 16))
  351. #define DSSPEAKER_CONFIG(a) ((BYTE)(a))
  352. #define DSSPEAKER_GEOMETRY(a) ((BYTE)(((DWORD)(a) >> 16) & 0x00FF))
  353. #define DS_CERTIFIED 0x00000000
  354. #define DS_UNCERTIFIED 0x00000001
  355. typedef struct _DSCEFFECTDESC
  356. {
  357. DWORD dwSize;
  358. DWORD dwFlags;
  359. GUID guidDSCFXClass;
  360. GUID guidDSCFXInstance;
  361. DWORD dwReserved1;
  362. DWORD dwReserved2;
  363. } DSCEFFECTDESC, *LPDSCEFFECTDESC;
  364. typedef const DSCEFFECTDESC *LPCDSCEFFECTDESC;
  365. #define DSCFX_LOCHARDWARE 0x00000001
  366. #define DSCFX_LOCSOFTWARE 0x00000002
  367. #define DSCFXR_LOCHARDWARE 0x00000010
  368. #define DSCFXR_LOCSOFTWARE 0x00000020
  369. typedef struct _DSCBUFFERDESC1
  370. {
  371. DWORD dwSize;
  372. DWORD dwFlags;
  373. DWORD dwBufferBytes;
  374. DWORD dwReserved;
  375. LPWAVEFORMATEX lpwfxFormat;
  376. } DSCBUFFERDESC1, *LPDSCBUFFERDESC1;
  377. typedef struct _DSCBUFFERDESC
  378. {
  379. DWORD dwSize;
  380. DWORD dwFlags;
  381. DWORD dwBufferBytes;
  382. DWORD dwReserved;
  383. LPWAVEFORMATEX lpwfxFormat;
  384. #if (DIRECTSOUND_VERSION >= 0x0800)
  385. DWORD dwFXCount;
  386. LPDSCEFFECTDESC lpDSCFXDesc;
  387. #endif /* DS8 */
  388. } DSCBUFFERDESC, *LPDSCBUFFERDESC;
  389. typedef const DSCBUFFERDESC *LPCDSCBUFFERDESC;
  390. typedef struct _DSCCAPS
  391. {
  392. DWORD dwSize;
  393. DWORD dwFlags;
  394. DWORD dwFormats;
  395. DWORD dwChannels;
  396. } DSCCAPS, *LPDSCCAPS;
  397. typedef const DSCCAPS *LPCDSCCAPS;
  398. typedef struct _DSCBCAPS
  399. {
  400. DWORD dwSize;
  401. DWORD dwFlags;
  402. DWORD dwBufferBytes;
  403. DWORD dwReserved;
  404. } DSCBCAPS, *LPDSCBCAPS;
  405. typedef const DSCBCAPS *LPCDSCBCAPS;
  406. typedef struct _DSFXI3DL2Reverb
  407. {
  408. LONG lRoom;
  409. LONG lRoomHF;
  410. FLOAT flRoomRolloffFactor;
  411. FLOAT flDecayTime;
  412. FLOAT flDecayHFRatio;
  413. LONG lReflections;
  414. FLOAT flReflectionsDelay;
  415. LONG lReverb;
  416. FLOAT flReverbDelay;
  417. FLOAT flDiffusion;
  418. FLOAT flDensity;
  419. FLOAT flHFReference;
  420. } DSFXI3DL2Reverb, *LPDSFXI3DL2Reverb;
  421. #define DSFX_I3DL2REVERB_DECAYTIME_DEFAULT 1.49f
  422. #define DSFX_I3DL2REVERB_DECAYTIME_MIN 0.1f
  423. #define DSFX_I3DL2REVERB_DECAYTIME_MAX 20.0f
  424. #define DSFX_I3DL2REVERB_DECAYHFRATIO_DEFAULT 0.83f
  425. #define DSFX_I3DL2REVERB_DECAYHFRATIO_MIN 0.1f
  426. #define DSFX_I3DL2REVERB_DECAYHFRATIO_MAX 2.0f
  427. #define DSFX_I3DL2REVERB_DENSITY_DEFAULT 100.0f
  428. #define DSFX_I3DL2REVERB_DENSITY_MIN 0.0f
  429. #define DSFX_I3DL2REVERB_DENSITY_MAX 100.0f
  430. #define DSFX_I3DL2REVERB_DIFFUSION_DEFAULT 100.0f
  431. #define DSFX_I3DL2REVERB_DIFFUSION_MIN 0.0f
  432. #define DSFX_I3DL2REVERB_DIFFUSION_MAX 100.0f
  433. #define DSFX_I3DL2REVERB_HFREFERENCE_DEFAULT 5000.0f
  434. #define DSFX_I3DL2REVERB_HFREFERENCE_MIN 20.0f
  435. #define DSFX_I3DL2REVERB_HFREFERENCE_MAX 20000.0f
  436. #define DSFX_I3DL2REVERB_QUALITY_DEFAULT 2
  437. #define DSFX_I3DL2REVERB_QUALITY_MIN 0
  438. #define DSFX_I3DL2REVERB_QUALITY_MAX 3
  439. #define DSFX_I3DL2REVERB_REFLECTIONS_DEFAULT (-2602)
  440. #define DSFX_I3DL2REVERB_REFLECTIONS_MIN (-10000)
  441. #define DSFX_I3DL2REVERB_REFLECTIONS_MAX 1000
  442. #define DSFX_I3DL2REVERB_REFLECTIONSDELAY_DEFAULT 0.007f
  443. #define DSFX_I3DL2REVERB_REFLECTIONSDELAY_MIN 0.0f
  444. #define DSFX_I3DL2REVERB_REFLECTIONSDELAY_MAX 0.3f
  445. #define DSFX_I3DL2REVERB_REVERB_MIN (-10000)
  446. #define DSFX_I3DL2REVERB_REVERB_MAX 2000
  447. #define DSFX_I3DL2REVERB_REVERB_DEFAULT 200
  448. #define DSFX_I3DL2REVERB_REVERBDELAY_MIN 0.0f
  449. #define DSFX_I3DL2REVERB_REVERBDELAY_MAX 0.1f
  450. #define DSFX_I3DL2REVERB_REVERBDELAY_DEFAULT 0.011f
  451. #define DSFX_I3DL2REVERB_ROOM_DEFAULT (-1000)
  452. #define DSFX_I3DL2REVERB_ROOM_MIN (-10000)
  453. #define DSFX_I3DL2REVERB_ROOM_MAX 0
  454. #define DSFX_I3DL2REVERB_ROOMHF_MIN (-10000)
  455. #define DSFX_I3DL2REVERB_ROOMHF_MAX 0
  456. #define DSFX_I3DL2REVERB_ROOMHF_DEFAULT (-100)
  457. #define DSFX_I3DL2REVERB_ROOMROLLOFFFACTOR_MIN 0.0f
  458. #define DSFX_I3DL2REVERB_ROOMROLLOFFFACTOR_MAX 10.0f
  459. #define DSFX_I3DL2REVERB_ROOMROLLOFFFACTOR_DEFAULT 0.0f
  460. typedef const DSFXI3DL2Reverb *LPCDSFXI3DL2Reverb;
  461. #define DSCCAPS_EMULDRIVER DSCAPS_EMULDRIVER
  462. #define DSCCAPS_CERTIFIED DSCAPS_CERTIFIED
  463. #define DSCCAPS_MULTIPLECAPTURE 0x00000001
  464. #define DSCBCAPS_WAVEMAPPED 0x80000000
  465. #define DSCBCAPS_CTRLFX 0x00000200
  466. #define DSCBLOCK_ENTIREBUFFER 0x00000001
  467. #define DSCBSTART_LOOPING 0x00000001
  468. #define DSCBPN_OFFSET_STOP 0xffffffff
  469. #define DSCBSTATUS_CAPTURING 0x00000001
  470. #define DSCBSTATUS_LOOPING 0x00000002
  471. #ifndef __LPCGUID_DEFINED__
  472. #define __LPCGUID_DEFINED__
  473. typedef const GUID *LPCGUID;
  474. #endif
  475. typedef WINBOOL (CALLBACK *LPDSENUMCALLBACKW)(LPGUID,LPCWSTR,LPCWSTR,LPVOID);
  476. typedef WINBOOL (CALLBACK *LPDSENUMCALLBACKA)(LPGUID,LPCSTR,LPCSTR,LPVOID);
  477. __MINGW_TYPEDEF_AW(LPDSENUMCALLBACK)
  478. extern HRESULT WINAPI DirectSoundCreate(LPCGUID lpGUID,LPDIRECTSOUND *ppDS,LPUNKNOWN pUnkOuter);
  479. extern HRESULT WINAPI DirectSoundEnumerateA(LPDSENUMCALLBACKA, LPVOID);
  480. extern HRESULT WINAPI DirectSoundEnumerateW(LPDSENUMCALLBACKW, LPVOID);
  481. #define DirectSoundEnumerate __MINGW_NAME_AW(DirectSoundEnumerate)
  482. extern HRESULT WINAPI DirectSoundCaptureCreate(LPCGUID lpGUID, LPDIRECTSOUNDCAPTURE *ppDSC, LPUNKNOWN pUnkOuter);
  483. extern HRESULT WINAPI DirectSoundCaptureEnumerateA(LPDSENUMCALLBACKA, LPVOID);
  484. extern HRESULT WINAPI DirectSoundCaptureEnumerateW(LPDSENUMCALLBACKW, LPVOID);
  485. #define DirectSoundCaptureEnumerate __MINGW_NAME_AW(DirectSoundCaptureEnumerate)
  486. extern HRESULT WINAPI DirectSoundCreate8(LPCGUID lpGUID,LPDIRECTSOUND8 *ppDS8,LPUNKNOWN pUnkOuter);
  487. extern HRESULT WINAPI DirectSoundCaptureCreate8(LPCGUID lpGUID, LPDIRECTSOUNDCAPTURE8 *ppDSC8, LPUNKNOWN pUnkOuter);
  488. extern HRESULT WINAPI DirectSoundFullDuplexCreate(LPCGUID pcGuidCaptureDevice, LPCGUID pcGuidRenderDevice,
  489. LPCDSCBUFFERDESC pcDSCBufferDesc, LPCDSBUFFERDESC pcDSBufferDesc, HWND hWnd, DWORD dwLevel,
  490. LPDIRECTSOUNDFULLDUPLEX *ppDSFD, LPDIRECTSOUNDCAPTUREBUFFER8 *ppDSCBuffer8, LPDIRECTSOUNDBUFFER8 *ppDSBuffer8, LPUNKNOWN pUnkOuter);
  491. #define DirectSoundFullDuplexCreate8 DirectSoundFullDuplexCreate
  492. extern HRESULT WINAPI GetDeviceID(LPCGUID lpGuidSrc, LPGUID lpGuidDest);
  493. /*****************************************************************************
  494. * IDirectSound interface
  495. */
  496. #define INTERFACE IDirectSound
  497. DECLARE_INTERFACE_(IDirectSound,IUnknown)
  498. {
  499. /*** IUnknown methods ***/
  500. STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
  501. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  502. STDMETHOD_(ULONG,Release)(THIS) PURE;
  503. /*** IDirectSound methods ***/
  504. STDMETHOD(CreateSoundBuffer)(THIS_ LPCDSBUFFERDESC lpcDSBufferDesc, LPLPDIRECTSOUNDBUFFER lplpDirectSoundBuffer, IUnknown *pUnkOuter) PURE;
  505. STDMETHOD(GetCaps)(THIS_ LPDSCAPS lpDSCaps) PURE;
  506. STDMETHOD(DuplicateSoundBuffer)(THIS_ LPDIRECTSOUNDBUFFER lpDsbOriginal, LPLPDIRECTSOUNDBUFFER lplpDsbDuplicate) PURE;
  507. STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwLevel) PURE;
  508. STDMETHOD(Compact)(THIS) PURE;
  509. STDMETHOD(GetSpeakerConfig)(THIS_ LPDWORD lpdwSpeakerConfig) PURE;
  510. STDMETHOD(SetSpeakerConfig)(THIS_ DWORD dwSpeakerConfig) PURE;
  511. STDMETHOD(Initialize)(THIS_ LPCGUID lpcGuid) PURE;
  512. };
  513. #undef INTERFACE
  514. #if !defined(__cplusplus) || defined(CINTERFACE)
  515. /*** IUnknown methods ***/
  516. #define IDirectSound_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  517. #define IDirectSound_AddRef(p) (p)->lpVtbl->AddRef(p)
  518. #define IDirectSound_Release(p) (p)->lpVtbl->Release(p)
  519. /*** IDirectSound methods ***/
  520. #define IDirectSound_CreateSoundBuffer(p,a,b,c) (p)->lpVtbl->CreateSoundBuffer(p,a,b,c)
  521. #define IDirectSound_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
  522. #define IDirectSound_DuplicateSoundBuffer(p,a,b) (p)->lpVtbl->DuplicateSoundBuffer(p,a,b)
  523. #define IDirectSound_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
  524. #define IDirectSound_Compact(p) (p)->lpVtbl->Compact(p)
  525. #define IDirectSound_GetSpeakerConfig(p,a) (p)->lpVtbl->GetSpeakerConfig(p,a)
  526. #define IDirectSound_SetSpeakerConfig(p,a) (p)->lpVtbl->SetSpeakerConfig(p,a)
  527. #define IDirectSound_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
  528. #else
  529. /*** IUnknown methods ***/
  530. #define IDirectSound_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
  531. #define IDirectSound_AddRef(p) (p)->AddRef()
  532. #define IDirectSound_Release(p) (p)->Release()
  533. /*** IDirectSound methods ***/
  534. #define IDirectSound_CreateSoundBuffer(p,a,b,c) (p)->CreateSoundBuffer(a,b,c)
  535. #define IDirectSound_GetCaps(p,a) (p)->GetCaps(a)
  536. #define IDirectSound_DuplicateSoundBuffer(p,a,b) (p)->DuplicateSoundBuffer(a,b)
  537. #define IDirectSound_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
  538. #define IDirectSound_Compact(p) (p)->Compact()
  539. #define IDirectSound_GetSpeakerConfig(p,a) (p)->GetSpeakerConfig(a)
  540. #define IDirectSound_SetSpeakerConfig(p,a) (p)->SetSpeakerConfig(a)
  541. #define IDirectSound_Initialize(p,a) (p)->Initialize(a)
  542. #endif
  543. /*****************************************************************************
  544. * IDirectSound8 interface
  545. */
  546. #define INTERFACE IDirectSound8
  547. DECLARE_INTERFACE_(IDirectSound8,IUnknown)
  548. {
  549. /*** IUnknown methods ***/
  550. STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
  551. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  552. STDMETHOD_(ULONG,Release)(THIS) PURE;
  553. /*** IDirectSound8 methods ***/
  554. STDMETHOD(CreateSoundBuffer)(THIS_ LPCDSBUFFERDESC lpcDSBufferDesc, LPLPDIRECTSOUNDBUFFER lplpDirectSoundBuffer, IUnknown *pUnkOuter) PURE;
  555. STDMETHOD(GetCaps)(THIS_ LPDSCAPS lpDSCaps) PURE;
  556. STDMETHOD(DuplicateSoundBuffer)(THIS_ LPDIRECTSOUNDBUFFER lpDsbOriginal, LPLPDIRECTSOUNDBUFFER lplpDsbDuplicate) PURE;
  557. STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwLevel) PURE;
  558. STDMETHOD(Compact)(THIS) PURE;
  559. STDMETHOD(GetSpeakerConfig)(THIS_ LPDWORD lpdwSpeakerConfig) PURE;
  560. STDMETHOD(SetSpeakerConfig)(THIS_ DWORD dwSpeakerConfig) PURE;
  561. STDMETHOD(Initialize)(THIS_ LPCGUID lpcGuid) PURE;
  562. STDMETHOD(VerifyCertification)(THIS_ LPDWORD pdwCertified) PURE;
  563. };
  564. #undef INTERFACE
  565. #if !defined(__cplusplus) || defined(CINTERFACE)
  566. /*** IUnknown methods ***/
  567. #define IDirectSound8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  568. #define IDirectSound8_AddRef(p) (p)->lpVtbl->AddRef(p)
  569. #define IDirectSound8_Release(p) (p)->lpVtbl->Release(p)
  570. /*** IDirectSound methods ***/
  571. #define IDirectSound8_CreateSoundBuffer(p,a,b,c) (p)->lpVtbl->CreateSoundBuffer(p,a,b,c)
  572. #define IDirectSound8_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
  573. #define IDirectSound8_DuplicateSoundBuffer(p,a,b) (p)->lpVtbl->DuplicateSoundBuffer(p,a,b)
  574. #define IDirectSound8_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
  575. #define IDirectSound8_Compact(p) (p)->lpVtbl->Compact(p)
  576. #define IDirectSound8_GetSpeakerConfig(p,a) (p)->lpVtbl->GetSpeakerConfig(p,a)
  577. #define IDirectSound8_SetSpeakerConfig(p,a) (p)->lpVtbl->SetSpeakerConfig(p,a)
  578. #define IDirectSound8_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
  579. /*** IDirectSound8 methods ***/
  580. #define IDirectSound8_VerifyCertification(p,a) (p)->lpVtbl->VerifyCertification(p,a)
  581. #else
  582. /*** IUnknown methods ***/
  583. #define IDirectSound8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
  584. #define IDirectSound8_AddRef(p) (p)->AddRef()
  585. #define IDirectSound8_Release(p) (p)->Release()
  586. /*** IDirectSound methods ***/
  587. #define IDirectSound8_CreateSoundBuffer(p,a,b,c) (p)->CreateSoundBuffer(a,b,c)
  588. #define IDirectSound8_GetCaps(p,a) (p)->GetCaps(a)
  589. #define IDirectSound8_DuplicateSoundBuffer(p,a,b) (p)->DuplicateSoundBuffer(a,b)
  590. #define IDirectSound8_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
  591. #define IDirectSound8_Compact(p) (p)->Compact()
  592. #define IDirectSound8_GetSpeakerConfig(p,a) (p)->GetSpeakerConfig(a)
  593. #define IDirectSound8_SetSpeakerConfig(p,a) (p)->SetSpeakerConfig(a)
  594. #define IDirectSound8_Initialize(p,a) (p)->Initialize(a)
  595. /*** IDirectSound8 methods ***/
  596. #define IDirectSound8_VerifyCertification(p,a) (p)->VerifyCertification(a)
  597. #endif
  598. /*****************************************************************************
  599. * IDirectSoundBuffer interface
  600. */
  601. #define INTERFACE IDirectSoundBuffer
  602. DECLARE_INTERFACE_(IDirectSoundBuffer,IUnknown)
  603. {
  604. /*** IUnknown methods ***/
  605. STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
  606. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  607. STDMETHOD_(ULONG,Release)(THIS) PURE;
  608. /*** IDirectSoundBuffer methods ***/
  609. STDMETHOD(GetCaps)(THIS_ LPDSBCAPS lpDSBufferCaps) PURE;
  610. STDMETHOD(GetCurrentPosition)(THIS_ LPDWORD lpdwCurrentPlayCursor, LPDWORD lpdwCurrentWriteCursor) PURE;
  611. STDMETHOD(GetFormat)(THIS_ LPWAVEFORMATEX lpwfxFormat, DWORD dwSizeAllocated, LPDWORD lpdwSizeWritten) PURE;
  612. STDMETHOD(GetVolume)(THIS_ LPLONG lplVolume) PURE;
  613. STDMETHOD(GetPan)(THIS_ LPLONG lplpan) PURE;
  614. STDMETHOD(GetFrequency)(THIS_ LPDWORD lpdwFrequency) PURE;
  615. STDMETHOD(GetStatus)(THIS_ LPDWORD lpdwStatus) PURE;
  616. STDMETHOD(Initialize)(THIS_ LPDIRECTSOUND lpDirectSound, LPCDSBUFFERDESC lpcDSBufferDesc) PURE;
  617. STDMETHOD(Lock)(THIS_ DWORD dwOffset, DWORD dwBytes, LPVOID *ppvAudioPtr1, LPDWORD pdwAudioBytes1, LPVOID *ppvAudioPtr2, LPDWORD pdwAudioBytes2, DWORD dwFlags) PURE;
  618. STDMETHOD(Play)(THIS_ DWORD dwReserved1, DWORD dwReserved2, DWORD dwFlags) PURE;
  619. STDMETHOD(SetCurrentPosition)(THIS_ DWORD dwNewPosition) PURE;
  620. STDMETHOD(SetFormat)(THIS_ LPCWAVEFORMATEX lpcfxFormat) PURE;
  621. STDMETHOD(SetVolume)(THIS_ LONG lVolume) PURE;
  622. STDMETHOD(SetPan)(THIS_ LONG lPan) PURE;
  623. STDMETHOD(SetFrequency)(THIS_ DWORD dwFrequency) PURE;
  624. STDMETHOD(Stop)(THIS) PURE;
  625. STDMETHOD(Unlock)(THIS_ LPVOID pvAudioPtr1, DWORD dwAudioBytes1, LPVOID pvAudioPtr2, DWORD dwAudioPtr2) PURE;
  626. STDMETHOD(Restore)(THIS) PURE;
  627. };
  628. #undef INTERFACE
  629. #if !defined(__cplusplus) || defined(CINTERFACE)
  630. /*** IUnknown methods ***/
  631. #define IDirectSoundBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  632. #define IDirectSoundBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
  633. #define IDirectSoundBuffer_Release(p) (p)->lpVtbl->Release(p)
  634. /*** IDirectSoundBuffer methods ***/
  635. #define IDirectSoundBuffer_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
  636. #define IDirectSoundBuffer_GetCurrentPosition(p,a,b) (p)->lpVtbl->GetCurrentPosition(p,a,b)
  637. #define IDirectSoundBuffer_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c)
  638. #define IDirectSoundBuffer_GetVolume(p,a) (p)->lpVtbl->GetVolume(p,a)
  639. #define IDirectSoundBuffer_GetPan(p,a) (p)->lpVtbl->GetPan(p,a)
  640. #define IDirectSoundBuffer_GetFrequency(p,a) (p)->lpVtbl->GetFrequency(p,a)
  641. #define IDirectSoundBuffer_GetStatus(p,a) (p)->lpVtbl->GetStatus(p,a)
  642. #define IDirectSoundBuffer_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
  643. #define IDirectSoundBuffer_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g)
  644. #define IDirectSoundBuffer_Play(p,a,b,c) (p)->lpVtbl->Play(p,a,b,c)
  645. #define IDirectSoundBuffer_SetCurrentPosition(p,a) (p)->lpVtbl->SetCurrentPosition(p,a)
  646. #define IDirectSoundBuffer_SetFormat(p,a) (p)->lpVtbl->SetFormat(p,a)
  647. #define IDirectSoundBuffer_SetVolume(p,a) (p)->lpVtbl->SetVolume(p,a)
  648. #define IDirectSoundBuffer_SetPan(p,a) (p)->lpVtbl->SetPan(p,a)
  649. #define IDirectSoundBuffer_SetFrequency(p,a) (p)->lpVtbl->SetFrequency(p,a)
  650. #define IDirectSoundBuffer_Stop(p) (p)->lpVtbl->Stop(p)
  651. #define IDirectSoundBuffer_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d)
  652. #define IDirectSoundBuffer_Restore(p) (p)->lpVtbl->Restore(p)
  653. #else
  654. /*** IUnknown methods ***/
  655. #define IDirectSoundBuffer_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
  656. #define IDirectSoundBuffer_AddRef(p) (p)->AddRef()
  657. #define IDirectSoundBuffer_Release(p) (p)->Release()
  658. /*** IDirectSoundBuffer methods ***/
  659. #define IDirectSoundBuffer_GetCaps(p,a) (p)->GetCaps(a)
  660. #define IDirectSoundBuffer_GetCurrentPosition(p,a,b) (p)->GetCurrentPosition(a,b)
  661. #define IDirectSoundBuffer_GetFormat(p,a,b,c) (p)->GetFormat(a,b,c)
  662. #define IDirectSoundBuffer_GetVolume(p,a) (p)->GetVolume(a)
  663. #define IDirectSoundBuffer_GetPan(p,a) (p)->GetPan(a)
  664. #define IDirectSoundBuffer_GetFrequency(p,a) (p)->GetFrequency(a)
  665. #define IDirectSoundBuffer_GetStatus(p,a) (p)->GetStatus(a)
  666. #define IDirectSoundBuffer_Initialize(p,a,b) (p)->Initialize(a,b)
  667. #define IDirectSoundBuffer_Lock(p,a,b,c,d,e,f,g) (p)->Lock(a,b,c,d,e,f,g)
  668. #define IDirectSoundBuffer_Play(p,a,b,c) (p)->Play(a,b,c)
  669. #define IDirectSoundBuffer_SetCurrentPosition(p,a) (p)->SetCurrentPosition(a)
  670. #define IDirectSoundBuffer_SetFormat(p,a) (p)->SetFormat(a)
  671. #define IDirectSoundBuffer_SetVolume(p,a) (p)->SetVolume(a)
  672. #define IDirectSoundBuffer_SetPan(p,a) (p)->SetPan(a)
  673. #define IDirectSoundBuffer_SetFrequency(p,a) (p)->SetFrequency(a)
  674. #define IDirectSoundBuffer_Stop(p) (p)->Stop()
  675. #define IDirectSoundBuffer_Unlock(p,a,b,c,d) (p)->Unlock(a,b,c,d)
  676. #define IDirectSoundBuffer_Restore(p) (p)->Restore()
  677. #endif
  678. /*****************************************************************************
  679. * IDirectSoundBuffer8 interface
  680. */
  681. #define INTERFACE IDirectSoundBuffer8
  682. DECLARE_INTERFACE_(IDirectSoundBuffer8,IUnknown)
  683. {
  684. /*** IUnknown methods ***/
  685. STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
  686. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  687. STDMETHOD_(ULONG,Release)(THIS) PURE;
  688. /*** IDirectSoundBuffer8 methods ***/
  689. STDMETHOD(GetCaps)(THIS_ LPDSBCAPS lpDSBufferCaps) PURE;
  690. STDMETHOD(GetCurrentPosition)(THIS_ LPDWORD lpdwCurrentPlayCursor, LPDWORD lpdwCurrentWriteCursor) PURE;
  691. STDMETHOD(GetFormat)(THIS_ LPWAVEFORMATEX lpwfxFormat, DWORD dwSizeAllocated, LPDWORD lpdwSizeWritten) PURE;
  692. STDMETHOD(GetVolume)(THIS_ LPLONG lplVolume) PURE;
  693. STDMETHOD(GetPan)(THIS_ LPLONG lplpan) PURE;
  694. STDMETHOD(GetFrequency)(THIS_ LPDWORD lpdwFrequency) PURE;
  695. STDMETHOD(GetStatus)(THIS_ LPDWORD lpdwStatus) PURE;
  696. STDMETHOD(Initialize)(THIS_ LPDIRECTSOUND lpDirectSound, LPCDSBUFFERDESC lpcDSBufferDesc) PURE;
  697. STDMETHOD(Lock)(THIS_ DWORD dwOffset, DWORD dwBytes, LPVOID *ppvAudioPtr1, LPDWORD pdwAudioBytes1, LPVOID *ppvAudioPtr2, LPDWORD pdwAudioBytes2, DWORD dwFlags) PURE;
  698. STDMETHOD(Play)(THIS_ DWORD dwReserved1, DWORD dwReserved2, DWORD dwFlags) PURE;
  699. STDMETHOD(SetCurrentPosition)(THIS_ DWORD dwNewPosition) PURE;
  700. STDMETHOD(SetFormat)(THIS_ LPCWAVEFORMATEX lpcfxFormat) PURE;
  701. STDMETHOD(SetVolume)(THIS_ LONG lVolume) PURE;
  702. STDMETHOD(SetPan)(THIS_ LONG lPan) PURE;
  703. STDMETHOD(SetFrequency)(THIS_ DWORD dwFrequency) PURE;
  704. STDMETHOD(Stop)(THIS) PURE;
  705. STDMETHOD(Unlock)(THIS_ LPVOID pvAudioPtr1, DWORD dwAudioBytes1, LPVOID pvAudioPtr2, DWORD dwAudioPtr2) PURE;
  706. STDMETHOD(Restore)(THIS) PURE;
  707. STDMETHOD(SetFX)(THIS_ DWORD dwEffectsCount, LPDSEFFECTDESC pDSFXDesc, LPDWORD pdwResultCodes) PURE;
  708. STDMETHOD(AcquireResources)(THIS_ DWORD dwFlags, DWORD dwEffectsCount, LPDWORD pdwResultCodes) PURE;
  709. STDMETHOD(GetObjectInPath)(THIS_ REFGUID rguidObject, DWORD dwIndex, REFGUID rguidInterface, LPVOID *ppObject) PURE;
  710. };
  711. #undef INTERFACE
  712. DEFINE_GUID(GUID_All_Objects, 0xaa114de5, 0xc262, 0x4169, 0xa1, 0xc8, 0x23, 0xd6, 0x98, 0xcc, 0x73, 0xb5);
  713. #if !defined(__cplusplus) || defined(CINTERFACE)
  714. /*** IUnknown methods ***/
  715. #define IDirectSoundBuffer8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  716. #define IDirectSoundBuffer8_AddRef(p) (p)->lpVtbl->AddRef(p)
  717. #define IDirectSoundBuffer8_Release(p) (p)->lpVtbl->Release(p)
  718. /*** IDirectSoundBuffer methods ***/
  719. #define IDirectSoundBuffer8_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
  720. #define IDirectSoundBuffer8_GetCurrentPosition(p,a,b) (p)->lpVtbl->GetCurrentPosition(p,a,b)
  721. #define IDirectSoundBuffer8_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c)
  722. #define IDirectSoundBuffer8_GetVolume(p,a) (p)->lpVtbl->GetVolume(p,a)
  723. #define IDirectSoundBuffer8_GetPan(p,a) (p)->lpVtbl->GetPan(p,a)
  724. #define IDirectSoundBuffer8_GetFrequency(p,a) (p)->lpVtbl->GetFrequency(p,a)
  725. #define IDirectSoundBuffer8_GetStatus(p,a) (p)->lpVtbl->GetStatus(p,a)
  726. #define IDirectSoundBuffer8_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
  727. #define IDirectSoundBuffer8_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g)
  728. #define IDirectSoundBuffer8_Play(p,a,b,c) (p)->lpVtbl->Play(p,a,b,c)
  729. #define IDirectSoundBuffer8_SetCurrentPosition(p,a) (p)->lpVtbl->SetCurrentPosition(p,a)
  730. #define IDirectSoundBuffer8_SetFormat(p,a) (p)->lpVtbl->SetFormat(p,a)
  731. #define IDirectSoundBuffer8_SetVolume(p,a) (p)->lpVtbl->SetVolume(p,a)
  732. #define IDirectSoundBuffer8_SetPan(p,a) (p)->lpVtbl->SetPan(p,a)
  733. #define IDirectSoundBuffer8_SetFrequency(p,a) (p)->lpVtbl->SetFrequency(p,a)
  734. #define IDirectSoundBuffer8_Stop(p) (p)->lpVtbl->Stop(p)
  735. #define IDirectSoundBuffer8_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d)
  736. #define IDirectSoundBuffer8_Restore(p) (p)->lpVtbl->Restore(p)
  737. /*** IDirectSoundBuffer8 methods ***/
  738. #define IDirectSoundBuffer8_SetFX(p,a,b,c) (p)->lpVtbl->SetFX(p,a,b,c)
  739. #define IDirectSoundBuffer8_AcquireResources(p,a,b,c) (p)->lpVtbl->AcquireResources(p,a,b,c)
  740. #define IDirectSoundBuffer8_GetObjectInPath(p,a,b,c,d) (p)->lpVtbl->GetObjectInPath(p,a,b,c,d)
  741. #else
  742. /*** IUnknown methods ***/
  743. #define IDirectSoundBuffer8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
  744. #define IDirectSoundBuffer8_AddRef(p) (p)->AddRef()
  745. #define IDirectSoundBuffer8_Release(p) (p)->Release()
  746. /*** IDirectSoundBuffer methods ***/
  747. #define IDirectSoundBuffer8_GetCaps(p,a) (p)->GetCaps(a)
  748. #define IDirectSoundBuffer8_GetCurrentPosition(p,a,b) (p)->GetCurrentPosition(a,b)
  749. #define IDirectSoundBuffer8_GetFormat(p,a,b,c) (p)->GetFormat(a,b,c)
  750. #define IDirectSoundBuffer8_GetVolume(p,a) (p)->GetVolume(a)
  751. #define IDirectSoundBuffer8_GetPan(p,a) (p)->GetPan(a)
  752. #define IDirectSoundBuffer8_GetFrequency(p,a) (p)->GetFrequency(a)
  753. #define IDirectSoundBuffer8_GetStatus(p,a) (p)->GetStatus(a)
  754. #define IDirectSoundBuffer8_Initialize(p,a,b) (p)->Initialize(a,b)
  755. #define IDirectSoundBuffer8_Lock(p,a,b,c,d,e,f,g) (p)->Lock(a,b,c,d,e,f,g)
  756. #define IDirectSoundBuffer8_Play(p,a,b,c) (p)->Play(a,b,c)
  757. #define IDirectSoundBuffer8_SetCurrentPosition(p,a) (p)->SetCurrentPosition(a)
  758. #define IDirectSoundBuffer8_SetFormat(p,a) (p)->SetFormat(a)
  759. #define IDirectSoundBuffer8_SetVolume(p,a) (p)->SetVolume(a)
  760. #define IDirectSoundBuffer8_SetPan(p,a) (p)->SetPan(a)
  761. #define IDirectSoundBuffer8_SetFrequency(p,a) (p)->SetFrequency(a)
  762. #define IDirectSoundBuffer8_Stop(p) (p)->Stop()
  763. #define IDirectSoundBuffer8_Unlock(p,a,b,c,d) (p)->Unlock(a,b,c,d)
  764. #define IDirectSoundBuffer8_Restore(p) (p)->Restore()
  765. /*** IDirectSoundBuffer8 methods ***/
  766. #define IDirectSoundBuffer8_SetFX(p,a,b,c) (p)->SetFX(a,b,c)
  767. #define IDirectSoundBuffer8_AcquireResources(p,a,b,c) (p)->AcquireResources(a,b,c)
  768. #define IDirectSoundBuffer8_GetObjectInPath(p,a,b,c,d) (p)->GetObjectInPath(a,b,c,d)
  769. #endif
  770. /*****************************************************************************
  771. * IDirectSoundCapture interface
  772. */
  773. #define INTERFACE IDirectSoundCapture
  774. DECLARE_INTERFACE_(IDirectSoundCapture,IUnknown)
  775. {
  776. /*** IUnknown methods ***/
  777. STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
  778. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  779. STDMETHOD_(ULONG,Release)(THIS) PURE;
  780. /*** IDirectSoundCapture methods ***/
  781. STDMETHOD(CreateCaptureBuffer)(THIS_ LPCDSCBUFFERDESC lpcDSCBufferDesc,LPDIRECTSOUNDCAPTUREBUFFER *lplpDSCaptureBuffer, LPUNKNOWN pUnk) PURE;
  782. STDMETHOD(GetCaps)(THIS_ LPDSCCAPS lpDSCCaps) PURE;
  783. STDMETHOD(Initialize)(THIS_ LPCGUID lpcGUID) PURE;
  784. };
  785. #undef INTERFACE
  786. #if !defined(__cplusplus) || defined(CINTERFACE)
  787. /*** IUnknown methods ***/
  788. #define IDirectSoundCapture_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  789. #define IDirectSoundCapture_AddRef(p) (p)->lpVtbl->AddRef(p)
  790. #define IDirectSoundCapture_Release(p) (p)->lpVtbl->Release(p)
  791. /*** IDirectSoundCapture methods ***/
  792. #define IDirectSoundCapture_CreateCaptureBuffer(p,a,b,c) (p)->lpVtbl->CreateCaptureBuffer(p,a,b,c)
  793. #define IDirectSoundCapture_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
  794. #define IDirectSoundCapture_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
  795. #else
  796. /*** IUnknown methods ***/
  797. #define IDirectSoundCapture_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
  798. #define IDirectSoundCapture_AddRef(p) (p)->AddRef()
  799. #define IDirectSoundCapture_Release(p) (p)->Release()
  800. /*** IDirectSoundCapture methods ***/
  801. #define IDirectSoundCapture_CreateCaptureBuffer(p,a,b,c) (p)->CreateCaptureBuffer(a,b,c)
  802. #define IDirectSoundCapture_GetCaps(p,a) (p)->GetCaps(a)
  803. #define IDirectSoundCapture_Initialize(p,a) (p)->Initialize(a)
  804. #endif
  805. /*****************************************************************************
  806. * IDirectSoundCaptureBuffer interface
  807. */
  808. #define INTERFACE IDirectSoundCaptureBuffer
  809. DECLARE_INTERFACE_(IDirectSoundCaptureBuffer,IUnknown)
  810. {
  811. /*** IUnknown methods ***/
  812. STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
  813. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  814. STDMETHOD_(ULONG,Release)(THIS) PURE;
  815. /*** IDirectSoundCaptureBuffer methods ***/
  816. STDMETHOD(GetCaps)(THIS_ LPDSCBCAPS lpDSCBCaps) PURE;
  817. STDMETHOD(GetCurrentPosition)(THIS_ LPDWORD lpdwCapturePosition,LPDWORD lpdwReadPosition) PURE;
  818. STDMETHOD(GetFormat)(THIS_ LPWAVEFORMATEX lpwfxFormat, DWORD dwSizeAllocated, LPDWORD lpdwSizeWritten) PURE;
  819. STDMETHOD(GetStatus)(THIS_ LPDWORD lpdwStatus) PURE;
  820. STDMETHOD(Initialize)(THIS_ LPDIRECTSOUNDCAPTURE lpDSC, LPCDSCBUFFERDESC lpcDSCBDesc) PURE;
  821. STDMETHOD(Lock)(THIS_ DWORD dwReadCusor, DWORD dwReadBytes, LPVOID *lplpvAudioPtr1, LPDWORD lpdwAudioBytes1, LPVOID *lplpvAudioPtr2, LPDWORD lpdwAudioBytes2, DWORD dwFlags) PURE;
  822. STDMETHOD(Start)(THIS_ DWORD dwFlags) PURE;
  823. STDMETHOD(Stop)(THIS) PURE;
  824. STDMETHOD(Unlock)(THIS_ LPVOID lpvAudioPtr1, DWORD dwAudioBytes1, LPVOID lpvAudioPtr2, DWORD dwAudioBytes2) PURE;
  825. };
  826. #undef INTERFACE
  827. #if !defined(__cplusplus) || defined(CINTERFACE)
  828. /*** IUnknown methods ***/
  829. #define IDirectSoundCaptureBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  830. #define IDirectSoundCaptureBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
  831. #define IDirectSoundCaptureBuffer_Release(p) (p)->lpVtbl->Release(p)
  832. /*** IDirectSoundCaptureBuffer methods ***/
  833. #define IDirectSoundCaptureBuffer_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
  834. #define IDirectSoundCaptureBuffer_GetCurrentPosition(p,a,b) (p)->lpVtbl->GetCurrentPosition(p,a,b)
  835. #define IDirectSoundCaptureBuffer_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c)
  836. #define IDirectSoundCaptureBuffer_GetStatus(p,a) (p)->lpVtbl->GetStatus(p,a)
  837. #define IDirectSoundCaptureBuffer_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
  838. #define IDirectSoundCaptureBuffer_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g)
  839. #define IDirectSoundCaptureBuffer_Start(p,a) (p)->lpVtbl->Start(p,a)
  840. #define IDirectSoundCaptureBuffer_Stop(p) (p)->lpVtbl->Stop(p)
  841. #define IDirectSoundCaptureBuffer_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d)
  842. #else
  843. /*** IUnknown methods ***/
  844. #define IDirectSoundCaptureBuffer_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
  845. #define IDirectSoundCaptureBuffer_AddRef(p) (p)->AddRef()
  846. #define IDirectSoundCaptureBuffer_Release(p) (p)->Release()
  847. /*** IDirectSoundCaptureBuffer methods ***/
  848. #define IDirectSoundCaptureBuffer_GetCaps(p,a) (p)->GetCaps(a)
  849. #define IDirectSoundCaptureBuffer_GetCurrentPosition(p,a,b) (p)->GetCurrentPosition(a,b)
  850. #define IDirectSoundCaptureBuffer_GetFormat(p,a,b,c) (p)->GetFormat(a,b,c)
  851. #define IDirectSoundCaptureBuffer_GetStatus(p,a) (p)->GetStatus(a)
  852. #define IDirectSoundCaptureBuffer_Initialize(p,a,b) (p)->Initialize(a,b)
  853. #define IDirectSoundCaptureBuffer_Lock(p,a,b,c,d,e,f,g) (p)->Lock(a,b,c,d,e,f,g)
  854. #define IDirectSoundCaptureBuffer_Start(p,a) (p)->Start(a)
  855. #define IDirectSoundCaptureBuffer_Stop(p) (p)->Stop()
  856. #define IDirectSoundCaptureBuffer_Unlock(p,a,b,c,d) (p)->Unlock(a,b,c,d)
  857. #endif
  858. /*****************************************************************************
  859. * IDirectSoundCaptureBuffer8 interface
  860. */
  861. #define INTERFACE IDirectSoundCaptureBuffer8
  862. DECLARE_INTERFACE_(IDirectSoundCaptureBuffer8,IDirectSoundCaptureBuffer)
  863. {
  864. /*** IUnknown methods ***/
  865. STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
  866. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  867. STDMETHOD_(ULONG,Release)(THIS) PURE;
  868. /*** IDirectSoundCaptureBuffer methods ***/
  869. STDMETHOD(GetCaps)(THIS_ LPDSCBCAPS lpDSCBCaps) PURE;
  870. STDMETHOD(GetCurrentPosition)(THIS_ LPDWORD lpdwCapturePosition,LPDWORD lpdwReadPosition) PURE;
  871. STDMETHOD(GetFormat)(THIS_ LPWAVEFORMATEX lpwfxFormat, DWORD dwSizeAllocated, LPDWORD lpdwSizeWritten) PURE;
  872. STDMETHOD(GetStatus)(THIS_ LPDWORD lpdwStatus) PURE;
  873. STDMETHOD(Initialize)(THIS_ LPDIRECTSOUNDCAPTURE lpDSC, LPCDSCBUFFERDESC lpcDSCBDesc) PURE;
  874. STDMETHOD(Lock)(THIS_ DWORD dwReadCusor, DWORD dwReadBytes, LPVOID *lplpvAudioPtr1, LPDWORD lpdwAudioBytes1, LPVOID *lplpvAudioPtr2, LPDWORD lpdwAudioBytes2, DWORD dwFlags) PURE;
  875. STDMETHOD(Start)(THIS_ DWORD dwFlags) PURE;
  876. STDMETHOD(Stop)(THIS) PURE;
  877. STDMETHOD(Unlock)(THIS_ LPVOID lpvAudioPtr1, DWORD dwAudioBytes1, LPVOID lpvAudioPtr2, DWORD dwAudioBytes2) PURE;
  878. /*** IDirectSoundCaptureBuffer8 methods ***/
  879. STDMETHOD(GetObjectInPath)(THIS_ REFGUID rguidObject, DWORD dwIndex, REFGUID rguidInterface, LPVOID *ppObject) PURE;
  880. STDMETHOD(GetFXStatus)(THIS_ DWORD dwFXCount, LPDWORD pdwFXStatus) PURE;
  881. };
  882. #undef INTERFACE
  883. #if !defined(__cplusplus) || defined(CINTERFACE)
  884. /*** IUnknown methods ***/
  885. #define IDirectSoundCaptureBuffer8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  886. #define IDirectSoundCaptureBuffer8_AddRef(p) (p)->lpVtbl->AddRef(p)
  887. #define IDirectSoundCaptureBuffer8_Release(p) (p)->lpVtbl->Release(p)
  888. /*** IDirectSoundCaptureBuffer methods ***/
  889. #define IDirectSoundCaptureBuffer8_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
  890. #define IDirectSoundCaptureBuffer8_GetCurrentPosition(p,a,b) (p)->lpVtbl->GetCurrentPosition(p,a,b)
  891. #define IDirectSoundCaptureBuffer8_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c)
  892. #define IDirectSoundCaptureBuffer8_GetStatus(p,a) (p)->lpVtbl->GetStatus(p,a)
  893. #define IDirectSoundCaptureBuffer8_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
  894. #define IDirectSoundCaptureBuffer8_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g)
  895. #define IDirectSoundCaptureBuffer8_Start(p,a) (p)->lpVtbl->Start(p,a)
  896. #define IDirectSoundCaptureBuffer8_Stop(p) (p)->lpVtbl->Stop(p)
  897. #define IDirectSoundCaptureBuffer8_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d)
  898. /*** IDirectSoundCaptureBuffer8 methods ***/
  899. #define IDirectSoundCaptureBuffer8_GetObjectInPath(p,a,b,c,d) (p)->lpVtbl->GetObjectInPath(p,a,b,c,d)
  900. #define IDirectSoundCaptureBuffer8_GetFXStatus(p,a,b) (p)->lpVtbl->GetFXStatus(p,a,b)
  901. #else
  902. /*** IUnknown methods ***/
  903. #define IDirectSoundCaptureBuffer8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
  904. #define IDirectSoundCaptureBuffer8_AddRef(p) (p)->AddRef()
  905. #define IDirectSoundCaptureBuffer8_Release(p) (p)->Release()
  906. /*** IDirectSoundCaptureBuffer methods ***/
  907. #define IDirectSoundCaptureBuffer8_GetCaps(p,a) (p)->GetCaps(a)
  908. #define IDirectSoundCaptureBuffer8_GetCurrentPosition(p,a,b) (p)->GetCurrentPosition(a,b)
  909. #define IDirectSoundCaptureBuffer8_GetFormat(p,a,b,c) (p)->GetFormat(a,b,c)
  910. #define IDirectSoundCaptureBuffer8_GetStatus(p,a) (p)->GetStatus(a)
  911. #define IDirectSoundCaptureBuffer8_Initialize(p,a,b) (p)->Initialize(a,b)
  912. #define IDirectSoundCaptureBuffer8_Lock(p,a,b,c,d,e,f,g) (p)->Lock(a,b,c,d,e,f,g)
  913. #define IDirectSoundCaptureBuffer8_Start(p,a) (p)->Start(a)
  914. #define IDirectSoundCaptureBuffer8_Stop(p) (p)->Stop()
  915. #define IDirectSoundCaptureBuffer8_Unlock(p,a,b,c,d) (p)->Unlock(a,b,c,d)
  916. /*** IDirectSoundCaptureBuffer8 methods ***/
  917. #define IDirectSoundCaptureBuffer8_GetObjectInPath(p,a,b,c,d) (p)->GetObjectInPath(a,b,c,d)
  918. #define IDirectSoundCaptureBuffer8_GetFXStatus(p,a,b) (p)->GetFXStatus(a,b)
  919. #endif
  920. /*****************************************************************************
  921. * IDirectSoundNotify interface
  922. */
  923. #define WINE_NOBUFFER 0x80000000
  924. #define DSBPN_OFFSETSTOP -1
  925. #define INTERFACE IDirectSoundNotify
  926. DECLARE_INTERFACE_(IDirectSoundNotify,IUnknown)
  927. {
  928. /*** IUnknown methods ***/
  929. STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
  930. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  931. STDMETHOD_(ULONG,Release)(THIS) PURE;
  932. /*** IDirectSoundNotify methods ***/
  933. STDMETHOD(SetNotificationPositions)(THIS_ DWORD cPositionNotifies, LPCDSBPOSITIONNOTIFY lpcPositionNotifies) PURE;
  934. };
  935. #undef INTERFACE
  936. #if !defined(__cplusplus) || defined(CINTERFACE)
  937. /*** IUnknown methods ***/
  938. #define IDirectSoundNotify_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  939. #define IDirectSoundNotify_AddRef(p) (p)->lpVtbl->AddRef(p)
  940. #define IDirectSoundNotify_Release(p) (p)->lpVtbl->Release(p)
  941. /*** IDirectSoundNotify methods ***/
  942. #define IDirectSoundNotify_SetNotificationPositions(p,a,b) (p)->lpVtbl->SetNotificationPositions(p,a,b)
  943. #else
  944. /*** IUnknown methods ***/
  945. #define IDirectSoundNotify_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
  946. #define IDirectSoundNotify_AddRef(p) (p)->AddRef()
  947. #define IDirectSoundNotify_Release(p) (p)->Release()
  948. /*** IDirectSoundNotify methods ***/
  949. #define IDirectSoundNotify_SetNotificationPositions(p,a,b) (p)->SetNotificationPositions(a,b)
  950. #endif
  951. /*****************************************************************************
  952. * IDirectSound3DListener interface
  953. */
  954. #define DS3DMODE_NORMAL 0x00000000
  955. #define DS3DMODE_HEADRELATIVE 0x00000001
  956. #define DS3DMODE_DISABLE 0x00000002
  957. #define DS3D_IMMEDIATE 0x00000000
  958. #define DS3D_DEFERRED 0x00000001
  959. #define DS3D_MINDISTANCEFACTOR FLT_MIN
  960. #define DS3D_MAXDISTANCEFACTOR FLT_MAX
  961. #define DS3D_DEFAULTDISTANCEFACTOR 1.0f
  962. #define DS3D_MINROLLOFFFACTOR 0.0f
  963. #define DS3D_MAXROLLOFFFACTOR 10.0f
  964. #define DS3D_DEFAULTROLLOFFFACTOR 1.0f
  965. #define DS3D_MINDOPPLERFACTOR 0.0f
  966. #define DS3D_MAXDOPPLERFACTOR 10.0f
  967. #define DS3D_DEFAULTDOPPLERFACTOR 1.0f
  968. #define DS3D_DEFAULTMINDISTANCE 1.0f
  969. #define DS3D_DEFAULTMAXDISTANCE 1000000000.0f
  970. #define DS3D_MINCONEANGLE 0
  971. #define DS3D_MAXCONEANGLE 360
  972. #define DS3D_DEFAULTCONEANGLE 360
  973. #define DS3D_DEFAULTCONEOUTSIDEVOLUME DSBVOLUME_MAX
  974. typedef struct _DS3DLISTENER {
  975. DWORD dwSize;
  976. D3DVECTOR vPosition;
  977. D3DVECTOR vVelocity;
  978. D3DVECTOR vOrientFront;
  979. D3DVECTOR vOrientTop;
  980. D3DVALUE flDistanceFactor;
  981. D3DVALUE flRolloffFactor;
  982. D3DVALUE flDopplerFactor;
  983. } DS3DLISTENER, *LPDS3DLISTENER;
  984. typedef const DS3DLISTENER *LPCDS3DLISTENER;
  985. #define INTERFACE IDirectSound3DListener
  986. DECLARE_INTERFACE_(IDirectSound3DListener,IUnknown)
  987. {
  988. /*** IUnknown methods ***/
  989. STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
  990. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  991. STDMETHOD_(ULONG,Release)(THIS) PURE;
  992. /*** IDirectSound3DListener methods ***/
  993. STDMETHOD(GetAllParameters)(THIS_ LPDS3DLISTENER lpListener) PURE;
  994. STDMETHOD(GetDistanceFactor)(THIS_ LPD3DVALUE lpflDistanceFactor) PURE;
  995. STDMETHOD(GetDopplerFactor)(THIS_ LPD3DVALUE lpflDopplerFactor) PURE;
  996. STDMETHOD(GetOrientation)(THIS_ LPD3DVECTOR lpvOrientFront, LPD3DVECTOR lpvOrientTop) PURE;
  997. STDMETHOD(GetPosition)(THIS_ LPD3DVECTOR lpvPosition) PURE;
  998. STDMETHOD(GetRolloffFactor)(THIS_ LPD3DVALUE lpflRolloffFactor) PURE;
  999. STDMETHOD(GetVelocity)(THIS_ LPD3DVECTOR lpvVelocity) PURE;
  1000. STDMETHOD(SetAllParameters)(THIS_ LPCDS3DLISTENER lpcListener, DWORD dwApply) PURE;
  1001. STDMETHOD(SetDistanceFactor)(THIS_ D3DVALUE flDistanceFactor, DWORD dwApply) PURE;
  1002. STDMETHOD(SetDopplerFactor)(THIS_ D3DVALUE flDopplerFactor, DWORD dwApply) PURE;
  1003. STDMETHOD(SetOrientation)(THIS_ D3DVALUE xFront, D3DVALUE yFront, D3DVALUE zFront, D3DVALUE xTop, D3DVALUE yTop, D3DVALUE zTop, DWORD dwApply) PURE;
  1004. STDMETHOD(SetPosition)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE;
  1005. STDMETHOD(SetRolloffFactor)(THIS_ D3DVALUE flRolloffFactor, DWORD dwApply) PURE;
  1006. STDMETHOD(SetVelocity)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE;
  1007. STDMETHOD(CommitDeferredSettings)(THIS) PURE;
  1008. };
  1009. #undef INTERFACE
  1010. #if !defined(__cplusplus) || defined(CINTERFACE)
  1011. /*** IUnknown methods ***/
  1012. #define IDirectSound3DListener_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  1013. #define IDirectSound3DListener_AddRef(p) (p)->lpVtbl->AddRef(p)
  1014. #define IDirectSound3DListener_Release(p) (p)->lpVtbl->Release(p)
  1015. /*** IDirectSound3DListener methods ***/
  1016. #define IDirectSound3DListener_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
  1017. #define IDirectSound3DListener_GetDistanceFactor(p,a) (p)->lpVtbl->GetDistanceFactor(p,a)
  1018. #define IDirectSound3DListener_GetDopplerFactor(p,a) (p)->lpVtbl->GetDopplerFactor(p,a)
  1019. #define IDirectSound3DListener_GetOrientation(p,a,b) (p)->lpVtbl->GetOrientation(p,a,b)
  1020. #define IDirectSound3DListener_GetPosition(p,a) (p)->lpVtbl->GetPosition(p,a)
  1021. #define IDirectSound3DListener_GetRolloffFactor(p,a) (p)->lpVtbl->GetRolloffFactor(p,a)
  1022. #define IDirectSound3DListener_GetVelocity(p,a) (p)->lpVtbl->GetVelocity(p,a)
  1023. #define IDirectSound3DListener_SetAllParameters(p,a,b) (p)->lpVtbl->SetAllParameters(p,a,b)
  1024. #define IDirectSound3DListener_SetDistanceFactor(p,a,b) (p)->lpVtbl->SetDistanceFactor(p,a,b)
  1025. #define IDirectSound3DListener_SetDopplerFactor(p,a,b) (p)->lpVtbl->SetDopplerFactor(p,a,b)
  1026. #define IDirectSound3DListener_SetOrientation(p,a,b,c,d,e,f,g) (p)->lpVtbl->SetOrientation(p,a,b,c,d,e,f,g)
  1027. #define IDirectSound3DListener_SetPosition(p,a,b,c,d) (p)->lpVtbl->SetPosition(p,a,b,c,d)
  1028. #define IDirectSound3DListener_SetRolloffFactor(p,a,b) (p)->lpVtbl->SetRolloffFactor(p,a,b)
  1029. #define IDirectSound3DListener_SetVelocity(p,a,b,c,d) (p)->lpVtbl->SetVelocity(p,a,b,c,d)
  1030. #define IDirectSound3DListener_CommitDeferredSettings(p) (p)->lpVtbl->CommitDeferredSettings(p)
  1031. #else
  1032. /*** IUnknown methods ***/
  1033. #define IDirectSound3DListener_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
  1034. #define IDirectSound3DListener_AddRef(p) (p)->AddRef()
  1035. #define IDirectSound3DListener_Release(p) (p)->Release()
  1036. /*** IDirectSound3DListener methods ***/
  1037. #define IDirectSound3DListener_GetAllParameters(p,a) (p)->GetAllParameters(a)
  1038. #define IDirectSound3DListener_GetDistanceFactor(p,a) (p)->GetDistanceFactor(a)
  1039. #define IDirectSound3DListener_GetDopplerFactor(p,a) (p)->GetDopplerFactor(a)
  1040. #define IDirectSound3DListener_GetOrientation(p,a,b) (p)->GetOrientation(a,b)
  1041. #define IDirectSound3DListener_GetPosition(p,a) (p)->GetPosition(a)
  1042. #define IDirectSound3DListener_GetRolloffFactor(p,a) (p)->GetRolloffFactor(a)
  1043. #define IDirectSound3DListener_GetVelocity(p,a) (p)->GetVelocity(a)
  1044. #define IDirectSound3DListener_SetAllParameters(p,a,b) (p)->SetAllParameters(a,b)
  1045. #define IDirectSound3DListener_SetDistanceFactor(p,a,b) (p)->SetDistanceFactor(a,b)
  1046. #define IDirectSound3DListener_SetDopplerFactor(p,a,b) (p)->SetDopplerFactor(a,b)
  1047. #define IDirectSound3DListener_SetOrientation(p,a,b,c,d,e,f,g) (p)->SetOrientation(a,b,c,d,e,f,g)
  1048. #define IDirectSound3DListener_SetPosition(p,a,b,c,d) (p)->SetPosition(a,b,c,d)
  1049. #define IDirectSound3DListener_SetRolloffFactor(p,a,b) (p)->SetRolloffFactor(a,b)
  1050. #define IDirectSound3DListener_SetVelocity(p,a,b,c,d) (p)->SetVelocity(a,b,c,d)
  1051. #define IDirectSound3DListener_CommitDeferredSettings(p) (p)->CommitDeferredSettings()
  1052. #endif
  1053. /*****************************************************************************
  1054. * IDirectSound3DBuffer interface
  1055. */
  1056. typedef struct _DS3DBUFFER {
  1057. DWORD dwSize;
  1058. D3DVECTOR vPosition;
  1059. D3DVECTOR vVelocity;
  1060. DWORD dwInsideConeAngle;
  1061. DWORD dwOutsideConeAngle;
  1062. D3DVECTOR vConeOrientation;
  1063. LONG lConeOutsideVolume;
  1064. D3DVALUE flMinDistance;
  1065. D3DVALUE flMaxDistance;
  1066. DWORD dwMode;
  1067. } DS3DBUFFER, *LPDS3DBUFFER;
  1068. typedef const DS3DBUFFER *LPCDS3DBUFFER;
  1069. #define INTERFACE IDirectSound3DBuffer
  1070. DECLARE_INTERFACE_(IDirectSound3DBuffer,IUnknown)
  1071. {
  1072. /*** IUnknown methods ***/
  1073. STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
  1074. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  1075. STDMETHOD_(ULONG,Release)(THIS) PURE;
  1076. /*** IDirectSound3DBuffer methods ***/
  1077. STDMETHOD(GetAllParameters)(THIS_ LPDS3DBUFFER lpDs3dBuffer) PURE;
  1078. STDMETHOD(GetConeAngles)(THIS_ LPDWORD lpdwInsideConeAngle, LPDWORD lpdwOutsideConeAngle) PURE;
  1079. STDMETHOD(GetConeOrientation)(THIS_ LPD3DVECTOR lpvOrientation) PURE;
  1080. STDMETHOD(GetConeOutsideVolume)(THIS_ LPLONG lplConeOutsideVolume) PURE;
  1081. STDMETHOD(GetMaxDistance)(THIS_ LPD3DVALUE lpflMaxDistance) PURE;
  1082. STDMETHOD(GetMinDistance)(THIS_ LPD3DVALUE lpflMinDistance) PURE;
  1083. STDMETHOD(GetMode)(THIS_ LPDWORD lpwdMode) PURE;
  1084. STDMETHOD(GetPosition)(THIS_ LPD3DVECTOR lpvPosition) PURE;
  1085. STDMETHOD(GetVelocity)(THIS_ LPD3DVECTOR lpvVelocity) PURE;
  1086. STDMETHOD(SetAllParameters)(THIS_ LPCDS3DBUFFER lpcDs3dBuffer, DWORD dwApply) PURE;
  1087. STDMETHOD(SetConeAngles)(THIS_ DWORD dwInsideConeAngle, DWORD dwOutsideConeAngle, DWORD dwApply) PURE;
  1088. STDMETHOD(SetConeOrientation)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE;
  1089. STDMETHOD(SetConeOutsideVolume)(THIS_ LONG lConeOutsideVolume, DWORD dwApply) PURE;
  1090. STDMETHOD(SetMaxDistance)(THIS_ D3DVALUE flMaxDistance, DWORD dwApply) PURE;
  1091. STDMETHOD(SetMinDistance)(THIS_ D3DVALUE flMinDistance, DWORD dwApply) PURE;
  1092. STDMETHOD(SetMode)(THIS_ DWORD dwMode, DWORD dwApply) PURE;
  1093. STDMETHOD(SetPosition)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE;
  1094. STDMETHOD(SetVelocity)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE;
  1095. };
  1096. #undef INTERFACE
  1097. #if !defined(__cplusplus) || defined(CINTERFACE)
  1098. /*** IUnknown methods ***/
  1099. #define IDirectSound3DBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  1100. #define IDirectSound3DBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
  1101. #define IDirectSound3DBuffer_Release(p) (p)->lpVtbl->Release(p)
  1102. /*** IDirectSound3DBuffer methods ***/
  1103. #define IDirectSound3DBuffer_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
  1104. #define IDirectSound3DBuffer_GetConeAngles(p,a,b) (p)->lpVtbl->GetConeAngles(p,a,b)
  1105. #define IDirectSound3DBuffer_GetConeOrientation(p,a) (p)->lpVtbl->GetConeOrientation(p,a)
  1106. #define IDirectSound3DBuffer_GetConeOutsideVolume(p,a) (p)->lpVtbl->GetConeOutsideVolume(p,a)
  1107. #define IDirectSound3DBuffer_GetMaxDistance(p,a) (p)->lpVtbl->GetMaxDistance(p,a)
  1108. #define IDirectSound3DBuffer_GetMinDistance(p,a) (p)->lpVtbl->GetMinDistance(p,a)
  1109. #define IDirectSound3DBuffer_GetMode(p,a) (p)->lpVtbl->GetMode(p,a)
  1110. #define IDirectSound3DBuffer_GetPosition(p,a) (p)->lpVtbl->GetPosition(p,a)
  1111. #define IDirectSound3DBuffer_GetVelocity(p,a) (p)->lpVtbl->GetVelocity(p,a)
  1112. #define IDirectSound3DBuffer_SetAllParameters(p,a,b) (p)->lpVtbl->SetAllParameters(p,a,b)
  1113. #define IDirectSound3DBuffer_SetConeAngles(p,a,b,c) (p)->lpVtbl->SetConeAngles(p,a,b,c)
  1114. #define IDirectSound3DBuffer_SetConeOrientation(p,a,b,c,d) (p)->lpVtbl->SetConeOrientation(p,a,b,c,d)
  1115. #define IDirectSound3DBuffer_SetConeOutsideVolume(p,a,b) (p)->lpVtbl->SetConeOutsideVolume(p,a,b)
  1116. #define IDirectSound3DBuffer_SetMaxDistance(p,a,b) (p)->lpVtbl->SetMaxDistance(p,a,b)
  1117. #define IDirectSound3DBuffer_SetMinDistance(p,a,b) (p)->lpVtbl->SetMinDistance(p,a,b)
  1118. #define IDirectSound3DBuffer_SetMode(p,a,b) (p)->lpVtbl->SetMode(p,a,b)
  1119. #define IDirectSound3DBuffer_SetPosition(p,a,b,c,d) (p)->lpVtbl->SetPosition(p,a,b,c,d)
  1120. #define IDirectSound3DBuffer_SetVelocity(p,a,b,c,d) (p)->lpVtbl->SetVelocity(p,a,b,c,d)
  1121. #else
  1122. /*** IUnknown methods ***/
  1123. #define IDirectSound3DBuffer_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
  1124. #define IDirectSound3DBuffer_AddRef(p) (p)->AddRef()
  1125. #define IDirectSound3DBuffer_Release(p) (p)->Release()
  1126. /*** IDirectSound3DBuffer methods ***/
  1127. #define IDirectSound3DBuffer_GetAllParameters(p,a) (p)->GetAllParameters(a)
  1128. #define IDirectSound3DBuffer_GetConeAngles(p,a,b) (p)->GetConeAngles(a,b)
  1129. #define IDirectSound3DBuffer_GetConeOrientation(p,a) (p)->GetConeOrientation(a)
  1130. #define IDirectSound3DBuffer_GetConeOutsideVolume(p,a) (p)->GetConeOutsideVolume(a)
  1131. #define IDirectSound3DBuffer_GetMaxDistance(p,a) (p)->GetMaxDistance(a)
  1132. #define IDirectSound3DBuffer_GetMinDistance(p,a) (p)->GetMinDistance(a)
  1133. #define IDirectSound3DBuffer_GetMode(p,a) (p)->GetMode(a)
  1134. #define IDirectSound3DBuffer_GetPosition(p,a) (p)->GetPosition(a)
  1135. #define IDirectSound3DBuffer_GetVelocity(p,a) (p)->GetVelocity(a)
  1136. #define IDirectSound3DBuffer_SetAllParameters(p,a,b) (p)->SetAllParameters(a,b)
  1137. #define IDirectSound3DBuffer_SetConeAngles(p,a,b,c) (p)->SetConeAngles(a,b,c)
  1138. #define IDirectSound3DBuffer_SetConeOrientation(p,a,b,c,d) (p)->SetConeOrientation(a,b,c,d)
  1139. #define IDirectSound3DBuffer_SetConeOutsideVolume(p,a,b) (p)->SetConeOutsideVolume(a,b)
  1140. #define IDirectSound3DBuffer_SetMaxDistance(p,a,b) (p)->SetMaxDistance(a,b)
  1141. #define IDirectSound3DBuffer_SetMinDistance(p,a,b) (p)->SetMinDistance(a,b)
  1142. #define IDirectSound3DBuffer_SetMode(p,a,b) (p)->SetMode(a,b)
  1143. #define IDirectSound3DBuffer_SetPosition(p,a,b,c,d) (p)->SetPosition(a,b,c,d)
  1144. #define IDirectSound3DBuffer_SetVelocity(p,a,b,c,d) (p)->SetVelocity(a,b,c,d)
  1145. #endif
  1146. /*****************************************************************************
  1147. * IKsPropertySet interface
  1148. */
  1149. #ifndef _IKsPropertySet_
  1150. #define _IKsPropertySet_
  1151. typedef struct IKsPropertySet *LPKSPROPERTYSET;
  1152. DEFINE_GUID(IID_IKsPropertySet,0x31EFAC30,0x515C,0x11D0,0xA9,0xAA,0x00,0xAA,0x00,0x61,0xBE,0x93);
  1153. #define KSPROPERTY_SUPPORT_GET 1
  1154. #define KSPROPERTY_SUPPORT_SET 2
  1155. #define INTERFACE IKsPropertySet
  1156. DECLARE_INTERFACE_(IKsPropertySet,IUnknown)
  1157. {
  1158. /*** IUnknown methods ***/
  1159. STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
  1160. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  1161. STDMETHOD_(ULONG,Release)(THIS) PURE;
  1162. /*** IKsPropertySet methods ***/
  1163. STDMETHOD(Get)(THIS_ REFGUID rgid,ULONG x1,LPVOID p1,ULONG x2,LPVOID p2,ULONG x3,ULONG *px4) PURE;
  1164. STDMETHOD(Set)(THIS_ REFGUID rgid,ULONG x1,LPVOID p1,ULONG x2,LPVOID p2,ULONG x3) PURE;
  1165. STDMETHOD(QuerySupport)(THIS_ REFGUID rgid,ULONG x1,ULONG *px2) PURE;
  1166. };
  1167. #undef INTERFACE
  1168. #if !defined(__cplusplus) || defined(CINTERFACE)
  1169. /*** IUnknown methods ***/
  1170. #define IKsPropertySet_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  1171. #define IKsPropertySet_AddRef(p) (p)->lpVtbl->AddRef(p)
  1172. #define IKsPropertySet_Release(p) (p)->lpVtbl->Release(p)
  1173. /*** IKsPropertySet methods ***/
  1174. #define IKsPropertySet_Get(p,a,b,c,d,e,f,g) (p)->lpVtbl->Get(p,a,b,c,d,e,f,g)
  1175. #define IKsPropertySet_Set(p,a,b,c,d,e,f) (p)->lpVtbl->Set(p,a,b,c,d,e,f)
  1176. #define IKsPropertySet_QuerySupport(p,a,b,c) (p)->lpVtbl->QuerySupport(p,a,b,c)
  1177. #else
  1178. /*** IUnknown methods ***/
  1179. #define IKsPropertySet_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
  1180. #define IKsPropertySet_AddRef(p) (p)->AddRef()
  1181. #define IKsPropertySet_Release(p) (p)->Release()
  1182. /*** IKsPropertySet methods ***/
  1183. #define IKsPropertySet_Get(p,a,b,c,d,e,f,g) (p)->Get(a,b,c,d,e,f,g)
  1184. #define IKsPropertySet_Set(p,a,b,c,d,e,f) (p)->Set(a,b,c,d,e,f)
  1185. #define IKsPropertySet_QuerySupport(p,a,b,c) (p)->QuerySupport(a,b,c)
  1186. #endif
  1187. #endif /* _IKsPropertySet_ */
  1188. /*****************************************************************************
  1189. * IDirectSoundFullDuplex interface
  1190. */
  1191. #define INTERFACE IDirectSoundFullDuplex
  1192. DECLARE_INTERFACE_(IDirectSoundFullDuplex,IUnknown)
  1193. {
  1194. /*** IUnknown methods ***/
  1195. STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
  1196. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  1197. STDMETHOD_(ULONG,Release)(THIS) PURE;
  1198. /*** IDirectSoundFullDuplex methods ***/
  1199. STDMETHOD(Initialize)(THIS_ LPCGUID pCaptureGuid,LPCGUID pRendererGuid,LPCDSCBUFFERDESC lpDscBufferDesc,LPCDSBUFFERDESC lpDsBufferDesc,HWND hWnd,DWORD dwLevel,LPLPDIRECTSOUNDCAPTUREBUFFER8 lplpDirectSoundCaptureBuffer8,LPLPDIRECTSOUNDBUFFER8 lplpDirectSoundBuffer8) PURE;
  1200. };
  1201. #undef INTERFACE
  1202. #if !defined(__cplusplus) || defined(CINTERFACE)
  1203. /*** IUnknown methods ***/
  1204. #define IDirectSoundFullDuplex_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  1205. #define IDirectSoundFullDuplex_AddRef(p) (p)->lpVtbl->AddRef(p)
  1206. #define IDirectSoundFullDuplex_Release(p) (p)->lpVtbl->Release(p)
  1207. /*** IDirectSoundFullDuplex methods ***/
  1208. #define IDirectSoundFullDuplex_Initialize(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->Initialize(p,a,b,c,d,e,f,g,h)
  1209. #else
  1210. /*** IUnknown methods ***/
  1211. #define IDirectSoundFullDuplex_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
  1212. #define IDirectSoundFullDuplex_AddRef(p) (p)->AddRef()
  1213. #define IDirectSoundFullDuplex_Release(p) (p)->Release()
  1214. /*** IDirectSoundFullDuplex methods ***/
  1215. #define IDirectSoundFullDuplex_Initialize(p,a,b,c,d,e,f,g,h) (p)->Initialize(a,b,c,d,e,f,g,h)
  1216. #endif
  1217. /*****************************************************************************
  1218. * IDirectSoundFXI3DL2Reverb interface
  1219. */
  1220. #define INTERFACE IDirectSoundFXI3DL2Reverb
  1221. DECLARE_INTERFACE_(IDirectSoundFXI3DL2Reverb,IUnknown)
  1222. {
  1223. /*** IUnknown methods ***/
  1224. STDMETHOD(QueryInterface)(THIS_ REFIID, void**) PURE;
  1225. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  1226. STDMETHOD_(ULONG,Release)(THIS) PURE;
  1227. /*** IDirectSoundFXI3DL2Reverb methods ***/
  1228. STDMETHOD(SetAllParameters)(THIS_ LPCDSFXI3DL2Reverb reverb) PURE;
  1229. STDMETHOD(GetAllParameters)(THIS_ LPDSFXI3DL2Reverb reverb) PURE;
  1230. STDMETHOD(SetPreset)(THIS_ DWORD preset) PURE;
  1231. STDMETHOD(GetPreset)(THIS_ DWORD *preset) PURE;
  1232. STDMETHOD(SetQuality)(THIS_ LONG quality) PURE;
  1233. STDMETHOD(GetQuality)(THIS_ LONG *quality) PURE;
  1234. };
  1235. #undef INTERFACE
  1236. #if !defined(__cplusplus) || defined(CINTERFACE)
  1237. #define IDirectSoundFXI3DL2Reverb_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  1238. #define IDirectSoundFXI3DL2Reverb_AddRef(p) (p)->lpVtbl->AddRef(p)
  1239. #define IDirectSoundFXI3DL2Reverb_Release(p) (p)->lpVtbl->Release(p)
  1240. #define IDirectSoundFXI3DL2Reverb_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a)
  1241. #define IDirectSoundFXI3DL2Reverb_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
  1242. #define IDirectSoundFXI3DL2Reverb_SetPreset(p,a) (p)->lpVtbl->SetPreset(p,a)
  1243. #define IDirectSoundFXI3DL2Reverb_GetPreset(p,a) (p)->lpVtbl->GetPreset(p,a)
  1244. #else
  1245. #define IDirectSoundFXI3DL2Reverb_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
  1246. #define IDirectSoundFXI3DL2Reverb_AddRef(p) (p)->AddRef()
  1247. #define IDirectSoundFXI3DL2Reverb_Release(p) (p)->Release()
  1248. #define IDirectSoundFXI3DL2Reverb_SetAllParameters(p,a) (p)->SetAllParameters(a)
  1249. #define IDirectSoundFXI3DL2Reverb_GetAllParameters(p,a) (p)->GetAllParameters(a)
  1250. #define IDirectSoundFXI3DL2Reverb_SetPreset(p,a) (p)->SetPreset(a)
  1251. #define IDirectSoundFXI3DL2Reverb_GetPreset(p,a) (p)->GetPreset(a)
  1252. #endif
  1253. typedef struct _DSFXGargle
  1254. {
  1255. DWORD dwRateHz;
  1256. DWORD dwWaveShape;
  1257. } DSFXGargle, *LPDSFXGargle;
  1258. typedef const DSFXGargle *LPCDSFXGargle;
  1259. #define DSFXGARGLE_RATEHZ_MIN 1
  1260. #define DSFXGARGLE_RATEHZ_MAX 1000
  1261. #define DSFXGARGLE_WAVE_SQUARE 1
  1262. #define DSFXGARGLE_WAVE_TRIANGLE 0
  1263. #define INTERFACE IDirectSoundFXGargle
  1264. DECLARE_INTERFACE_(IDirectSoundFXGargle,IUnknown)
  1265. {
  1266. /*** IUnknown methods ***/
  1267. STDMETHOD(QueryInterface)(THIS_ REFIID, void**) PURE;
  1268. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  1269. STDMETHOD_(ULONG,Release)(THIS) PURE;
  1270. /*** IDirectSoundFXGargle methods ***/
  1271. STDMETHOD(SetAllParameters)(THIS_ const DSFXGargle *gargle) PURE;
  1272. STDMETHOD(GetAllParameters)(THIS_ DSFXGargle *gargle) PURE;
  1273. };
  1274. #undef INTERFACE
  1275. #if !defined(__cplusplus) || defined(CINTERFACE)
  1276. #define IDirectSoundFXGargle_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  1277. #define IDirectSoundFXGargle_AddRef(p) (p)->lpVtbl->AddRef(p)
  1278. #define IDirectSoundFXGargle_Release(p) (p)->lpVtbl->Release(p)
  1279. #define IDirectSoundFXGargle_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a)
  1280. #define IDirectSoundFXGargle_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
  1281. #else
  1282. #define IDirectSoundFXGargle_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b)
  1283. #define IDirectSoundFXGargle_AddRef(p) (p)->AddRef(p)
  1284. #define IDirectSoundFXGargle_Release(p) (p)->Release(p)
  1285. #define IDirectSoundFXGargle_SetAllParameters(p,a) (p)->SetAllParameters(a)
  1286. #define IDirectSoundFXGargle_GetAllParameters(p,a) (p)->GetAllParameters(a)
  1287. #endif
  1288. typedef struct _DSFXChorus
  1289. {
  1290. FLOAT fWetDryMix;
  1291. FLOAT fDepth;
  1292. FLOAT fFeedback;
  1293. FLOAT fFrequency;
  1294. LONG lWaveform;
  1295. FLOAT fDelay;
  1296. LONG lPhase;
  1297. } DSFXChorus, *LPDSFXChorus;
  1298. typedef const DSFXChorus *LPCDSFXChorus;
  1299. #define DSFXCHORUS_DEPTH_MIN 0.0f
  1300. #define DSFXCHORUS_DEPTH_MAX 100.0f
  1301. #define DSFXCHORUS_DELAY_MIN 0.0f
  1302. #define DSFXCHORUS_DELAY_MAX 20.0f
  1303. #define DSFXCHORUS_FEEDBACK_MIN -99.0f
  1304. #define DSFXCHORUS_FEEDBACK_MAX 99.0f
  1305. #define DSFXCHORUS_FREQUENCY_MIN 0.0f
  1306. #define DSFXCHORUS_FREQUENCY_MAX 10.0f
  1307. #define DSFXCHORUS_PHASE_MIN 0
  1308. #define DSFXCHORUS_PHASE_MAX 4
  1309. #define DSFXCHORUS_PHASE_NEG_180 0
  1310. #define DSFXCHORUS_PHASE_NEG_90 1
  1311. #define DSFXCHORUS_PHASE_ZERO 2
  1312. #define DSFXCHORUS_PHASE_90 3
  1313. #define DSFXCHORUS_PHASE_180 4
  1314. #define DSFXCHORUS_WAVE_TRIANGLE 0
  1315. #define DSFXCHORUS_WAVE_SIN 1
  1316. #define DSFXCHORUS_WETDRYMIX_MIN 0.0f
  1317. #define DSFXCHORUS_WETDRYMIX_MAX 100.0f
  1318. #define INTERFACE IDirectSoundFXChorus
  1319. DECLARE_INTERFACE_(IDirectSoundFXChorus,IUnknown)
  1320. {
  1321. /*** IUnknown methods ***/
  1322. STDMETHOD(QueryInterface)(THIS_ REFIID, void**) PURE;
  1323. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  1324. STDMETHOD_(ULONG,Release)(THIS) PURE;
  1325. /*** IDirectSoundFXChorus methods ***/
  1326. STDMETHOD(SetAllParameters)(THIS_ const DSFXChorus *chorus) PURE;
  1327. STDMETHOD(GetAllParameters)(THIS_ DSFXChorus *chorus) PURE;
  1328. };
  1329. #undef INTERFACE
  1330. #if !defined(__cplusplus) || defined(CINTERFACE)
  1331. #define IDirectSoundFXChorus_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  1332. #define IDirectSoundFXChorus_AddRef(p) (p)->lpVtbl->AddRef(p)
  1333. #define IDirectSoundFXChorus_Release(p) (p)->lpVtbl->Release(p)
  1334. #define IDirectSoundFXChorus_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a)
  1335. #define IDirectSoundFXChorus_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
  1336. #else
  1337. #define IDirectSoundFXChorus_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b)
  1338. #define IDirectSoundFXChorus_AddRef(p) (p)->AddRef(p)
  1339. #define IDirectSoundFXChorus_Release(p) (p)->Release(p)
  1340. #define IDirectSoundFXChorus_SetAllParameters(p,a) (p)->SetAllParameters(a)
  1341. #define IDirectSoundFXChorus_GetAllParameters(p,a) (p)->GetAllParameters(a)
  1342. #endif
  1343. typedef struct _DSFXFlanger
  1344. {
  1345. FLOAT fWetDryMix;
  1346. FLOAT fDepth;
  1347. FLOAT fFeedback;
  1348. FLOAT fFrequency;
  1349. LONG lWaveform;
  1350. FLOAT fDelay;
  1351. LONG lPhase;
  1352. } DSFXFlanger, *LPDSFXFlanger;
  1353. typedef const DSFXFlanger *LPCDSFXFlanger;
  1354. #define DSFXFLANGER_DELAY_MIN 0.0f
  1355. #define DSFXFLANGER_DELAY_MAX 4.0f
  1356. #define DSFXFLANGER_DEPTH_MIN 0.0f
  1357. #define DSFXFLANGER_DEPTH_MAX 100.0f
  1358. #define DSFXFLANGER_FREQUENCY_MIN 0.0f
  1359. #define DSFXFLANGER_FREQUENCY_MAX 10.0f
  1360. #define DSFXFLANGER_FEEDBACK_MIN -99.0f
  1361. #define DSFXFLANGER_FEEDBACK_MAX 99.0f
  1362. #define DSFXFLANGER_PHASE_MIN 0
  1363. #define DSFXFLANGER_PHASE_MAX 4
  1364. #define DSFXFLANGER_PHASE_NEG_180 0
  1365. #define DSFXFLANGER_PHASE_NEG_90 1
  1366. #define DSFXFLANGER_PHASE_ZERO 2
  1367. #define DSFXFLANGER_PHASE_90 3
  1368. #define DSFXFLANGER_PHASE_180 4
  1369. #define DSFXFLANGER_WAVE_SIN 1
  1370. #define DSFXFLANGER_WAVE_TRIANGLE 0
  1371. #define DSFXFLANGER_WETDRYMIX_MIN 0.0f
  1372. #define DSFXFLANGER_WETDRYMIX_MAX 100.0f
  1373. #define INTERFACE IDirectSoundFXFlanger
  1374. DECLARE_INTERFACE_(IDirectSoundFXFlanger,IUnknown)
  1375. {
  1376. /*** IUnknown methods ***/
  1377. STDMETHOD(QueryInterface)(THIS_ REFIID, void**) PURE;
  1378. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  1379. STDMETHOD_(ULONG,Release)(THIS) PURE;
  1380. /*** IDirectSoundFXFlanger methods ***/
  1381. STDMETHOD(SetAllParameters)(THIS_ const DSFXFlanger *flanger) PURE;
  1382. STDMETHOD(GetAllParameters)(THIS_ DSFXFlanger *flanger) PURE;
  1383. };
  1384. #undef INTERFACE
  1385. #if !defined(__cplusplus) || defined(CINTERFACE)
  1386. #define IDirectSoundFXFlanger_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  1387. #define IDirectSoundFXFlanger_AddRef(p) (p)->lpVtbl->AddRef(p)
  1388. #define IDirectSoundFXFlanger_Release(p) (p)->lpVtbl->Release(p)
  1389. #define IDirectSoundFXFlanger_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a)
  1390. #define IDirectSoundFXFlanger_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
  1391. #else
  1392. #define IDirectSoundFXFlanger_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b)
  1393. #define IDirectSoundFXFlanger_AddRef(p) (p)->AddRef(p)
  1394. #define IDirectSoundFXFlanger_Release(p) (p)->Release(p)
  1395. #define IDirectSoundFXFlanger_SetAllParameters(p,a) (p)->SetAllParameters(a)
  1396. #define IDirectSoundFXFlanger_GetAllParameters(p,a) (p)->GetAllParameters(a)
  1397. #endif
  1398. typedef struct _DSFXEcho
  1399. {
  1400. FLOAT fWetDryMix;
  1401. FLOAT fFeedback;
  1402. FLOAT fLeftDelay;
  1403. FLOAT fRightDelay;
  1404. LONG lPanDelay;
  1405. } DSFXEcho, *LPDSFXEcho;
  1406. typedef const DSFXEcho *LPCDSFXEcho;
  1407. #define DSFXECHO_FEEDBACK_MIN 0.0f
  1408. #define DSFXECHO_FEEDBACK_MAX 100.0f
  1409. #define DSFXECHO_LEFTDELAY_MIN 1.0f
  1410. #define DSFXECHO_LEFTDELAY_MAX 2000.0f
  1411. #define DSFXECHO_PANDELAY_MIN 0
  1412. #define DSFXECHO_PANDELAY_MAX 1
  1413. #define DSFXECHO_RIGHTDELAY_MIN 1.0f
  1414. #define DSFXECHO_RIGHTDELAY_MAX 2000.0f
  1415. #define DSFXECHO_WETDRYMIX_MIN 0.0f
  1416. #define DSFXECHO_WETDRYMIX_MAX 100.0f
  1417. #define INTERFACE IDirectSoundFXEcho
  1418. DECLARE_INTERFACE_(IDirectSoundFXEcho,IUnknown)
  1419. {
  1420. /*** IUnknown methods ***/
  1421. STDMETHOD(QueryInterface)(THIS_ REFIID, void**) PURE;
  1422. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  1423. STDMETHOD_(ULONG,Release)(THIS) PURE;
  1424. /*** IDirectSoundFXEcho methods ***/
  1425. STDMETHOD(SetAllParameters)(THIS_ const DSFXEcho *echo) PURE;
  1426. STDMETHOD(GetAllParameters)(THIS_ DSFXEcho *echo) PURE;
  1427. };
  1428. #undef INTERFACE
  1429. #if !defined(__cplusplus) || defined(CINTERFACE)
  1430. #define IDirectSoundFXEcho_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  1431. #define IDirectSoundFXEcho_AddRef(p) (p)->lpVtbl->AddRef(p)
  1432. #define IDirectSoundFXEcho_Release(p) (p)->lpVtbl->Release(p)
  1433. #define IDirectSoundFXEcho_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a)
  1434. #define IDirectSoundFXEcho_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
  1435. #else
  1436. #define IDirectSoundFXEcho_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b)
  1437. #define IDirectSoundFXEcho_AddRef(p) (p)->AddRef(p)
  1438. #define IDirectSoundFXEcho_Release(p) (p)->Release(p)
  1439. #define IDirectSoundFXEcho_SetAllParameters(p,a) (p)->SetAllParameters(a)
  1440. #define IDirectSoundFXEcho_GetAllParameters(p,a) (p)->GetAllParameters(a)
  1441. #endif
  1442. typedef struct _DSFXDistortion
  1443. {
  1444. FLOAT fGain;
  1445. FLOAT fEdge;
  1446. FLOAT fPostEQCenterFrequency;
  1447. FLOAT fPostEQBandwidth;
  1448. FLOAT fPreLowpassCutoff;
  1449. } DSFXDistortion, *LPDSFXDistortion;
  1450. typedef const DSFXDistortion *LPCDSFXDistortion;
  1451. #define DSFXDISTORTION_EDGE_MIN 0.0f
  1452. #define DSFXDISTORTION_EDGE_MAX 100.0f
  1453. #define DSFXDISTORTION_GAIN_MIN -60.0f
  1454. #define DSFXDISTORTION_GAIN_MAX 0.0f
  1455. #define DSFXDISTORTION_POSTEQCENTERFREQUENCY_MIN 100.0f
  1456. #define DSFXDISTORTION_POSTEQCENTERFREQUENCY_MAX 8000.0f
  1457. #define DSFXDISTORTION_POSTEQBANDWIDTH_MIN 100.0f
  1458. #define DSFXDISTORTION_POSTEQBANDWIDTH_MAX 8000.0f
  1459. #define DSFXDISTORTION_PRELOWPASSCUTOFF_MIN 100.0f
  1460. #define DSFXDISTORTION_PRELOWPASSCUTOFF_MAX 8000.0f
  1461. #define INTERFACE IDirectSoundFXDistortion
  1462. DECLARE_INTERFACE_(IDirectSoundFXDistortion,IUnknown)
  1463. {
  1464. /*** IUnknown methods ***/
  1465. STDMETHOD(QueryInterface)(THIS_ REFIID, void**) PURE;
  1466. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  1467. STDMETHOD_(ULONG,Release)(THIS) PURE;
  1468. /*** IDirectSoundFXDistortion methods ***/
  1469. STDMETHOD(SetAllParameters)(THIS_ const DSFXDistortion *distortion) PURE;
  1470. STDMETHOD(GetAllParameters)(THIS_ DSFXDistortion *distortion) PURE;
  1471. };
  1472. #undef INTERFACE
  1473. #if !defined(__cplusplus) || defined(CINTERFACE)
  1474. #define IDirectSoundFXDistortion_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  1475. #define IDirectSoundFXDistortion_AddRef(p) (p)->lpVtbl->AddRef(p)
  1476. #define IDirectSoundFXDistortion_Release(p) (p)->lpVtbl->Release(p)
  1477. #define IDirectSoundFXDistortion_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a)
  1478. #define IDirectSoundFXDistortion_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
  1479. #else
  1480. #define IDirectSoundFXDistortion_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b)
  1481. #define IDirectSoundFXDistortion_AddRef(p) (p)->AddRef(p)
  1482. #define IDirectSoundFXDistortion_Release(p) (p)->Release(p)
  1483. #define IDirectSoundFXDistortion_SetAllParameters(p,a) (p)->SetAllParameters(a)
  1484. #define IDirectSoundFXDistortion_GetAllParameters(p,a) (p)->GetAllParameters(a)
  1485. #endif
  1486. typedef struct _DSFXCompressor
  1487. {
  1488. FLOAT fGain;
  1489. FLOAT fAttack;
  1490. FLOAT fRelease;
  1491. FLOAT fThreshold;
  1492. FLOAT fRatio;
  1493. FLOAT fPredelay;
  1494. } DSFXCompressor, *LPDSFXCompressor;
  1495. typedef const DSFXCompressor *LPCDSFXCompressor;
  1496. #define DSFXCOMPRESSOR_ATTACK_MIN 0.01f
  1497. #define DSFXCOMPRESSOR_ATTACK_MAX 500.0f
  1498. #define DSFXCOMPRESSOR_GAIN_MIN -60.0f
  1499. #define DSFXCOMPRESSOR_GAIN_MAX 60.0f
  1500. #define DSFXCOMPRESSOR_PREDELAY_MIN 0.0f
  1501. #define DSFXCOMPRESSOR_PREDELAY_MAX 4.0f
  1502. #define DSFXCOMPRESSOR_RATIO_MIN 1.0f
  1503. #define DSFXCOMPRESSOR_RATIO_MAX 100.0f
  1504. #define DSFXCOMPRESSOR_RELEASE_MIN 50.0f
  1505. #define DSFXCOMPRESSOR_RELEASE_MAX 3000.0f
  1506. #define DSFXCOMPRESSOR_THRESHOLD_MIN -60.0f
  1507. #define DSFXCOMPRESSOR_THRESHOLD_MAX 0.0f
  1508. #define INTERFACE IDirectSoundFXCompressor
  1509. DECLARE_INTERFACE_(IDirectSoundFXCompressor, IUnknown)
  1510. {
  1511. /*** IUnknown methods ***/
  1512. STDMETHOD(QueryInterface)(THIS_ REFIID, void**) PURE;
  1513. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  1514. STDMETHOD_(ULONG,Release)(THIS) PURE;
  1515. /*** IDirectSoundFXCompressor methods ***/
  1516. STDMETHOD(SetAllParameters)(THIS_ const DSFXCompressor *compressor) PURE;
  1517. STDMETHOD(GetAllParameters)(THIS_ DSFXCompressor *compressor) PURE;
  1518. };
  1519. #undef INTERFACE
  1520. #if !defined(__cplusplus) || defined(CINTERFACE)
  1521. #define IDirectSoundFXCompressor_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  1522. #define IDirectSoundFXCompressor_AddRef(p) (p)->lpVtbl->AddRef(p)
  1523. #define IDirectSoundFXCompressor_Release(p) (p)->lpVtbl->Release(p)
  1524. #define IDirectSoundFXCompressor_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a)
  1525. #define IDirectSoundFXCompressor_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
  1526. #else
  1527. #define IDirectSoundFXCompressor_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b)
  1528. #define IDirectSoundFXCompressor_AddRef(p) (p)->AddRef(p)
  1529. #define IDirectSoundFXCompressor_Release(p) (p)->Release(p)
  1530. #define IDirectSoundFXCompressor_SetAllParameters(p,a) (p)->SetAllParameters(a)
  1531. #define IDirectSoundFXCompressor_GetAllParameters(p,a) (p)->GetAllParameters(a)
  1532. #endif
  1533. typedef struct _DSFXParamEq
  1534. {
  1535. FLOAT fCenter;
  1536. FLOAT fBandwidth;
  1537. FLOAT fGain;
  1538. } DSFXParamEq, *LPDSFXParamEq;
  1539. typedef const DSFXParamEq *LPCDSFXParamEq;
  1540. #define DSFXPARAMEQ_BANDWIDTH_MIN 1.0f
  1541. #define DSFXPARAMEQ_BANDWIDTH_MAX 36.0f
  1542. #define DSFXPARAMEQ_CENTER_MIN 80.0f
  1543. #define DSFXPARAMEQ_CENTER_MAX 16000.0f
  1544. #define DSFXPARAMEQ_GAIN_MIN -15.0f
  1545. #define DSFXPARAMEQ_GAIN_MAX 15.0f
  1546. #define INTERFACE IDirectSoundFXParamEq
  1547. DECLARE_INTERFACE_(IDirectSoundFXParamEq, IUnknown)
  1548. {
  1549. /*** IUnknown methods ***/
  1550. STDMETHOD(QueryInterface)(THIS_ REFIID, void**) PURE;
  1551. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  1552. STDMETHOD_(ULONG,Release)(THIS) PURE;
  1553. /*** IDirectSoundFXParamEq methods ***/
  1554. STDMETHOD(SetAllParameters)(THIS_ const DSFXParamEq *param) PURE;
  1555. STDMETHOD(GetAllParameters)(THIS_ DSFXParamEq *param) PURE;
  1556. };
  1557. #undef INTERFACE
  1558. #if !defined(__cplusplus) || defined(CINTERFACE)
  1559. #define IDirectSoundFXParamEq_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  1560. #define IDirectSoundFXParamEq_AddRef(p) (p)->lpVtbl->AddRef(p)
  1561. #define IDirectSoundFXParamEq_Release(p) (p)->lpVtbl->Release(p)
  1562. #define IDirectSoundFXParamEq_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a)
  1563. #define IDirectSoundFXParamEq_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
  1564. #else
  1565. #define IDirectSoundFXParamEq_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b)
  1566. #define IDirectSoundFXParamEq_AddRef(p) (p)->AddRef(p)
  1567. #define IDirectSoundFXParamEq_Release(p) (p)->Release(p)
  1568. #define IDirectSoundFXParamEq_SetAllParameters(p,a) (p)->SetAllParameters(a)
  1569. #define IDirectSoundFXParamEq_GetAllParameters(p,a) (p)->GetAllParameters(a)
  1570. #endif
  1571. typedef struct _DSFXWavesReverb
  1572. {
  1573. FLOAT fInGain;
  1574. FLOAT fReverbMix;
  1575. FLOAT fReverbTime;
  1576. FLOAT fHighFreqRTRatio;
  1577. } DSFXWavesReverb, *LPDSFXWavesReverb;
  1578. typedef const DSFXWavesReverb *LPCDSFXWavesReverb;
  1579. #define DSFX_WAVESREVERB_HIGHFREQRTRATIO_MIN 0.001f
  1580. #define DSFX_WAVESREVERB_HIGHFREQRTRATIO_MAX 0.999f
  1581. #define DSFX_WAVESREVERB_HIGHFREQRTRATIO_DEFAULT 0.001f
  1582. #define DSFX_WAVESREVERB_INGAIN_MIN -96.0f
  1583. #define DSFX_WAVESREVERB_INGAIN_MAX 0.0f
  1584. #define DSFX_WAVESREVERB_INGAIN_DEFAULT 0.0f
  1585. #define DSFX_WAVESREVERB_REVERBMIX_MIN -96.0f
  1586. #define DSFX_WAVESREVERB_REVERBMIX_MAX 0.0f
  1587. #define DSFX_WAVESREVERB_REVERBMIX_DEFAULT 0.0f
  1588. #define DSFX_WAVESREVERB_REVERBTIME_MIN 0.001f
  1589. #define DSFX_WAVESREVERB_REVERBTIME_MAX 3000.0f
  1590. #define DSFX_WAVESREVERB_REVERBTIME_DEFAULT 1000.0f
  1591. #define INTERFACE IDirectSoundFXWavesReverb
  1592. DECLARE_INTERFACE_(IDirectSoundFXWavesReverb,IUnknown)
  1593. {
  1594. /*** IUnknown methods ***/
  1595. STDMETHOD(QueryInterface)(THIS_ REFIID, void**) PURE;
  1596. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  1597. STDMETHOD_(ULONG,Release)(THIS) PURE;
  1598. /*** IDirectSoundFXWavesReverb methods ***/
  1599. STDMETHOD(SetAllParameters)(THIS_ const DSFXWavesReverb *reverb) PURE;
  1600. STDMETHOD(GetAllParameters)(THIS_ DSFXWavesReverb *reverb) PURE;
  1601. };
  1602. #undef INTERFACE
  1603. #if !defined(__cplusplus) || defined(CINTERFACE)
  1604. #define IDirectSoundFXWavesReverb_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  1605. #define IDirectSoundFXWavesReverb_AddRef(p) (p)->lpVtbl->AddRef(p)
  1606. #define IDirectSoundFXWavesReverb_Release(p) (p)->lpVtbl->Release(p)
  1607. #define IDirectSoundFXWavesReverb_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a)
  1608. #define IDirectSoundFXWavesReverb_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
  1609. #else
  1610. #define IDirectSoundFXWavesReverb_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b)
  1611. #define IDirectSoundFXWavesReverb_AddRef(p) (p)->AddRef(p)
  1612. #define IDirectSoundFXWavesReverb_Release(p) (p)->Release(p)
  1613. #define IDirectSoundFXWavesReverb_SetAllParameters(p,a) (p)->SetAllParameters(a)
  1614. #define IDirectSoundFXWavesReverb_GetAllParameters(p,a) (p)->GetAllParameters(a)
  1615. #endif
  1616. enum
  1617. {
  1618. DSFX_I3DL2_MATERIAL_PRESET_SINGLEWINDOW,
  1619. DSFX_I3DL2_MATERIAL_PRESET_DOUBLEWINDOW,
  1620. DSFX_I3DL2_MATERIAL_PRESET_THINDOOR,
  1621. DSFX_I3DL2_MATERIAL_PRESET_THICKDOOR,
  1622. DSFX_I3DL2_MATERIAL_PRESET_WOODWALL,
  1623. DSFX_I3DL2_MATERIAL_PRESET_BRICKWALL,
  1624. DSFX_I3DL2_MATERIAL_PRESET_STONEWALL,
  1625. DSFX_I3DL2_MATERIAL_PRESET_CURTAIN
  1626. };
  1627. #define I3DL2_MATERIAL_PRESET_SINGLEWINDOW -2800,0.71f
  1628. #define I3DL2_MATERIAL_PRESET_DOUBLEWINDOW -5000,0.40f
  1629. #define I3DL2_MATERIAL_PRESET_THINDOOR -1800,0.66f
  1630. #define I3DL2_MATERIAL_PRESET_THICKDOOR -4400,0.64f
  1631. #define I3DL2_MATERIAL_PRESET_WOODWALL -4000,0.50f
  1632. #define I3DL2_MATERIAL_PRESET_BRICKWALL -5000,0.60f
  1633. #define I3DL2_MATERIAL_PRESET_STONEWALL -6000,0.68f
  1634. #define I3DL2_MATERIAL_PRESET_CURTAIN -1200,0.15f
  1635. enum
  1636. {
  1637. DSFX_I3DL2_ENVIRONMENT_PRESET_DEFAULT,
  1638. DSFX_I3DL2_ENVIRONMENT_PRESET_GENERIC,
  1639. DSFX_I3DL2_ENVIRONMENT_PRESET_PADDEDCELL,
  1640. DSFX_I3DL2_ENVIRONMENT_PRESET_ROOM,
  1641. DSFX_I3DL2_ENVIRONMENT_PRESET_BATHROOM,
  1642. DSFX_I3DL2_ENVIRONMENT_PRESET_LIVINGROOM,
  1643. DSFX_I3DL2_ENVIRONMENT_PRESET_STONEROOM,
  1644. DSFX_I3DL2_ENVIRONMENT_PRESET_AUDITORIUM,
  1645. DSFX_I3DL2_ENVIRONMENT_PRESET_CONCERTHALL,
  1646. DSFX_I3DL2_ENVIRONMENT_PRESET_CAVE,
  1647. DSFX_I3DL2_ENVIRONMENT_PRESET_ARENA,
  1648. DSFX_I3DL2_ENVIRONMENT_PRESET_HANGAR,
  1649. DSFX_I3DL2_ENVIRONMENT_PRESET_CARPETEDHALLWAY,
  1650. DSFX_I3DL2_ENVIRONMENT_PRESET_HALLWAY,
  1651. DSFX_I3DL2_ENVIRONMENT_PRESET_STONECORRIDOR,
  1652. DSFX_I3DL2_ENVIRONMENT_PRESET_ALLEY,
  1653. DSFX_I3DL2_ENVIRONMENT_PRESET_FOREST,
  1654. DSFX_I3DL2_ENVIRONMENT_PRESET_CITY,
  1655. DSFX_I3DL2_ENVIRONMENT_PRESET_MOUNTAINS,
  1656. DSFX_I3DL2_ENVIRONMENT_PRESET_QUARRY,
  1657. DSFX_I3DL2_ENVIRONMENT_PRESET_PLAIN,
  1658. DSFX_I3DL2_ENVIRONMENT_PRESET_PARKINGLOT,
  1659. DSFX_I3DL2_ENVIRONMENT_PRESET_SEWERPIPE,
  1660. DSFX_I3DL2_ENVIRONMENT_PRESET_UNDERWATER,
  1661. DSFX_I3DL2_ENVIRONMENT_PRESET_SMALLROOM,
  1662. DSFX_I3DL2_ENVIRONMENT_PRESET_MEDIUMROOM,
  1663. DSFX_I3DL2_ENVIRONMENT_PRESET_LARGEROOM,
  1664. DSFX_I3DL2_ENVIRONMENT_PRESET_MEDIUMHALL,
  1665. DSFX_I3DL2_ENVIRONMENT_PRESET_LARGEHALL,
  1666. DSFX_I3DL2_ENVIRONMENT_PRESET_PLATE
  1667. };
  1668. #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
  1669. #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
  1670. #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
  1671. #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
  1672. #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
  1673. #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
  1674. #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
  1675. #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
  1676. #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
  1677. #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
  1678. #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
  1679. #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
  1680. #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
  1681. #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
  1682. #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
  1683. #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
  1684. #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
  1685. #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
  1686. #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
  1687. #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
  1688. #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
  1689. #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
  1690. #define I3DL2_ENVIRONMENT_PRESET_SEWERPIPE -1000,-1000,0.0f,2.81f,0.14f,429,0.014f,648,0.011f,80.0f,60.0f,5000.0f
  1691. #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
  1692. #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
  1693. #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
  1694. #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
  1695. #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
  1696. #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
  1697. #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
  1698. #ifdef __cplusplus
  1699. } /* extern "C" */
  1700. #endif /* defined(__cplusplus) */
  1701. #endif /* __DSOUND_INCLUDED__ */