x3daudio.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. /*-========================================================================-_
  2. | - X3DAUDIO - |
  3. | Copyright (c) Microsoft Corporation. All rights reserved. |
  4. |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
  5. |PROJECT: X3DAudio MODEL: Unmanaged User-mode |
  6. |VERSION: 1.7 EXCEPT: No Exceptions |
  7. |CLASS: N / A MINREQ: WinXP, Xbox360 |
  8. |BASE: N / A DIALECT: MSC++ 14.00 |
  9. |>------------------------------------------------------------------------<|
  10. | DUTY: Cross-platform stand-alone 3D audio math library |
  11. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
  12. NOTES:
  13. 1. Definition of terms:
  14. LFE: Low Frequency Effect -- always omnidirectional.
  15. LPF: Low Pass Filter, divided into two classifications:
  16. Direct -- Applied to the direct signal path,
  17. used for obstruction/occlusion effects.
  18. Reverb -- Applied to the reverb signal path,
  19. used for occlusion effects only.
  20. 2. Volume level is expressed as a linear amplitude scaler:
  21. 1.0f represents no attenuation applied to the original signal,
  22. 0.5f denotes an attenuation of 6dB, and 0.0f results in silence.
  23. Amplification (volume > 1.0f) is also allowed, and is not clamped.
  24. LPF values range from 1.0f representing all frequencies pass through,
  25. to 0.0f which results in silence as all frequencies are filtered out.
  26. 3. X3DAudio uses a left-handed Cartesian coordinate system with values
  27. on the x-axis increasing from left to right, on the y-axis from
  28. bottom to top, and on the z-axis from near to far.
  29. Azimuths are measured clockwise from a given reference direction.
  30. Distance measurement is with respect to user-defined world units.
  31. Applications may provide coordinates using any system of measure
  32. as all non-normalized calculations are scale invariant, with such
  33. operations natively occurring in user-defined world unit space.
  34. Metric constants are supplied only as a convenience.
  35. Distance is calculated using the Euclidean norm formula.
  36. 4. Only real values are permissible with functions using 32-bit
  37. float parameters -- NAN and infinite values are not accepted.
  38. All computation occurs in 32-bit precision mode. */
  39. #ifdef _MSC_VER
  40. #pragma once
  41. #endif
  42. #include <sdkddkver.h>
  43. #if(_WIN32_WINNT < _WIN32_WINNT_WIN8)
  44. #error "This version of XAudio2 is available only in Windows 8 or later. Use the XAudio2 headers and libraries from the DirectX SDK with applications that target Windows 7 and earlier versions."
  45. #endif // (_WIN32_WINNT < _WIN32_WINNT_WIN8)
  46. #include <winapifamily.h>
  47. #pragma region Application Family
  48. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_TV_APP | WINAPI_PARTITION_TV_TITLE)
  49. //--------------<D-E-F-I-N-I-T-I-O-N-S>-------------------------------------//
  50. #include <windef.h> // general windows types
  51. #include <DirectXMath.h>
  52. // speaker geometry configuration flags, specifies assignment of channels to speaker positions, defined as per WAVEFORMATEXTENSIBLE.dwChannelMask
  53. #if !defined(_SPEAKER_POSITIONS_)
  54. #define _SPEAKER_POSITIONS_
  55. #define SPEAKER_FRONT_LEFT 0x00000001
  56. #define SPEAKER_FRONT_RIGHT 0x00000002
  57. #define SPEAKER_FRONT_CENTER 0x00000004
  58. #define SPEAKER_LOW_FREQUENCY 0x00000008
  59. #define SPEAKER_BACK_LEFT 0x00000010
  60. #define SPEAKER_BACK_RIGHT 0x00000020
  61. #define SPEAKER_FRONT_LEFT_OF_CENTER 0x00000040
  62. #define SPEAKER_FRONT_RIGHT_OF_CENTER 0x00000080
  63. #define SPEAKER_BACK_CENTER 0x00000100
  64. #define SPEAKER_SIDE_LEFT 0x00000200
  65. #define SPEAKER_SIDE_RIGHT 0x00000400
  66. #define SPEAKER_TOP_CENTER 0x00000800
  67. #define SPEAKER_TOP_FRONT_LEFT 0x00001000
  68. #define SPEAKER_TOP_FRONT_CENTER 0x00002000
  69. #define SPEAKER_TOP_FRONT_RIGHT 0x00004000
  70. #define SPEAKER_TOP_BACK_LEFT 0x00008000
  71. #define SPEAKER_TOP_BACK_CENTER 0x00010000
  72. #define SPEAKER_TOP_BACK_RIGHT 0x00020000
  73. #define SPEAKER_RESERVED 0x7FFC0000 // bit mask locations reserved for future use
  74. #define SPEAKER_ALL 0x80000000 // used to specify that any possible permutation of speaker configurations
  75. #endif
  76. // standard speaker geometry configurations, used with X3DAudioInitialize
  77. #if !defined(SPEAKER_MONO)
  78. #define SPEAKER_MONO SPEAKER_FRONT_CENTER
  79. #define SPEAKER_STEREO (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT)
  80. #define SPEAKER_2POINT1 (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_LOW_FREQUENCY)
  81. #define SPEAKER_SURROUND (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_BACK_CENTER)
  82. #define SPEAKER_QUAD (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT)
  83. #define SPEAKER_4POINT1 (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_LOW_FREQUENCY | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT)
  84. #define SPEAKER_5POINT1 (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT)
  85. #define SPEAKER_7POINT1 (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT | SPEAKER_FRONT_LEFT_OF_CENTER | SPEAKER_FRONT_RIGHT_OF_CENTER)
  86. #define SPEAKER_5POINT1_SURROUND (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | SPEAKER_SIDE_LEFT | SPEAKER_SIDE_RIGHT)
  87. #define SPEAKER_7POINT1_SURROUND (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT | SPEAKER_SIDE_LEFT | SPEAKER_SIDE_RIGHT)
  88. #endif
  89. // size of instance handle in bytes
  90. #define X3DAUDIO_HANDLE_BYTESIZE 20
  91. // float math constants
  92. #define X3DAUDIO_PI 3.141592654f
  93. #define X3DAUDIO_2PI 6.283185307f
  94. // speed of sound in meters per second for dry air at approximately 20C, used with X3DAudioInitialize
  95. #define X3DAUDIO_SPEED_OF_SOUND 343.5f
  96. // calculation control flags, used with X3DAudioCalculate
  97. #define X3DAUDIO_CALCULATE_MATRIX 0x00000001 // enable matrix coefficient table calculation
  98. #define X3DAUDIO_CALCULATE_DELAY 0x00000002 // enable delay time array calculation (stereo final mix only)
  99. #define X3DAUDIO_CALCULATE_LPF_DIRECT 0x00000004 // enable LPF direct-path coefficient calculation
  100. #define X3DAUDIO_CALCULATE_LPF_REVERB 0x00000008 // enable LPF reverb-path coefficient calculation
  101. #define X3DAUDIO_CALCULATE_REVERB 0x00000010 // enable reverb send level calculation
  102. #define X3DAUDIO_CALCULATE_DOPPLER 0x00000020 // enable doppler shift factor calculation
  103. #define X3DAUDIO_CALCULATE_EMITTER_ANGLE 0x00000040 // enable emitter-to-listener interior angle calculation
  104. #define X3DAUDIO_CALCULATE_ZEROCENTER 0x00010000 // do not position to front center speaker, signal positioned to remaining speakers instead, front center destination channel will be zero in returned matrix coefficient table, valid only for matrix calculations with final mix formats that have a front center channel
  105. #define X3DAUDIO_CALCULATE_REDIRECT_TO_LFE 0x00020000 // apply equal mix of all source channels to LFE destination channel, valid only for matrix calculations with sources that have no LFE channel and final mix formats that have an LFE channel
  106. //--------------<D-A-T-A---T-Y-P-E-S>---------------------------------------//
  107. #pragma pack(push, 1) // set packing alignment to ensure consistency across arbitrary build environments
  108. // primitive types
  109. typedef float FLOAT32; // 32-bit IEEE float
  110. typedef DirectX::XMFLOAT3 X3DAUDIO_VECTOR; // float 3D vector
  111. // instance handle of precalculated constants
  112. typedef BYTE X3DAUDIO_HANDLE[X3DAUDIO_HANDLE_BYTESIZE];
  113. // Distance curve point:
  114. // Defines a DSP setting at a given normalized distance.
  115. typedef struct X3DAUDIO_DISTANCE_CURVE_POINT
  116. {
  117. FLOAT32 Distance; // normalized distance, must be within [0.0f, 1.0f]
  118. FLOAT32 DSPSetting; // DSP setting
  119. } X3DAUDIO_DISTANCE_CURVE_POINT, *LPX3DAUDIO_DISTANCE_CURVE_POINT;
  120. // Distance curve:
  121. // A piecewise curve made up of linear segments used to
  122. // define DSP behaviour with respect to normalized distance.
  123. //
  124. // Note that curve point distances are normalized within [0.0f, 1.0f].
  125. // X3DAUDIO_EMITTER.CurveDistanceScaler must be used to scale the
  126. // normalized distances to user-defined world units.
  127. // For distances beyond CurveDistanceScaler * 1.0f,
  128. // pPoints[PointCount-1].DSPSetting is used as the DSP setting.
  129. //
  130. // All distance curve spans must be such that:
  131. // pPoints[k-1].DSPSetting + ((pPoints[k].DSPSetting-pPoints[k-1].DSPSetting) / (pPoints[k].Distance-pPoints[k-1].Distance)) * (pPoints[k].Distance-pPoints[k-1].Distance) != NAN or infinite values
  132. // For all points in the distance curve where 1 <= k < PointCount.
  133. typedef struct X3DAUDIO_DISTANCE_CURVE
  134. {
  135. X3DAUDIO_DISTANCE_CURVE_POINT* pPoints; // distance curve point array, must have at least PointCount elements with no duplicates and be sorted in ascending order with respect to Distance
  136. UINT32 PointCount; // number of distance curve points, must be >= 2 as all distance curves must have at least two endpoints, defining DSP settings at 0.0f and 1.0f normalized distance
  137. } X3DAUDIO_DISTANCE_CURVE, *LPX3DAUDIO_DISTANCE_CURVE;
  138. static const X3DAUDIO_DISTANCE_CURVE_POINT X3DAudioDefault_LinearCurvePoints[2] = { 0.0f, 1.0f, 1.0f, 0.0f };
  139. static const X3DAUDIO_DISTANCE_CURVE X3DAudioDefault_LinearCurve = { (X3DAUDIO_DISTANCE_CURVE_POINT*)&X3DAudioDefault_LinearCurvePoints[0], 2 };
  140. // Cone:
  141. // Specifies directionality for a listener or single-channel emitter by
  142. // modifying DSP behaviour with respect to its front orientation.
  143. // This is modeled using two sound cones: an inner cone and an outer cone.
  144. // On/within the inner cone, DSP settings are scaled by the inner values.
  145. // On/beyond the outer cone, DSP settings are scaled by the outer values.
  146. // If on both the cones, DSP settings are scaled by the inner values only.
  147. // Between the two cones, the scaler is linearly interpolated between the
  148. // inner and outer values. Set both cone angles to 0 or X3DAUDIO_2PI for
  149. // omnidirectionality using only the outer or inner values respectively.
  150. typedef struct X3DAUDIO_CONE
  151. {
  152. FLOAT32 InnerAngle; // inner cone angle in radians, must be within [0.0f, X3DAUDIO_2PI]
  153. FLOAT32 OuterAngle; // outer cone angle in radians, must be within [InnerAngle, X3DAUDIO_2PI]
  154. FLOAT32 InnerVolume; // volume level scaler on/within inner cone, used only for matrix calculations, must be within [0.0f, 2.0f] when used
  155. FLOAT32 OuterVolume; // volume level scaler on/beyond outer cone, used only for matrix calculations, must be within [0.0f, 2.0f] when used
  156. FLOAT32 InnerLPF; // LPF (both direct and reverb paths) coefficient subtrahend on/within inner cone, used only for LPF (both direct and reverb paths) calculations, must be within [0.0f, 1.0f] when used
  157. FLOAT32 OuterLPF; // LPF (both direct and reverb paths) coefficient subtrahend on/beyond outer cone, used only for LPF (both direct and reverb paths) calculations, must be within [0.0f, 1.0f] when used
  158. FLOAT32 InnerReverb; // reverb send level scaler on/within inner cone, used only for reverb calculations, must be within [0.0f, 2.0f] when used
  159. FLOAT32 OuterReverb; // reverb send level scaler on/beyond outer cone, used only for reverb calculations, must be within [0.0f, 2.0f] when used
  160. } X3DAUDIO_CONE, *LPX3DAUDIO_CONE;
  161. static const X3DAUDIO_CONE X3DAudioDefault_DirectionalCone = { X3DAUDIO_PI/2, X3DAUDIO_PI, 1.0f, 0.708f, 0.0f, 0.25f, 0.708f, 1.0f };
  162. // Listener:
  163. // Defines a point of 3D audio reception.
  164. //
  165. // The cone is directed by the listener's front orientation.
  166. typedef struct X3DAUDIO_LISTENER
  167. {
  168. X3DAUDIO_VECTOR OrientFront; // orientation of front direction, used only for matrix and delay calculations or listeners with cones for matrix, LPF (both direct and reverb paths), and reverb calculations, must be normalized when used
  169. X3DAUDIO_VECTOR OrientTop; // orientation of top direction, used only for matrix and delay calculations, must be orthonormal with OrientFront when used
  170. X3DAUDIO_VECTOR Position; // position in user-defined world units, does not affect Velocity
  171. X3DAUDIO_VECTOR Velocity; // velocity vector in user-defined world units/second, used only for doppler calculations, does not affect Position
  172. X3DAUDIO_CONE* pCone; // sound cone, used only for matrix, LPF (both direct and reverb paths), and reverb calculations, NULL specifies omnidirectionality
  173. } X3DAUDIO_LISTENER, *LPX3DAUDIO_LISTENER;
  174. // Emitter:
  175. // Defines a 3D audio source, divided into two classifications:
  176. //
  177. // Single-point -- For use with single-channel sounds.
  178. // Positioned at the emitter base, i.e. the channel radius
  179. // and azimuth are ignored if the number of channels == 1.
  180. //
  181. // May be omnidirectional or directional using a cone.
  182. // The cone originates from the emitter base position,
  183. // and is directed by the emitter's front orientation.
  184. //
  185. // Multi-point -- For use with multi-channel sounds.
  186. // Each non-LFE channel is positioned using an
  187. // azimuth along the channel radius with respect to the
  188. // front orientation vector in the plane orthogonal to the
  189. // top orientation vector. An azimuth of X3DAUDIO_2PI
  190. // specifies a channel is an LFE. Such channels are
  191. // positioned at the emitter base and are calculated
  192. // with respect to pLFECurve only, never pVolumeCurve.
  193. //
  194. // Multi-point emitters are always omnidirectional,
  195. // i.e. the cone is ignored if the number of channels > 1.
  196. //
  197. // Note that many properties are shared among all channel points,
  198. // locking certain behaviour with respect to the emitter base position.
  199. // For example, doppler shift is always calculated with respect to the
  200. // emitter base position and so is constant for all its channel points.
  201. // Distance curve calculations are also with respect to the emitter base
  202. // position, with the curves being calculated independently of each other.
  203. // For instance, volume and LFE calculations do not affect one another.
  204. typedef struct X3DAUDIO_EMITTER
  205. {
  206. X3DAUDIO_CONE* pCone; // sound cone, used only with single-channel emitters for matrix, LPF (both direct and reverb paths), and reverb calculations, NULL specifies omnidirectionality
  207. X3DAUDIO_VECTOR OrientFront; // orientation of front direction, used only for emitter angle calculations or with multi-channel emitters for matrix calculations or single-channel emitters with cones for matrix, LPF (both direct and reverb paths), and reverb calculations, must be normalized when used
  208. X3DAUDIO_VECTOR OrientTop; // orientation of top direction, used only with multi-channel emitters for matrix calculations, must be orthonormal with OrientFront when used
  209. X3DAUDIO_VECTOR Position; // position in user-defined world units, does not affect Velocity
  210. X3DAUDIO_VECTOR Velocity; // velocity vector in user-defined world units/second, used only for doppler calculations, does not affect Position
  211. FLOAT32 InnerRadius; // inner radius, must be within [0.0f, FLT_MAX]
  212. FLOAT32 InnerRadiusAngle; // inner radius angle, must be within [0.0f, X3DAUDIO_PI/4.0)
  213. UINT32 ChannelCount; // number of sound channels, must be > 0
  214. FLOAT32 ChannelRadius; // channel radius, used only with multi-channel emitters for matrix calculations, must be >= 0.0f when used
  215. FLOAT32* pChannelAzimuths; // channel azimuth array, used only with multi-channel emitters for matrix calculations, contains positions of each channel expressed in radians along the channel radius with respect to the front orientation vector in the plane orthogonal to the top orientation vector, or X3DAUDIO_2PI to specify an LFE channel, must have at least ChannelCount elements, all within [0.0f, X3DAUDIO_2PI] when used
  216. X3DAUDIO_DISTANCE_CURVE* pVolumeCurve; // volume level distance curve, used only for matrix calculations, NULL specifies a default curve that conforms to the inverse square law, calculated in user-defined world units with distances <= CurveDistanceScaler clamped to no attenuation
  217. X3DAUDIO_DISTANCE_CURVE* pLFECurve; // LFE level distance curve, used only for matrix calculations, NULL specifies a default curve that conforms to the inverse square law, calculated in user-defined world units with distances <= CurveDistanceScaler clamped to no attenuation
  218. X3DAUDIO_DISTANCE_CURVE* pLPFDirectCurve; // LPF direct-path coefficient distance curve, used only for LPF direct-path calculations, NULL specifies the default curve: [0.0f,1.0f], [1.0f,0.75f]
  219. X3DAUDIO_DISTANCE_CURVE* pLPFReverbCurve; // LPF reverb-path coefficient distance curve, used only for LPF reverb-path calculations, NULL specifies the default curve: [0.0f,0.75f], [1.0f,0.75f]
  220. X3DAUDIO_DISTANCE_CURVE* pReverbCurve; // reverb send level distance curve, used only for reverb calculations, NULL specifies the default curve: [0.0f,1.0f], [1.0f,0.0f]
  221. FLOAT32 CurveDistanceScaler; // curve distance scaler, used to scale normalized distance curves to user-defined world units and/or exaggerate their effect, used only for matrix, LPF (both direct and reverb paths), and reverb calculations, must be within [FLT_MIN, FLT_MAX] when used
  222. FLOAT32 DopplerScaler; // doppler shift scaler, used to exaggerate doppler shift effect, used only for doppler calculations, must be within [0.0f, FLT_MAX] when used
  223. } X3DAUDIO_EMITTER, *LPX3DAUDIO_EMITTER;
  224. // DSP settings:
  225. // Receives results from a call to X3DAudioCalculate to be sent
  226. // to the low-level audio rendering API for 3D signal processing.
  227. //
  228. // The user is responsible for allocating the matrix coefficient table,
  229. // delay time array, and initializing the channel counts when used.
  230. typedef struct X3DAUDIO_DSP_SETTINGS
  231. {
  232. FLOAT32* pMatrixCoefficients; // [inout] matrix coefficient table, receives an array representing the volume level used to send from source channel S to destination channel D, stored as pMatrixCoefficients[SrcChannelCount * D + S], must have at least SrcChannelCount*DstChannelCount elements
  233. FLOAT32* pDelayTimes; // [inout] delay time array, receives delays for each destination channel in milliseconds, must have at least DstChannelCount elements (stereo final mix only)
  234. UINT32 SrcChannelCount; // [in] number of source channels, must equal number of channels in respective emitter
  235. UINT32 DstChannelCount; // [in] number of destination channels, must equal number of channels of the final mix
  236. FLOAT32 LPFDirectCoefficient; // [out] LPF direct-path coefficient
  237. FLOAT32 LPFReverbCoefficient; // [out] LPF reverb-path coefficient
  238. FLOAT32 ReverbLevel; // [out] reverb send level
  239. FLOAT32 DopplerFactor; // [out] doppler shift factor, scales resampler ratio for doppler shift effect, where the effective frequency = DopplerFactor * original frequency
  240. FLOAT32 EmitterToListenerAngle; // [out] emitter-to-listener interior angle, expressed in radians with respect to the emitter's front orientation
  241. FLOAT32 EmitterToListenerDistance; // [out] distance in user-defined world units from the emitter base to listener position, always calculated
  242. FLOAT32 EmitterVelocityComponent; // [out] component of emitter velocity vector projected onto emitter->listener vector in user-defined world units/second, calculated only for doppler
  243. FLOAT32 ListenerVelocityComponent; // [out] component of listener velocity vector projected onto emitter->listener vector in user-defined world units/second, calculated only for doppler
  244. } X3DAUDIO_DSP_SETTINGS, *LPX3DAUDIO_DSP_SETTINGS;
  245. //--------------<M-A-C-R-O-S>-----------------------------------------------//
  246. // function storage-class attribute and calltype
  247. #if defined(X3DAUDIOSTATIC)
  248. #define X3DAUDIO_API_(type) EXTERN_C type STDAPIVCALLTYPE
  249. #else
  250. #if defined(X3DEXPORT)
  251. #define X3DAUDIO_API_(type) EXTERN_C __declspec(dllexport) type STDAPIVCALLTYPE
  252. #else
  253. #define X3DAUDIO_API_(type) EXTERN_C __declspec(dllimport) type STDAPIVCALLTYPE
  254. #endif
  255. #endif
  256. #define X3DAUDIO_IMP_(type) type STDMETHODVCALLTYPE
  257. //--------------<F-U-N-C-T-I-O-N-S>-----------------------------------------//
  258. // initializes instance handle
  259. X3DAUDIO_API_(HRESULT) X3DAudioInitialize (UINT32 SpeakerChannelMask, FLOAT32 SpeedOfSound, _Out_writes_bytes_(X3DAUDIO_HANDLE_BYTESIZE) X3DAUDIO_HANDLE Instance);
  260. // calculates DSP settings with respect to 3D parameters
  261. X3DAUDIO_API_(void) X3DAudioCalculate (_In_reads_bytes_(X3DAUDIO_HANDLE_BYTESIZE) const X3DAUDIO_HANDLE Instance, _In_ const X3DAUDIO_LISTENER* pListener, _In_ const X3DAUDIO_EMITTER* pEmitter, UINT32 Flags, _Inout_ X3DAUDIO_DSP_SETTINGS* pDSPSettings);
  262. #pragma pack(pop) // revert packing alignment
  263. #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_TV_APP | WINAPI_PARTITION_TV_TITLE) */
  264. #pragma endregion
  265. //---------------------------------<-EOF->----------------------------------//