RetroArch
xaudio27.h
Go to the documentation of this file.
1 /* RetroArch - A frontend for libretro.
2  * Copyright (C) 2010-2014 - Hans-Kristian Arntzen
3  * Copyright (C) 2011-2017 - Daniel De Matteis
4  * Copyright (C) 2010-2014 - OV2
5  *
6  * RetroArch is free software: you can redistribute it and/or modify it under the terms
7  * of the GNU General Public License as published by the Free Software Found-
8  * ation, either version 3 of the License, or (at your option) any later version.
9  *
10  * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
11  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  * PURPOSE. See the GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along with RetroArch.
15  * If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 /* Kinda stripped down. Only contains the bare essentials used in RetroArch. */
19 
20 #ifndef XAUDIO2_STRIPPED_H
21 #define XAUDIO2_STRIPPED_H
22 
23 #include <retro_inline.h>
24 #include <retro_environment.h>
25 
26 /* All structures defined in this file use tight field packing */
27 #pragma pack(push, 1)
28 
29 #if defined(__cplusplus) && !defined(CINTERFACE)
30 #define X2DEFAULT(x) = (x)
31 #else
32 #define X2DEFAULT(x)
33 #endif
34 
35 #ifdef _XBOX
36 #include <xtl.h>
37 
38 #ifndef __cplusplus
39 #define OPAQUE interface
40 #endif
41 #define DEFINE_CLSID(className, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
42  DEFINE_GUID(CLSID_##className, 0x##l, 0x##w1, 0x##w2, 0x##b1, 0x##b2, 0x##b3, 0x##b4, 0x##b5, 0x##b6, 0x##b7, 0x##b8)
43 #define DEFINE_IID(interfaceName, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
44  DEFINE_GUID(IID_##interfaceName, 0x##l, 0x##w1, 0x##w2, 0x##b1, 0x##b2, 0x##b3, 0x##b4, 0x##b5, 0x##b6, 0x##b7, 0x##b8)
45 
46 DEFINE_CLSID(XAudio2, 3eda9b49, 2085, 498b, 9b, b2, 39, a6, 77, 84, 93, de);
47 DEFINE_CLSID(XAudio2_Debug, 47199894, 7cc2, 444d, 98, 73, ce, d2, 56, 2c, c6, 0e);
48 DEFINE_IID(IXAudio2, 8bcf1f58, 9fe7, 4583, 8a, c6, e2, ad, c4, 65, c8, bb);
49 
50 #include <audiodefs.h> /* Basic audio data types and constants */
51 
52 #else
53 
54 #define WIN32_LEAN_AND_MEAN
55 #include <windows.h>
56 #include <basetyps.h>
57 #include <objbase.h>
58 #include <mmreg.h>
59 
60 #ifndef __cplusplus
61 #undef OPAQUE
62 #define OPAQUE struct
63 #endif
64 
65 #define DEFINE_GUID_X(n, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
66  static const GUID n = { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }
67 #define DEFINE_CLSID_X(className, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
68  DEFINE_GUID_X(CLSID_##className, 0x##l, 0x##w1, 0x##w2, 0x##b1, 0x##b2, 0x##b3, 0x##b4, 0x##b5, 0x##b6, 0x##b7, 0x##b8)
69 #define DEFINE_IID_X(interfaceName, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
70  DEFINE_GUID_X(IID_##interfaceName, 0x##l, 0x##w1, 0x##w2, 0x##b1, 0x##b2, 0x##b3, 0x##b4, 0x##b5, 0x##b6, 0x##b7, 0x##b8)
71 
72 #ifndef __cplusplus
73 #ifndef INTERFACE
74 #define INTERFACE void
75 #endif
76 #endif
77 
78 DEFINE_CLSID_X(XAudio2, 5a508685, a254, 4fba, 9b, 82, 9a, 24, b0, 03, 06, af); /* 2.7 */
79 DEFINE_IID_X(IXAudio2, 8bcf1f58, 9fe7, 4583, 8a, c6, e2, ad, c4, 65, c8, bb);
80 
81 #endif
82 
83 #ifdef _XBOX
84 #define XAUDIO2_DEFAULT_FREQ_RATIO 2.0f
85 #else
86 #define XAUDIO2_DEFAULT_FREQ_RATIO 4.0f
87 #endif
88 
89 #define XAUDIO2_COMMIT_NOW 0
90 #define XAUDIO2_DEFAULT_CHANNELS 0
91 #define XAUDIO2_DEFAULT_SAMPLERATE 0
92 
93 #define XAUDIO2_DEBUG_ENGINE 0x0001
94 #define XAUDIO2_VOICE_NOSRC 0x0004
95 
96 typedef enum XAUDIO2_DEVICE_ROLE
97 {
106 
107 #ifdef _XBOX
108 typedef enum XAUDIO2_XBOX_HWTHREAD_SPECIFIER
109 {
110  XboxThread0 = 0x01,
111  XboxThread1 = 0x02,
112  XboxThread2 = 0x04,
113  XboxThread3 = 0x08,
114  XboxThread4 = 0x10,
115  XboxThread5 = 0x20,
116  XAUDIO2_ANY_PROCESSOR = XboxThread4,
118 } XAUDIO2_XBOX_HWTHREAD_SPECIFIER, XAUDIO2_PROCESSOR;
119 #else
121 {
122 #if defined(__STDC_C89__)
123  XAUDIO2_ANY_PROCESSOR = 0xffff,
124 #else
125  XAUDIO2_ANY_PROCESSOR = 0xffffffff,
126 #endif
129 #endif
130 
131 typedef enum XAUDIO2_FILTER_TYPE {
136 
138 {
139  WCHAR DeviceID[256];
140  WCHAR DisplayName[256];
144 
145 /* Forward declarations. */
146 #ifdef __cplusplus
147 struct XAUDIO2_VOICE_DETAILS;
148 struct XAUDIO2_VOICE_SENDS;
150 struct XAUDIO2_EFFECT_CHAIN;
152 struct XAUDIO2_BUFFER_WMA;
153 struct XAUDIO2_VOICE_STATE;
157 struct IXAudio2SubmixVoice;
158 #else
170 #endif
171 
172 
173 typedef struct XAUDIO2_BUFFER
174 {
177  const BYTE* pAudioData;
183  void *pContext;
185 
186 #undef INTERFACE
187 #define INTERFACE IXAudio2VoiceCallback
188 
189 DECLARE_INTERFACE(IXAudio2VoiceCallback)
190 {
191  STDMETHOD_(void, OnVoiceProcessingPassStart) (THIS_ UINT32 BytesRequired) PURE;
192  STDMETHOD_(void, OnVoiceProcessingPassEnd) (THIS) PURE;
193  STDMETHOD_(void, OnStreamEnd) (THIS) PURE;
194  STDMETHOD_(void, OnBufferStart) (THIS_ void *pBufferContext) PURE;
195  STDMETHOD_(void, OnBufferEnd) (THIS_ void *pBufferContext) PURE;
196  STDMETHOD_(void, OnLoopEnd) (THIS_ void *pBufferContext) PURE;
197  STDMETHOD_(void, OnVoiceError) (THIS_ void *pBufferContext, HRESULT Error) PURE;
198 };
199 
200 #undef INTERFACE
201 #define INTERFACE IXAudio2Voice
202 
203 DECLARE_INTERFACE(IXAudio2Voice)
204 {
205 #define Declare_IXAudio2Voice_Methods() \
206  STDMETHOD_(void, GetVoiceDetails) (THIS_ XAUDIO2_VOICE_DETAILS* pVoiceDetails) PURE; \
207  STDMETHOD(SetOutputVoices) (THIS_ const XAUDIO2_VOICE_SENDS* pSendList) PURE; \
208  STDMETHOD(SetEffectChain) (THIS_ const XAUDIO2_EFFECT_CHAIN* pEffectChain) PURE; \
209  STDMETHOD(EnableEffect) (THIS_ UINT32 EffectIndex, \
210  UINT32 OperationSet X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE; \
211  STDMETHOD(DisableEffect) (THIS_ UINT32 EffectIndex, \
212  UINT32 OperationSet X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE; \
213  STDMETHOD_(void, GetEffectState) (THIS_ UINT32 EffectIndex, BOOL* pEnabled) PURE; \
214  STDMETHOD(SetEffectParameters) (THIS_ UINT32 EffectIndex, \
215  const void *pParameters, \
216  UINT32 ParametersByteSize, \
217  UINT32 OperationSet X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE; \
218  STDMETHOD(GetEffectParameters) (THIS_ UINT32 EffectIndex, void *pParameters, \
219  UINT32 ParametersByteSize) PURE; \
220  STDMETHOD(SetFilterParameters) (THIS_ const XAUDIO2_FILTER_PARAMETERS* pParameters, \
221  UINT32 OperationSet X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE; \
222  STDMETHOD_(void, GetFilterParameters) (THIS_ XAUDIO2_FILTER_PARAMETERS* pParameters) PURE; \
223  STDMETHOD_(void, SetOutputFilterParameters) (THIS_ IXAudio2Voice *voice, const XAUDIO2_FILTER_PARAMETERS* param, \
224  UINT32 op X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE; \
225  STDMETHOD_(void, GetOutputFilterParameters) (THIS_ IXAudio2Voice *voice, XAUDIO2_FILTER_PARAMETERS* param) PURE; \
226  STDMETHOD(SetVolume) (THIS_ float Volume, \
227  UINT32 OperationSet X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE; \
228  STDMETHOD_(void, GetVolume) (THIS_ float* pVolume) PURE; \
229  STDMETHOD(SetChannelVolumes) (THIS_ UINT32 Channels, const float* pVolumes, \
230  UINT32 OperationSet X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE; \
231  STDMETHOD_(void, GetChannelVolumes) (THIS_ UINT32 Channels, float* pVolumes) PURE; \
232  STDMETHOD(SetOutputMatrix) (THIS_ IXAudio2Voice* pDestinationVoice, \
233  UINT32 SourceChannels, UINT32 DestinationChannels, \
234  const float* pLevelMatrix, \
235  UINT32 OperationSet X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE; \
236  STDMETHOD_(void, GetOutputMatrix) (THIS_ IXAudio2Voice* pDestinationVoice, \
237  UINT32 SourceChannels, UINT32 DestinationChannels, \
238  float* pLevelMatrix) PURE; \
239  STDMETHOD_(void, DestroyVoice) (THIS) PURE
240 
242 };
243 
244 #undef INTERFACE
245 #define INTERFACE IXAudio2MasteringVoice
246 
247 DECLARE_INTERFACE_(IXAudio2MasteringVoice, IXAudio2Voice)
248 {
250 };
251 
252 #undef INTERFACE
253 #define INTERFACE IXAudio2SourceVoice
254 
255 DECLARE_INTERFACE_(IXAudio2SourceVoice, IXAudio2Voice)
256 {
258  STDMETHOD(Start) (THIS_ UINT32 Flags, UINT32 OperationSet X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE;
259  STDMETHOD(Stop) (THIS_ UINT32 Flags, UINT32 OperationSet X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE;
260  STDMETHOD(SubmitSourceBuffer) (THIS_ const XAUDIO2_BUFFER* pBuffer, const XAUDIO2_BUFFER_WMA* pBufferWMA X2DEFAULT(NULL)) PURE;
261  STDMETHOD(FlushSourceBuffers) (THIS) PURE;
262  STDMETHOD(Discontinuity) (THIS) PURE;
263  STDMETHOD(ExitLoop) (THIS_ UINT32 OperationSet X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE;
264  STDMETHOD_(void, GetState) (THIS_ XAUDIO2_VOICE_STATE* pVoiceState) PURE;
265  STDMETHOD(SetFrequencyRatio) (THIS_ float Ratio,
266  UINT32 OperationSet X2DEFAULT(XAUDIO2_COMMIT_NOW)) PURE;
267  STDMETHOD_(void, GetFrequencyRatio) (THIS_ float* pRatio) PURE;
268 };
269 
270 #undef INTERFACE
271 #define INTERFACE IXAudio2
272 
273 DECLARE_INTERFACE_(IXAudio2, IUnknown)
274 {
275  STDMETHOD(QueryInterface) (THIS_ REFIID riid, void** ppvInterface) PURE;
276  STDMETHOD_(ULONG, AddRef) (THIS) PURE;
277  STDMETHOD_(ULONG, Release) (THIS) PURE;
278  STDMETHOD(GetDeviceCount) (THIS_ UINT32* pCount) PURE;
279  STDMETHOD(GetDeviceDetails) (THIS_ UINT32 Index, XAUDIO2_DEVICE_DETAILS* pDeviceDetails) PURE;
280  STDMETHOD(Initialize) (THIS_ UINT32 Flags X2DEFAULT(0),
281  XAUDIO2_PROCESSOR XAudio2Processor X2DEFAULT(XAUDIO2_DEFAULT_PROCESSOR)) PURE;
282  STDMETHOD(RegisterForCallbacks) (IXAudio2EngineCallback* pCallback) PURE;
283  STDMETHOD_(void, UnregisterForCallbacks) (IXAudio2EngineCallback* pCallback) PURE;
284  STDMETHOD(CreateSourceVoice) (THIS_ IXAudio2SourceVoice** ppSourceVoice,
285  const WAVEFORMATEX* pSourceFormat,
286  UINT32 Flags X2DEFAULT(0),
287  float MaxFrequencyRatio X2DEFAULT(XAUDIO2_DEFAULT_FREQ_RATIO),
288  IXAudio2VoiceCallback* pCallback X2DEFAULT(NULL),
289  const XAUDIO2_VOICE_SENDS* pSendList X2DEFAULT(NULL),
290  const XAUDIO2_EFFECT_CHAIN* pEffectChain X2DEFAULT(NULL)) PURE;
291  STDMETHOD(CreateSubmixVoice) (THIS_ IXAudio2SubmixVoice** ppSubmixVoice,
292  UINT32 InputChannels, UINT32 InputSampleRate,
293  UINT32 Flags X2DEFAULT(0), UINT32 ProcessingStage X2DEFAULT(0),
294  const XAUDIO2_VOICE_SENDS* pSendList X2DEFAULT(NULL),
295  const XAUDIO2_EFFECT_CHAIN* pEffectChain X2DEFAULT(NULL)) PURE;
296  STDMETHOD(CreateMasteringVoice) (THIS_ IXAudio2MasteringVoice** ppMasteringVoice,
299  UINT32 Flags X2DEFAULT(0), UINT32 DeviceIndex X2DEFAULT(0),
300  const XAUDIO2_EFFECT_CHAIN* pEffectChain X2DEFAULT(NULL)) PURE;
301  STDMETHOD(StartEngine) (THIS) PURE;
302  STDMETHOD_(void, StopEngine) (THIS) PURE;
303  STDMETHOD(CommitChanges) (THIS_ UINT32 OperationSet) PURE;
304  STDMETHOD_(void, GetPerformanceData) (THIS_ XAUDIO2_PERFORMANCE_DATA* pPerfData) PURE;
305  STDMETHOD_(void, SetDebugConfiguration) (THIS_ const XAUDIO2_DEBUG_CONFIGURATION* pDebugConfiguration,
306  void *pReserved X2DEFAULT(NULL)) PURE;
307 };
308 
309 #if defined(__cplusplus) && !defined(CINTERFACE)
310 /* C++ hooks */
311 #define IXAudio2_Initialize(handle,a,b) handle->Initialize(a, b)
312 #define IXAudio2SourceVoice_SubmitSourceBuffer(handle, a, b) handle->SubmitSourceBuffer(a, b)
313 #define IXAudio2SourceVoice_Stop(handle, a, b) handle->Stop(a, b)
314 #define IXAudio2SourceVoice_DestroyVoice(handle) handle->DestroyVoice()
315 #define IXAudio2MasteringVoice_DestroyVoice(handle) handle->DestroyVoice()
316 #define IXAudio2_Release(handle) handle->Release()
317 #define IXAudio2_CreateSourceVoice(handle, a, b, c, d, e, f, g) handle->CreateSourceVoice(a, b, c, d, e, f, g)
318 #define IXAudio2_CreateMasteringVoice(handle, a, b, c, d, e, f) handle->CreateMasteringVoice(a, b, c, d, e, f)
319 #define IXAudio2SourceVoice_Start(handle, a, b) handle->Start(a, b)
320 #else
321 /* C hooks */
322 #define IXAudio2_Initialize(handle,a,b) (handle)->lpVtbl->Initialize(handle, a, b)
323 #define IXAudio2_Release(handle) (handle)->lpVtbl->Release(handle)
324 #define IXAudio2_CreateSourceVoice(handle,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain) (handle)->lpVtbl->CreateSourceVoice(handle, ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain)
325 #define IXAudio2_CreateMasteringVoice(handle,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain) (handle)->lpVtbl->CreateMasteringVoice(handle, ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain)
326 #define IXAudio2_GetDeviceCount(handle, puCount) (handle)->lpVtbl->GetDeviceCount(handle, puCount)
327 #define IXAudio2_GetDeviceDetails(handle, Index,pDeviceDetails) (handle)->lpVtbl->GetDeviceDetails(handle, Index, pDeviceDetails)
328 #define IXAudio2SourceVoice_Start(handle, Flags, OperationSet) (handle)->lpVtbl->Start(handle, Flags, OperationSet)
329 #define IXAudio2SourceVoice_Stop(handle, Flags, OperationSet) (handle)->lpVtbl->Stop(handle, Flags, OperationSet)
330 #define IXAudio2SourceVoice_SubmitSourceBuffer(handle, pBuffer, pBufferWMA) (handle)->lpVtbl->SubmitSourceBuffer(handle, pBuffer, pBufferWMA)
331 #define IXAudio2SourceVoice_DestroyVoice(handle) (handle)->lpVtbl->DestroyVoice(handle)
332 #define IXAudio2MasteringVoice_DestroyVoice(handle) (handle)->lpVtbl->DestroyVoice(handle)
333 #endif
334 
335 #ifdef _XBOX
336 STDAPI XAudio2Create(__deref_out IXAudio2** ppXAudio2, UINT32 Flags X2DEFAULT(0),
338 #else
339 static INLINE HRESULT XAudio2Create(IXAudio2 **ppXAudio2, UINT32 flags, XAUDIO2_PROCESSOR proc)
340 {
341  IXAudio2 *pXAudio2 = NULL;
342 #ifdef __cplusplus
343  HRESULT hr = CoCreateInstance(CLSID_XAudio2, NULL, CLSCTX_INPROC_SERVER, IID_IXAudio2, (void**)&pXAudio2);
344 #else
345  HRESULT hr = CoCreateInstance(&CLSID_XAudio2, NULL, CLSCTX_INPROC_SERVER, &IID_IXAudio2, (void**)&pXAudio2);
346 #endif
347 
348  if (SUCCEEDED(hr))
349  {
351  if (SUCCEEDED(hr))
352  *ppXAudio2 = pXAudio2;
353  else
354  IXAudio2_Release(pXAudio2);
355  }
356  return hr;
357 }
358 #endif
359 
360 /* Undo the #pragma pack(push, 1) directive at the top of this file */
361 #pragma pack(pop)
362 
363 #endif
364 
UINT32 PlayBegin
Definition: xaudio27.h:178
XAUDIO2_FILTER_TYPE
Definition: xaudio27.h:131
#define Declare_IXAudio2Voice_Methods()
byte Error
Definition: jsonsax_full.c:107
enum XAUDIO2_WINDOWS_PROCESSOR_SPECIFIER XAUDIO2_PROCESSOR
#define DEFINE_IID_X(interfaceName, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
Definition: xaudio27.h:69
#define INLINE
Definition: retro_inline.h:35
UINT32 AudioBytes
Definition: xaudio27.h:176
struct XAUDIO2_BUFFER XAUDIO2_BUFFER
Definition: xaudio27.h:127
XAUDIO2_DEVICE_ROLE Role
Definition: xaudio27.h:141
Definition: xaudio27.h:137
OPAQUE XAUDIO2_VOICE_STATE XAUDIO2_VOICE_STATE
Definition: xaudio27.h:165
OPAQUE XAUDIO2_EFFECT_DESCRIPTOR XAUDIO2_EFFECT_DESCRIPTOR
Definition: xaudio27.h:161
OPAQUE XAUDIO2_FILTER_PARAMETERS XAUDIO2_FILTER_PARAMETERS
Definition: xaudio27.h:163
void * pContext
Definition: xaudio27.h:183
Definition: xaudio27.h:99
OPAQUE XAUDIO2_VOICE_DETAILS XAUDIO2_VOICE_DETAILS
Definition: xaudio27.h:159
struct XAUDIO2_DEVICE_DETAILS XAUDIO2_DEVICE_DETAILS
#define DEFINE_IID(interfaceName, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
Definition: comdecl.h:54
typedef HRESULT(WINAPI *PFN_D3D12_SERIALIZE_ROOT_SIGNATURE)(_In_ const D3D12_ROOT_SIGNATURE_DESC *pRootSignature
const GLubyte * c
Definition: glext.h:9812
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
OPAQUE IXAudio2EngineCallback IXAudio2EngineCallback
Definition: xaudio27.h:168
#define IXAudio2_Initialize(handle, a, b)
Definition: xaudio27.h:322
DECLARE_INTERFACE(IXAudio2VoiceCallback)
Definition: xaudio27.h:189
#define NULL
Pointer to 0.
Definition: gctypes.h:65
OPAQUE XAUDIO2_BUFFER_WMA XAUDIO2_BUFFER_WMA
Definition: xaudio27.h:164
static INLINE HRESULT XAudio2Create(IXAudio2 **ppXAudio2, UINT32 flags, XAUDIO2_PROCESSOR proc)
Definition: xaudio27.h:339
#define X2DEFAULT(x)
Definition: xaudio27.h:32
Definition: audiodefs.h:74
Definition: xaudio27.h:100
OPAQUE IXAudio2SubmixVoice IXAudio2SubmixVoice
Definition: xaudio27.h:169
#define DEFINE_CLSID(className, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
Definition: comdecl.h:51
Definition: xaudio27.h:133
OPAQUE XAUDIO2_DEBUG_CONFIGURATION XAUDIO2_DEBUG_CONFIGURATION
Definition: xaudio27.h:167
OPAQUE XAUDIO2_PERFORMANCE_DATA XAUDIO2_PERFORMANCE_DATA
Definition: xaudio27.h:166
UINT32 LoopCount
Definition: xaudio27.h:182
UINT32 LoopLength
Definition: xaudio27.h:181
Definition: xaudio27.h:103
XAUDIO2_DEVICE_ROLE
Definition: xaudio27.h:96
UINT32 LoopBegin
Definition: xaudio27.h:180
WCHAR DeviceID[256]
Definition: xaudio27.h:139
static INLINE ULONG Release(void *object)
Definition: dxgi_common.h:253
Definition: xaudio27.h:102
UINT32 Flags
Definition: xaudio27.h:175
uint32_t UINT32
Definition: coretypes.h:10
Definition: xaudio27.h:101
const BYTE * pAudioData
Definition: xaudio27.h:177
OPAQUE XAUDIO2_VOICE_SENDS XAUDIO2_VOICE_SENDS
Definition: xaudio27.h:160
#define XAUDIO2_DEFAULT_CHANNELS
Definition: xaudio27.h:90
DECLARE_INTERFACE_(IXAudio2MasteringVoice, IXAudio2Voice)
Definition: xaudio27.h:247
Definition: audiodefs.h:40
OPAQUE XAUDIO2_EFFECT_CHAIN XAUDIO2_EFFECT_CHAIN
Definition: xaudio27.h:162
WCHAR DisplayName[256]
Definition: xaudio27.h:140
#define XAUDIO2_COMMIT_NOW
Definition: xaudio27.h:89
#define DEFINE_CLSID_X(className, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
Definition: xaudio27.h:67
#define IXAudio2_Release(handle)
Definition: xaudio27.h:323
UINT32 PlayLength
Definition: xaudio27.h:179
Definition: xaudio27.h:173
#define XAUDIO2_DEFAULT_SAMPLERATE
Definition: xaudio27.h:91
XAUDIO2_WINDOWS_PROCESSOR_SPECIFIER
Definition: xaudio27.h:120
GLbitfield flags
Definition: glext.h:7828
Definition: civetweb.c:1321
Definition: xaudio27.h:125
Definition: xaudio27.h:98
static const unsigned char ad[]
Definition: ccm.c:369
Definition: xaudio27.h:104
#define OPAQUE
Definition: xaudio27.h:62
Definition: xaudio27.h:132
#define XAUDIO2_DEFAULT_FREQ_RATIO
Definition: xaudio27.h:86
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844
Definition: xaudio27.h:134
WAVEFORMATEXTENSIBLE OutputFormat
Definition: xaudio27.h:142