blob: 4c886257d3339d8be8d5e2ebb6d160a346610957 [file] [log] [blame]
/*** Autogenerated by WIDL 6.4 from include/xaudio2.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif
#include <rpc.h>
#include <rpcndr.h>
#endif
#ifndef COM_NO_WINDOWS_H
#include <windows.h>
#include <ole2.h>
#endif
#ifndef __xaudio2_h__
#define __xaudio2_h__
/* Forward declarations */
#ifndef __XAudio20_FWD_DEFINED__
#define __XAudio20_FWD_DEFINED__
#ifdef __cplusplus
typedef class XAudio20 XAudio20;
#else
typedef struct XAudio20 XAudio20;
#endif /* defined __cplusplus */
#endif /* defined __XAudio20_FWD_DEFINED__ */
#ifndef __XAudio21_FWD_DEFINED__
#define __XAudio21_FWD_DEFINED__
#ifdef __cplusplus
typedef class XAudio21 XAudio21;
#else
typedef struct XAudio21 XAudio21;
#endif /* defined __cplusplus */
#endif /* defined __XAudio21_FWD_DEFINED__ */
#ifndef __XAudio22_FWD_DEFINED__
#define __XAudio22_FWD_DEFINED__
#ifdef __cplusplus
typedef class XAudio22 XAudio22;
#else
typedef struct XAudio22 XAudio22;
#endif /* defined __cplusplus */
#endif /* defined __XAudio22_FWD_DEFINED__ */
#ifndef __XAudio23_FWD_DEFINED__
#define __XAudio23_FWD_DEFINED__
#ifdef __cplusplus
typedef class XAudio23 XAudio23;
#else
typedef struct XAudio23 XAudio23;
#endif /* defined __cplusplus */
#endif /* defined __XAudio23_FWD_DEFINED__ */
#ifndef __XAudio24_FWD_DEFINED__
#define __XAudio24_FWD_DEFINED__
#ifdef __cplusplus
typedef class XAudio24 XAudio24;
#else
typedef struct XAudio24 XAudio24;
#endif /* defined __cplusplus */
#endif /* defined __XAudio24_FWD_DEFINED__ */
#ifndef __XAudio25_FWD_DEFINED__
#define __XAudio25_FWD_DEFINED__
#ifdef __cplusplus
typedef class XAudio25 XAudio25;
#else
typedef struct XAudio25 XAudio25;
#endif /* defined __cplusplus */
#endif /* defined __XAudio25_FWD_DEFINED__ */
#ifndef __XAudio26_FWD_DEFINED__
#define __XAudio26_FWD_DEFINED__
#ifdef __cplusplus
typedef class XAudio26 XAudio26;
#else
typedef struct XAudio26 XAudio26;
#endif /* defined __cplusplus */
#endif /* defined __XAudio26_FWD_DEFINED__ */
#ifndef __XAudio27_FWD_DEFINED__
#define __XAudio27_FWD_DEFINED__
#ifdef __cplusplus
typedef class XAudio27 XAudio27;
#else
typedef struct XAudio27 XAudio27;
#endif /* defined __cplusplus */
#endif /* defined __XAudio27_FWD_DEFINED__ */
#ifndef __XAudio2Debug_FWD_DEFINED__
#define __XAudio2Debug_FWD_DEFINED__
#ifdef __cplusplus
typedef class XAudio2Debug XAudio2Debug;
#else
typedef struct XAudio2Debug XAudio2Debug;
#endif /* defined __cplusplus */
#endif /* defined __XAudio2Debug_FWD_DEFINED__ */
#ifndef __IXAudio2EngineCallback_FWD_DEFINED__
#define __IXAudio2EngineCallback_FWD_DEFINED__
typedef interface IXAudio2EngineCallback IXAudio2EngineCallback;
#ifdef __cplusplus
interface IXAudio2EngineCallback;
#endif /* __cplusplus */
#endif
#ifndef __IXAudio20Voice_FWD_DEFINED__
#define __IXAudio20Voice_FWD_DEFINED__
typedef interface IXAudio20Voice IXAudio20Voice;
#ifdef __cplusplus
interface IXAudio20Voice;
#endif /* __cplusplus */
#endif
#ifndef __IXAudio23Voice_FWD_DEFINED__
#define __IXAudio23Voice_FWD_DEFINED__
typedef interface IXAudio23Voice IXAudio23Voice;
#ifdef __cplusplus
interface IXAudio23Voice;
#endif /* __cplusplus */
#endif
#ifndef __IXAudio27Voice_FWD_DEFINED__
#define __IXAudio27Voice_FWD_DEFINED__
typedef interface IXAudio27Voice IXAudio27Voice;
#ifdef __cplusplus
interface IXAudio27Voice;
#endif /* __cplusplus */
#endif
#ifndef __IXAudio2Voice_FWD_DEFINED__
#define __IXAudio2Voice_FWD_DEFINED__
typedef interface IXAudio2Voice IXAudio2Voice;
#ifdef __cplusplus
interface IXAudio2Voice;
#endif /* __cplusplus */
#endif
#ifndef __IXAudio20SourceVoice_FWD_DEFINED__
#define __IXAudio20SourceVoice_FWD_DEFINED__
typedef interface IXAudio20SourceVoice IXAudio20SourceVoice;
#ifdef __cplusplus
interface IXAudio20SourceVoice;
#endif /* __cplusplus */
#endif
#ifndef __IXAudio23SourceVoice_FWD_DEFINED__
#define __IXAudio23SourceVoice_FWD_DEFINED__
typedef interface IXAudio23SourceVoice IXAudio23SourceVoice;
#ifdef __cplusplus
interface IXAudio23SourceVoice;
#endif /* __cplusplus */
#endif
#ifndef __IXAudio27SourceVoice_FWD_DEFINED__
#define __IXAudio27SourceVoice_FWD_DEFINED__
typedef interface IXAudio27SourceVoice IXAudio27SourceVoice;
#ifdef __cplusplus
interface IXAudio27SourceVoice;
#endif /* __cplusplus */
#endif
#ifndef __IXAudio2SourceVoice_FWD_DEFINED__
#define __IXAudio2SourceVoice_FWD_DEFINED__
typedef interface IXAudio2SourceVoice IXAudio2SourceVoice;
#ifdef __cplusplus
interface IXAudio2SourceVoice;
#endif /* __cplusplus */
#endif
#ifndef __IXAudio20SubmixVoice_FWD_DEFINED__
#define __IXAudio20SubmixVoice_FWD_DEFINED__
typedef interface IXAudio20SubmixVoice IXAudio20SubmixVoice;
#ifdef __cplusplus
interface IXAudio20SubmixVoice;
#endif /* __cplusplus */
#endif
#ifndef __IXAudio23SubmixVoice_FWD_DEFINED__
#define __IXAudio23SubmixVoice_FWD_DEFINED__
typedef interface IXAudio23SubmixVoice IXAudio23SubmixVoice;
#ifdef __cplusplus
interface IXAudio23SubmixVoice;
#endif /* __cplusplus */
#endif
#ifndef __IXAudio27SubmixVoice_FWD_DEFINED__
#define __IXAudio27SubmixVoice_FWD_DEFINED__
typedef interface IXAudio27SubmixVoice IXAudio27SubmixVoice;
#ifdef __cplusplus
interface IXAudio27SubmixVoice;
#endif /* __cplusplus */
#endif
#ifndef __IXAudio2SubmixVoice_FWD_DEFINED__
#define __IXAudio2SubmixVoice_FWD_DEFINED__
typedef interface IXAudio2SubmixVoice IXAudio2SubmixVoice;
#ifdef __cplusplus
interface IXAudio2SubmixVoice;
#endif /* __cplusplus */
#endif
#ifndef __IXAudio20MasteringVoice_FWD_DEFINED__
#define __IXAudio20MasteringVoice_FWD_DEFINED__
typedef interface IXAudio20MasteringVoice IXAudio20MasteringVoice;
#ifdef __cplusplus
interface IXAudio20MasteringVoice;
#endif /* __cplusplus */
#endif
#ifndef __IXAudio23MasteringVoice_FWD_DEFINED__
#define __IXAudio23MasteringVoice_FWD_DEFINED__
typedef interface IXAudio23MasteringVoice IXAudio23MasteringVoice;
#ifdef __cplusplus
interface IXAudio23MasteringVoice;
#endif /* __cplusplus */
#endif
#ifndef __IXAudio27MasteringVoice_FWD_DEFINED__
#define __IXAudio27MasteringVoice_FWD_DEFINED__
typedef interface IXAudio27MasteringVoice IXAudio27MasteringVoice;
#ifdef __cplusplus
interface IXAudio27MasteringVoice;
#endif /* __cplusplus */
#endif
#ifndef __IXAudio2MasteringVoice_FWD_DEFINED__
#define __IXAudio2MasteringVoice_FWD_DEFINED__
typedef interface IXAudio2MasteringVoice IXAudio2MasteringVoice;
#ifdef __cplusplus
interface IXAudio2MasteringVoice;
#endif /* __cplusplus */
#endif
#ifndef __IXAudio20VoiceCallback_FWD_DEFINED__
#define __IXAudio20VoiceCallback_FWD_DEFINED__
typedef interface IXAudio20VoiceCallback IXAudio20VoiceCallback;
#ifdef __cplusplus
interface IXAudio20VoiceCallback;
#endif /* __cplusplus */
#endif
#ifndef __IXAudio2VoiceCallback_FWD_DEFINED__
#define __IXAudio2VoiceCallback_FWD_DEFINED__
typedef interface IXAudio2VoiceCallback IXAudio2VoiceCallback;
#ifdef __cplusplus
interface IXAudio2VoiceCallback;
#endif /* __cplusplus */
#endif
#ifndef __IXAudio20_FWD_DEFINED__
#define __IXAudio20_FWD_DEFINED__
typedef interface IXAudio20 IXAudio20;
#ifdef __cplusplus
interface IXAudio20;
#endif /* __cplusplus */
#endif
#ifndef __IXAudio22_FWD_DEFINED__
#define __IXAudio22_FWD_DEFINED__
typedef interface IXAudio22 IXAudio22;
#ifdef __cplusplus
interface IXAudio22;
#endif /* __cplusplus */
#endif
#ifndef __IXAudio23_FWD_DEFINED__
#define __IXAudio23_FWD_DEFINED__
typedef interface IXAudio23 IXAudio23;
#ifdef __cplusplus
interface IXAudio23;
#endif /* __cplusplus */
#endif
#ifndef __IXAudio27_FWD_DEFINED__
#define __IXAudio27_FWD_DEFINED__
typedef interface IXAudio27 IXAudio27;
#ifdef __cplusplus
interface IXAudio27;
#endif /* __cplusplus */
#endif
#ifndef __IXAudio2_FWD_DEFINED__
#define __IXAudio2_FWD_DEFINED__
typedef interface IXAudio2 IXAudio2;
#ifdef __cplusplus
interface IXAudio2;
#endif /* __cplusplus */
#endif
/* Headers for imported files */
#include <unknwn.h>
#include <mmdeviceapi.h>
#include <audiosessiontypes.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <pshpack1.h>
/*****************************************************************************
* XAudio20 coclass
*/
DEFINE_GUID(CLSID_XAudio20, 0xfac23f48, 0x31f5, 0x45a8, 0xb4,0x9b, 0x52,0x25,0xd6,0x14,0x01,0xaa);
#ifdef __cplusplus
class DECLSPEC_UUID("fac23f48-31f5-45a8-b49b-5225d61401aa") XAudio20;
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(XAudio20, 0xfac23f48, 0x31f5, 0x45a8, 0xb4,0x9b, 0x52,0x25,0xd6,0x14,0x01,0xaa)
#endif
#endif
/*****************************************************************************
* XAudio21 coclass
*/
DEFINE_GUID(CLSID_XAudio21, 0xe21a7345, 0xeb21, 0x468e, 0xbe,0x50, 0x80,0x4d,0xb9,0x7c,0xf7,0x08);
#ifdef __cplusplus
class DECLSPEC_UUID("e21a7345-eb21-468e-be50-804db97cf708") XAudio21;
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(XAudio21, 0xe21a7345, 0xeb21, 0x468e, 0xbe,0x50, 0x80,0x4d,0xb9,0x7c,0xf7,0x08)
#endif
#endif
/*****************************************************************************
* XAudio22 coclass
*/
DEFINE_GUID(CLSID_XAudio22, 0xb802058a, 0x464a, 0x42db, 0xbc,0x10, 0xb6,0x50,0xd6,0xf2,0x58,0x6a);
#ifdef __cplusplus
class DECLSPEC_UUID("b802058a-464a-42db-bc10-b650d6f2586a") XAudio22;
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(XAudio22, 0xb802058a, 0x464a, 0x42db, 0xbc,0x10, 0xb6,0x50,0xd6,0xf2,0x58,0x6a)
#endif
#endif
/*****************************************************************************
* XAudio23 coclass
*/
DEFINE_GUID(CLSID_XAudio23, 0x4c5e637a, 0x16c7, 0x4de3, 0x9c,0x46, 0x5e,0xd2,0x21,0x81,0x96,0x2d);
#ifdef __cplusplus
class DECLSPEC_UUID("4c5e637a-16c7-4de3-9c46-5ed22181962d") XAudio23;
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(XAudio23, 0x4c5e637a, 0x16c7, 0x4de3, 0x9c,0x46, 0x5e,0xd2,0x21,0x81,0x96,0x2d)
#endif
#endif
/*****************************************************************************
* XAudio24 coclass
*/
DEFINE_GUID(CLSID_XAudio24, 0x03219e78, 0x5bc3, 0x44d1, 0xb9,0x2e, 0xf6,0x3d,0x89,0xcc,0x65,0x26);
#ifdef __cplusplus
class DECLSPEC_UUID("03219e78-5bc3-44d1-b92e-f63d89cc6526") XAudio24;
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(XAudio24, 0x03219e78, 0x5bc3, 0x44d1, 0xb9,0x2e, 0xf6,0x3d,0x89,0xcc,0x65,0x26)
#endif
#endif
/*****************************************************************************
* XAudio25 coclass
*/
DEFINE_GUID(CLSID_XAudio25, 0x4c9b6dde, 0x6809, 0x46e6, 0xa2,0x78, 0x9b,0x6a,0x97,0x58,0x86,0x70);
#ifdef __cplusplus
class DECLSPEC_UUID("4c9b6dde-6809-46e6-a278-9b6a97588670") XAudio25;
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(XAudio25, 0x4c9b6dde, 0x6809, 0x46e6, 0xa2,0x78, 0x9b,0x6a,0x97,0x58,0x86,0x70)
#endif
#endif
/*****************************************************************************
* XAudio26 coclass
*/
DEFINE_GUID(CLSID_XAudio26, 0x3eda9b49, 0x2085, 0x498b, 0x9b,0xb2, 0x39,0xa6,0x77,0x84,0x93,0xde);
#ifdef __cplusplus
class DECLSPEC_UUID("3eda9b49-2085-498b-9bb2-39a6778493de") XAudio26;
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(XAudio26, 0x3eda9b49, 0x2085, 0x498b, 0x9b,0xb2, 0x39,0xa6,0x77,0x84,0x93,0xde)
#endif
#endif
/*****************************************************************************
* XAudio27 coclass
*/
DEFINE_GUID(CLSID_XAudio27, 0x5a508685, 0xa254, 0x4fba, 0x9b,0x82, 0x9a,0x24,0xb0,0x03,0x06,0xaf);
#ifdef __cplusplus
class DECLSPEC_UUID("5a508685-a254-4fba-9b82-9a24b00306af") XAudio27;
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(XAudio27, 0x5a508685, 0xa254, 0x4fba, 0x9b,0x82, 0x9a,0x24,0xb0,0x03,0x06,0xaf)
#endif
#endif
/*****************************************************************************
* XAudio2Debug coclass
*/
DEFINE_GUID(CLSID_XAudio2Debug, 0xdb05ea35, 0x0329, 0x4d4b, 0xa5,0x3a, 0x6d,0xea,0xd0,0x3d,0x38,0x52);
#ifdef __cplusplus
class DECLSPEC_UUID("db05ea35-0329-4d4b-a53a-6dead03d3852") XAudio2Debug;
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(XAudio2Debug, 0xdb05ea35, 0x0329, 0x4d4b, 0xa5,0x3a, 0x6d,0xea,0xd0,0x3d,0x38,0x52)
#endif
#endif
#if 0
typedef struct WAVEFORMATEX {
WORD wFormatTag;
WORD nChannels;
DWORD nSamplesPerSec;
DWORD nAvgBytesPerSec;
WORD nBlockAlign;
WORD wBitsPerSample;
WORD cbSize;
} WAVEFORMATEX;
typedef struct __WIDL_xaudio2_generated_name_00000020 {
WAVEFORMATEX Format;
union {
WORD wValidBitsPerSample;
WORD wSamplesPerBlock;
WORD wReserved;
} Samples;
DWORD dwChannelMask;
GUID SubFormat;
} WAVEFORMATEXTENSIBLE;
typedef struct __WIDL_xaudio2_generated_name_00000020 *PWAVEFORMATEXTENSIBLE;
#else
#include <mmreg.h>
#endif
#ifndef __IXAudio2Voice_FWD_DEFINED__
#define __IXAudio2Voice_FWD_DEFINED__
typedef interface IXAudio2Voice IXAudio2Voice;
#ifdef __cplusplus
interface IXAudio2Voice;
#endif /* __cplusplus */
#endif
typedef enum XAUDIO2_WINDOWS_PROCESSOR_SPECIFIER {
Processor1 = 0x1,
Processor2 = 0x2,
Processor3 = 0x4,
Processor4 = 0x8,
Processor5 = 0x10,
Processor6 = 0x20,
Processor7 = 0x40,
Processor8 = 0x80,
Processor9 = 0x100,
Processor10 = 0x200,
Processor11 = 0x400,
Processor12 = 0x800,
Processor13 = 0x1000,
Processor14 = 0x2000,
Processor15 = 0x4000,
Processor16 = 0x8000,
Processor17 = 0x10000,
Processor18 = 0x20000,
Processor19 = 0x40000,
Processor20 = 0x80000,
Processor21 = 0x100000,
Processor22 = 0x200000,
Processor23 = 0x400000,
Processor24 = 0x800000,
Processor25 = 0x1000000,
Processor26 = 0x2000000,
Processor27 = 0x4000000,
Processor28 = 0x8000000,
Processor29 = 0x10000000,
Processor30 = 0x20000000,
Processor31 = 0x40000000,
Processor32 = 0x80000000,
XAUDIO2_ANY_PROCESSOR = 0xffffffff,
XAUDIO2_DEFAULT_PROCESSOR = XAUDIO2_ANY_PROCESSOR
} XAUDIO2_WINDOWS_PROCESSOR_SPECIFIER;
typedef enum XAUDIO2_WINDOWS_PROCESSOR_SPECIFIER XAUDIO2_PROCESSOR;
typedef struct XAUDIO2_PERFORMANCE_DATA {
UINT64 AudioCyclesSinceLastQuery;
UINT64 TotalCyclesSinceLastQuery;
UINT32 MinimumCyclesPerQuantum;
UINT32 MaximumCyclesPerQuantum;
UINT32 MemoryUsageInBytes;
UINT32 CurrentLatencyInSamples;
UINT32 GlitchesSinceEngineStarted;
UINT32 ActiveSourceVoiceCount;
UINT32 TotalSourceVoiceCount;
UINT32 ActiveSubmixVoiceCount;
UINT32 ActiveResamplerCount;
UINT32 ActiveMatrixMixCount;
UINT32 ActiveXmaSourceVoices;
UINT32 ActiveXmaStreams;
} XAUDIO2_PERFORMANCE_DATA;
typedef struct XAUDIO22_PERFORMANCE_DATA {
UINT64 AudioCyclesSinceLastQuery;
UINT64 TotalCyclesSinceLastQuery;
UINT32 MinimumCyclesPerQuantum;
UINT32 MaximumCyclesPerQuantum;
UINT32 MemoryUsageInBytes;
UINT32 CurrentLatencyInSamples;
UINT32 GlitchesSinceEngineStarted;
UINT32 ActiveSourceVoiceCount;
UINT32 TotalSourceVoiceCount;
UINT32 ActiveSubmixVoiceCount;
UINT32 TotalSubmixVoiceCount;
UINT32 ActiveXmaSourceVoices;
UINT32 ActiveXmaStreams;
} XAUDIO22_PERFORMANCE_DATA;
typedef struct XAUDIO20_PERFORMANCE_DATA {
UINT64 AudioCyclesSinceLastQuery;
UINT64 TotalCyclesSinceLastQuery;
UINT32 MinimumCyclesPerQuantum;
UINT32 MaximumCyclesPerQuantum;
UINT32 MemoryUsageInBytes;
UINT32 CurrentLatencyInSamples;
UINT32 GlitchesSinceLastQuery;
UINT32 ActiveSourceVoiceCount;
UINT32 TotalSourceVoiceCount;
UINT32 ActiveSubmixVoiceCount;
UINT32 TotalSubmixVoiceCount;
UINT32 ActiveXmaSourceVoices;
UINT32 ActiveXmaStreams;
} XAUDIO20_PERFORMANCE_DATA;
typedef enum XAUDIO2_DEVICE_ROLE {
NotDefaultDevice = 0x0,
DefaultConsoleDevice = 0x1,
DefaultMultimediaDevice = 0x2,
DefaultCommunicationsDevice = 0x4,
DefaultGameDevice = 0x8,
GlobalDefaultDevice = 0xf,
InvalidDeviceRole = ~GlobalDefaultDevice
} XAUDIO2_DEVICE_ROLE;
typedef struct XAUDIO2_DEVICE_DETAILS {
WCHAR DeviceID[256];
WCHAR DisplayName[256];
XAUDIO2_DEVICE_ROLE Role;
WAVEFORMATEXTENSIBLE OutputFormat;
} XAUDIO2_DEVICE_DETAILS;
typedef struct XAUDIO27_VOICE_DETAILS {
UINT32 CreationFlags;
UINT32 InputChannels;
UINT32 InputSampleRate;
} XAUDIO27_VOICE_DETAILS;
typedef struct XAUDIO2_VOICE_DETAILS {
UINT32 CreationFlags;
UINT32 ActiveFlags;
UINT32 InputChannels;
UINT32 InputSampleRate;
} XAUDIO2_VOICE_DETAILS;
typedef struct XAUDIO2_SEND_DESCRIPTOR {
UINT32 Flags;
IXAudio2Voice *pOutputVoice;
} XAUDIO2_SEND_DESCRIPTOR;
typedef struct XAUDIO23_VOICE_SENDS {
UINT32 OutputCount;
IXAudio2Voice **pOutputVoices;
} XAUDIO23_VOICE_SENDS;
typedef struct XAUDIO2_VOICE_SENDS {
UINT32 SendCount;
XAUDIO2_SEND_DESCRIPTOR *pSends;
} XAUDIO2_VOICE_SENDS;
typedef struct XAUDIO2_EFFECT_DESCRIPTOR {
IUnknown *pEffect;
WINBOOL InitialState;
UINT32 OutputChannels;
} XAUDIO2_EFFECT_DESCRIPTOR;
typedef struct XAUDIO2_EFFECT_CHAIN {
UINT32 EffectCount;
XAUDIO2_EFFECT_DESCRIPTOR *pEffectDescriptors;
} XAUDIO2_EFFECT_CHAIN;
#define XAUDIO2_MAX_BUFFER_BYTES (0x80000000)
#define XAUDIO2_MAX_QUEUED_BUFFERS (64)
#define XAUDIO2_MAX_BUFFERS_SYSTEM (2)
#define XAUDIO2_MAX_AUDIO_CHANNELS (64)
#define XAUDIO2_MIN_SAMPLE_RATE (1000)
#define XAUDIO2_MAX_SAMPLE_RATE (200000)
#define XAUDIO2_MAX_VOLUME_LEVEL (16777216.0000000)
#define XAUDIO2_MIN_FREQ_RATIO (1 / 1024.00000000000)
#define XAUDIO2_MAX_FREQ_RATIO (1024.00000000000)
#define XAUDIO2_DEFAULT_FREQ_RATIO (2.00000000000000)
#define XAUDIO2_MAX_FILTER_ONEOVERQ (1.50000000000000)
#define XAUDIO2_MAX_FILTER_FREQUENCY (1.00000000000000)
#define XAUDIO2_MAX_LOOP_COUNT (254)
#define XAUDIO20_MAX_LOOP_COUNT (0x100000)
#define XAUDIO2_COMMIT_NOW (0)
#define XAUDIO2_COMMIT_ALL (0)
#define XAUDIO2_INVALID_OPSET (0xffffffff)
#define XAUDIO2_NO_LOOP_REGION (0)
#define XAUDIO2_LOOP_INFINITE (255)
#define XAUDIO20_LOOP_INFINITE ((UINT)-1)
#define XAUDIO2_DEFAULT_CHANNELS (0)
#define XAUDIO2_DEFAULT_SAMPLERATE (0)
/*****************************************************************************
* IXAudio2EngineCallback interface
*/
#ifndef __IXAudio2EngineCallback_INTERFACE_DEFINED__
#define __IXAudio2EngineCallback_INTERFACE_DEFINED__
#if defined(__cplusplus) && !defined(CINTERFACE)
interface IXAudio2EngineCallback
{
BEGIN_INTERFACE
virtual void STDMETHODCALLTYPE OnProcessingPassStart(
) = 0;
virtual void STDMETHODCALLTYPE OnProcessingPassEnd(
) = 0;
virtual void STDMETHODCALLTYPE OnCriticalError(
HRESULT Error) = 0;
END_INTERFACE
};
#else
typedef struct IXAudio2EngineCallbackVtbl {
BEGIN_INTERFACE
/*** IXAudio2EngineCallback methods ***/
void (STDMETHODCALLTYPE *OnProcessingPassStart)(
IXAudio2EngineCallback *This);
void (STDMETHODCALLTYPE *OnProcessingPassEnd)(
IXAudio2EngineCallback *This);
void (STDMETHODCALLTYPE *OnCriticalError)(
IXAudio2EngineCallback *This,
HRESULT Error);
END_INTERFACE
} IXAudio2EngineCallbackVtbl;
interface IXAudio2EngineCallback {
CONST_VTBL IXAudio2EngineCallbackVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IXAudio2EngineCallback methods ***/
#define IXAudio2EngineCallback_OnProcessingPassStart(This) (This)->lpVtbl->OnProcessingPassStart(This)
#define IXAudio2EngineCallback_OnProcessingPassEnd(This) (This)->lpVtbl->OnProcessingPassEnd(This)
#define IXAudio2EngineCallback_OnCriticalError(This,Error) (This)->lpVtbl->OnCriticalError(This,Error)
#else
/*** IXAudio2EngineCallback methods ***/
static FORCEINLINE void IXAudio2EngineCallback_OnProcessingPassStart(IXAudio2EngineCallback* This) {
This->lpVtbl->OnProcessingPassStart(This);
}
static FORCEINLINE void IXAudio2EngineCallback_OnProcessingPassEnd(IXAudio2EngineCallback* This) {
This->lpVtbl->OnProcessingPassEnd(This);
}
static FORCEINLINE void IXAudio2EngineCallback_OnCriticalError(IXAudio2EngineCallback* This,HRESULT Error) {
This->lpVtbl->OnCriticalError(This,Error);
}
#endif
#endif
#endif
#endif /* __IXAudio2EngineCallback_INTERFACE_DEFINED__ */
typedef enum XAUDIO2_FILTER_TYPE {
LowPassFilter = 0,
BandPassFilter = 1,
HighPassFilter = 2,
NotchFilter = 3
} XAUDIO2_FILTER_TYPE;
typedef struct XAUDIO2_FILTER_PARAMETERS {
XAUDIO2_FILTER_TYPE Type;
float Frequency;
float OneOverQ;
} XAUDIO2_FILTER_PARAMETERS;
/*****************************************************************************
* IXAudio20Voice interface
*/
#ifndef __IXAudio20Voice_INTERFACE_DEFINED__
#define __IXAudio20Voice_INTERFACE_DEFINED__
#if defined(__cplusplus) && !defined(CINTERFACE)
interface IXAudio20Voice
{
BEGIN_INTERFACE
virtual void STDMETHODCALLTYPE GetVoiceDetails(
XAUDIO27_VOICE_DETAILS *pVoiceDetails) = 0;
virtual HRESULT STDMETHODCALLTYPE SetOutputVoices(
const XAUDIO23_VOICE_SENDS *pSendList) = 0;
virtual HRESULT STDMETHODCALLTYPE SetEffectChain(
const XAUDIO2_EFFECT_CHAIN *pEffectChain) = 0;
virtual HRESULT STDMETHODCALLTYPE EnableEffect(
UINT32 EffectIndex,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual HRESULT STDMETHODCALLTYPE DisableEffect(
UINT32 EffectIndex,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetEffectState(
UINT32 EffectIndex,
WINBOOL *pEnabled) = 0;
virtual HRESULT STDMETHODCALLTYPE SetEffectParameters(
UINT32 EffectIndex,
const void *pParameters,
UINT32 ParametersByteSize,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual HRESULT STDMETHODCALLTYPE GetEffectParameters(
UINT32 EffectIndex,
void *pParameters,
UINT32 ParametersByteSize) = 0;
virtual HRESULT STDMETHODCALLTYPE SetFilterParameters(
const XAUDIO2_FILTER_PARAMETERS *pParameters,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetFilterParameters(
XAUDIO2_FILTER_PARAMETERS *pParameters) = 0;
virtual HRESULT STDMETHODCALLTYPE SetVolume(
float Volume,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetVolume(
float *pVolume) = 0;
virtual HRESULT STDMETHODCALLTYPE SetChannelVolumes(
UINT32 Channels,
const float *pVolumes,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetChannelVolumes(
UINT32 Channels,
float *pVolumes) = 0;
virtual HRESULT STDMETHODCALLTYPE SetOutputMatrix(
IXAudio2Voice *pDestinationVoice,
UINT32 SourceChannels,
UINT32 DestinationChannels,
const float *pLevelMatrix,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual HRESULT STDMETHODCALLTYPE GetOutputMatrix(
IXAudio2Voice *pDestinationVoice,
UINT32 SourceChannels,
UINT32 DestinationChannels,
float *pLevelMatrix) = 0;
virtual void STDMETHODCALLTYPE DestroyVoice(
) = 0;
END_INTERFACE
};
#else
typedef struct IXAudio20VoiceVtbl {
BEGIN_INTERFACE
/*** IXAudio20Voice methods ***/
void (STDMETHODCALLTYPE *GetVoiceDetails)(
IXAudio20Voice *This,
XAUDIO27_VOICE_DETAILS *pVoiceDetails);
HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
IXAudio20Voice *This,
const XAUDIO23_VOICE_SENDS *pSendList);
HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
IXAudio20Voice *This,
const XAUDIO2_EFFECT_CHAIN *pEffectChain);
HRESULT (STDMETHODCALLTYPE *EnableEffect)(
IXAudio20Voice *This,
UINT32 EffectIndex,
UINT32 OperationSet);
HRESULT (STDMETHODCALLTYPE *DisableEffect)(
IXAudio20Voice *This,
UINT32 EffectIndex,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetEffectState)(
IXAudio20Voice *This,
UINT32 EffectIndex,
WINBOOL *pEnabled);
HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
IXAudio20Voice *This,
UINT32 EffectIndex,
const void *pParameters,
UINT32 ParametersByteSize,
UINT32 OperationSet);
HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
IXAudio20Voice *This,
UINT32 EffectIndex,
void *pParameters,
UINT32 ParametersByteSize);
HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
IXAudio20Voice *This,
const XAUDIO2_FILTER_PARAMETERS *pParameters,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetFilterParameters)(
IXAudio20Voice *This,
XAUDIO2_FILTER_PARAMETERS *pParameters);
HRESULT (STDMETHODCALLTYPE *SetVolume)(
IXAudio20Voice *This,
float Volume,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetVolume)(
IXAudio20Voice *This,
float *pVolume);
HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
IXAudio20Voice *This,
UINT32 Channels,
const float *pVolumes,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetChannelVolumes)(
IXAudio20Voice *This,
UINT32 Channels,
float *pVolumes);
HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
IXAudio20Voice *This,
IXAudio2Voice *pDestinationVoice,
UINT32 SourceChannels,
UINT32 DestinationChannels,
const float *pLevelMatrix,
UINT32 OperationSet);
HRESULT (STDMETHODCALLTYPE *GetOutputMatrix)(
IXAudio20Voice *This,
IXAudio2Voice *pDestinationVoice,
UINT32 SourceChannels,
UINT32 DestinationChannels,
float *pLevelMatrix);
void (STDMETHODCALLTYPE *DestroyVoice)(
IXAudio20Voice *This);
END_INTERFACE
} IXAudio20VoiceVtbl;
interface IXAudio20Voice {
CONST_VTBL IXAudio20VoiceVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IXAudio20Voice methods ***/
#define IXAudio20Voice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
#define IXAudio20Voice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
#define IXAudio20Voice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
#define IXAudio20Voice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
#define IXAudio20Voice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
#define IXAudio20Voice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
#define IXAudio20Voice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
#define IXAudio20Voice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
#define IXAudio20Voice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
#define IXAudio20Voice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
#define IXAudio20Voice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
#define IXAudio20Voice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
#define IXAudio20Voice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
#define IXAudio20Voice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
#define IXAudio20Voice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
#define IXAudio20Voice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
#define IXAudio20Voice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
#else
/*** IXAudio20Voice methods ***/
static FORCEINLINE void IXAudio20Voice_GetVoiceDetails(IXAudio20Voice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
}
static FORCEINLINE HRESULT IXAudio20Voice_SetOutputVoices(IXAudio20Voice* This,const XAUDIO23_VOICE_SENDS *pSendList) {
return This->lpVtbl->SetOutputVoices(This,pSendList);
}
static FORCEINLINE HRESULT IXAudio20Voice_SetEffectChain(IXAudio20Voice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
return This->lpVtbl->SetEffectChain(This,pEffectChain);
}
static FORCEINLINE HRESULT IXAudio20Voice_EnableEffect(IXAudio20Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
}
static FORCEINLINE HRESULT IXAudio20Voice_DisableEffect(IXAudio20Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
}
static FORCEINLINE void IXAudio20Voice_GetEffectState(IXAudio20Voice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
}
static FORCEINLINE HRESULT IXAudio20Voice_SetEffectParameters(IXAudio20Voice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
}
static FORCEINLINE HRESULT IXAudio20Voice_GetEffectParameters(IXAudio20Voice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
}
static FORCEINLINE HRESULT IXAudio20Voice_SetFilterParameters(IXAudio20Voice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
}
static FORCEINLINE void IXAudio20Voice_GetFilterParameters(IXAudio20Voice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
This->lpVtbl->GetFilterParameters(This,pParameters);
}
static FORCEINLINE HRESULT IXAudio20Voice_SetVolume(IXAudio20Voice* This,float Volume,UINT32 OperationSet) {
return This->lpVtbl->SetVolume(This,Volume,OperationSet);
}
static FORCEINLINE void IXAudio20Voice_GetVolume(IXAudio20Voice* This,float *pVolume) {
This->lpVtbl->GetVolume(This,pVolume);
}
static FORCEINLINE HRESULT IXAudio20Voice_SetChannelVolumes(IXAudio20Voice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
}
static FORCEINLINE void IXAudio20Voice_GetChannelVolumes(IXAudio20Voice* This,UINT32 Channels,float *pVolumes) {
This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
}
static FORCEINLINE HRESULT IXAudio20Voice_SetOutputMatrix(IXAudio20Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
}
static FORCEINLINE HRESULT IXAudio20Voice_GetOutputMatrix(IXAudio20Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
return This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
}
static FORCEINLINE void IXAudio20Voice_DestroyVoice(IXAudio20Voice* This) {
This->lpVtbl->DestroyVoice(This);
}
#endif
#endif
#endif
#endif /* __IXAudio20Voice_INTERFACE_DEFINED__ */
/*****************************************************************************
* IXAudio23Voice interface
*/
#ifndef __IXAudio23Voice_INTERFACE_DEFINED__
#define __IXAudio23Voice_INTERFACE_DEFINED__
#if defined(__cplusplus) && !defined(CINTERFACE)
interface IXAudio23Voice
{
BEGIN_INTERFACE
virtual void STDMETHODCALLTYPE GetVoiceDetails(
XAUDIO27_VOICE_DETAILS *pVoiceDetails) = 0;
virtual HRESULT STDMETHODCALLTYPE SetOutputVoices(
const XAUDIO23_VOICE_SENDS *pSendList) = 0;
virtual HRESULT STDMETHODCALLTYPE SetEffectChain(
const XAUDIO2_EFFECT_CHAIN *pEffectChain) = 0;
virtual HRESULT STDMETHODCALLTYPE EnableEffect(
UINT32 EffectIndex,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual HRESULT STDMETHODCALLTYPE DisableEffect(
UINT32 EffectIndex,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetEffectState(
UINT32 EffectIndex,
WINBOOL *pEnabled) = 0;
virtual HRESULT STDMETHODCALLTYPE SetEffectParameters(
UINT32 EffectIndex,
const void *pParameters,
UINT32 ParametersByteSize,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual HRESULT STDMETHODCALLTYPE GetEffectParameters(
UINT32 EffectIndex,
void *pParameters,
UINT32 ParametersByteSize) = 0;
virtual HRESULT STDMETHODCALLTYPE SetFilterParameters(
const XAUDIO2_FILTER_PARAMETERS *pParameters,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetFilterParameters(
XAUDIO2_FILTER_PARAMETERS *pParameters) = 0;
virtual HRESULT STDMETHODCALLTYPE SetVolume(
float Volume,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetVolume(
float *pVolume) = 0;
virtual HRESULT STDMETHODCALLTYPE SetChannelVolumes(
UINT32 Channels,
const float *pVolumes,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetChannelVolumes(
UINT32 Channels,
float *pVolumes) = 0;
virtual HRESULT STDMETHODCALLTYPE SetOutputMatrix(
IXAudio2Voice *pDestinationVoice,
UINT32 SourceChannels,
UINT32 DestinationChannels,
const float *pLevelMatrix,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetOutputMatrix(
IXAudio2Voice *pDestinationVoice,
UINT32 SourceChannels,
UINT32 DestinationChannels,
float *pLevelMatrix) = 0;
virtual void STDMETHODCALLTYPE DestroyVoice(
) = 0;
END_INTERFACE
};
#else
typedef struct IXAudio23VoiceVtbl {
BEGIN_INTERFACE
/*** IXAudio23Voice methods ***/
void (STDMETHODCALLTYPE *GetVoiceDetails)(
IXAudio23Voice *This,
XAUDIO27_VOICE_DETAILS *pVoiceDetails);
HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
IXAudio23Voice *This,
const XAUDIO23_VOICE_SENDS *pSendList);
HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
IXAudio23Voice *This,
const XAUDIO2_EFFECT_CHAIN *pEffectChain);
HRESULT (STDMETHODCALLTYPE *EnableEffect)(
IXAudio23Voice *This,
UINT32 EffectIndex,
UINT32 OperationSet);
HRESULT (STDMETHODCALLTYPE *DisableEffect)(
IXAudio23Voice *This,
UINT32 EffectIndex,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetEffectState)(
IXAudio23Voice *This,
UINT32 EffectIndex,
WINBOOL *pEnabled);
HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
IXAudio23Voice *This,
UINT32 EffectIndex,
const void *pParameters,
UINT32 ParametersByteSize,
UINT32 OperationSet);
HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
IXAudio23Voice *This,
UINT32 EffectIndex,
void *pParameters,
UINT32 ParametersByteSize);
HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
IXAudio23Voice *This,
const XAUDIO2_FILTER_PARAMETERS *pParameters,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetFilterParameters)(
IXAudio23Voice *This,
XAUDIO2_FILTER_PARAMETERS *pParameters);
HRESULT (STDMETHODCALLTYPE *SetVolume)(
IXAudio23Voice *This,
float Volume,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetVolume)(
IXAudio23Voice *This,
float *pVolume);
HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
IXAudio23Voice *This,
UINT32 Channels,
const float *pVolumes,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetChannelVolumes)(
IXAudio23Voice *This,
UINT32 Channels,
float *pVolumes);
HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
IXAudio23Voice *This,
IXAudio2Voice *pDestinationVoice,
UINT32 SourceChannels,
UINT32 DestinationChannels,
const float *pLevelMatrix,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetOutputMatrix)(
IXAudio23Voice *This,
IXAudio2Voice *pDestinationVoice,
UINT32 SourceChannels,
UINT32 DestinationChannels,
float *pLevelMatrix);
void (STDMETHODCALLTYPE *DestroyVoice)(
IXAudio23Voice *This);
END_INTERFACE
} IXAudio23VoiceVtbl;
interface IXAudio23Voice {
CONST_VTBL IXAudio23VoiceVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IXAudio23Voice methods ***/
#define IXAudio23Voice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
#define IXAudio23Voice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
#define IXAudio23Voice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
#define IXAudio23Voice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
#define IXAudio23Voice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
#define IXAudio23Voice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
#define IXAudio23Voice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
#define IXAudio23Voice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
#define IXAudio23Voice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
#define IXAudio23Voice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
#define IXAudio23Voice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
#define IXAudio23Voice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
#define IXAudio23Voice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
#define IXAudio23Voice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
#define IXAudio23Voice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
#define IXAudio23Voice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
#define IXAudio23Voice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
#else
/*** IXAudio23Voice methods ***/
static FORCEINLINE void IXAudio23Voice_GetVoiceDetails(IXAudio23Voice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
}
static FORCEINLINE HRESULT IXAudio23Voice_SetOutputVoices(IXAudio23Voice* This,const XAUDIO23_VOICE_SENDS *pSendList) {
return This->lpVtbl->SetOutputVoices(This,pSendList);
}
static FORCEINLINE HRESULT IXAudio23Voice_SetEffectChain(IXAudio23Voice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
return This->lpVtbl->SetEffectChain(This,pEffectChain);
}
static FORCEINLINE HRESULT IXAudio23Voice_EnableEffect(IXAudio23Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
}
static FORCEINLINE HRESULT IXAudio23Voice_DisableEffect(IXAudio23Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
}
static FORCEINLINE void IXAudio23Voice_GetEffectState(IXAudio23Voice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
}
static FORCEINLINE HRESULT IXAudio23Voice_SetEffectParameters(IXAudio23Voice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
}
static FORCEINLINE HRESULT IXAudio23Voice_GetEffectParameters(IXAudio23Voice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
}
static FORCEINLINE HRESULT IXAudio23Voice_SetFilterParameters(IXAudio23Voice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
}
static FORCEINLINE void IXAudio23Voice_GetFilterParameters(IXAudio23Voice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
This->lpVtbl->GetFilterParameters(This,pParameters);
}
static FORCEINLINE HRESULT IXAudio23Voice_SetVolume(IXAudio23Voice* This,float Volume,UINT32 OperationSet) {
return This->lpVtbl->SetVolume(This,Volume,OperationSet);
}
static FORCEINLINE void IXAudio23Voice_GetVolume(IXAudio23Voice* This,float *pVolume) {
This->lpVtbl->GetVolume(This,pVolume);
}
static FORCEINLINE HRESULT IXAudio23Voice_SetChannelVolumes(IXAudio23Voice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
}
static FORCEINLINE void IXAudio23Voice_GetChannelVolumes(IXAudio23Voice* This,UINT32 Channels,float *pVolumes) {
This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
}
static FORCEINLINE HRESULT IXAudio23Voice_SetOutputMatrix(IXAudio23Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
}
static FORCEINLINE void IXAudio23Voice_GetOutputMatrix(IXAudio23Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
}
static FORCEINLINE void IXAudio23Voice_DestroyVoice(IXAudio23Voice* This) {
This->lpVtbl->DestroyVoice(This);
}
#endif
#endif
#endif
#endif /* __IXAudio23Voice_INTERFACE_DEFINED__ */
/*****************************************************************************
* IXAudio27Voice interface
*/
#ifndef __IXAudio27Voice_INTERFACE_DEFINED__
#define __IXAudio27Voice_INTERFACE_DEFINED__
#if defined(__cplusplus) && !defined(CINTERFACE)
interface IXAudio27Voice
{
BEGIN_INTERFACE
virtual void STDMETHODCALLTYPE GetVoiceDetails(
XAUDIO27_VOICE_DETAILS *pVoiceDetails) = 0;
virtual HRESULT STDMETHODCALLTYPE SetOutputVoices(
const XAUDIO2_VOICE_SENDS *pSendList) = 0;
virtual HRESULT STDMETHODCALLTYPE SetEffectChain(
const XAUDIO2_EFFECT_CHAIN *pEffectChain) = 0;
virtual HRESULT STDMETHODCALLTYPE EnableEffect(
UINT32 EffectIndex,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual HRESULT STDMETHODCALLTYPE DisableEffect(
UINT32 EffectIndex,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetEffectState(
UINT32 EffectIndex,
WINBOOL *pEnabled) = 0;
virtual HRESULT STDMETHODCALLTYPE SetEffectParameters(
UINT32 EffectIndex,
const void *pParameters,
UINT32 ParametersByteSize,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual HRESULT STDMETHODCALLTYPE GetEffectParameters(
UINT32 EffectIndex,
void *pParameters,
UINT32 ParametersByteSize) = 0;
virtual HRESULT STDMETHODCALLTYPE SetFilterParameters(
const XAUDIO2_FILTER_PARAMETERS *pParameters,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetFilterParameters(
XAUDIO2_FILTER_PARAMETERS *pParameters) = 0;
virtual HRESULT STDMETHODCALLTYPE SetOutputFilterParameters(
IXAudio2Voice *pDestinationVoice,
const XAUDIO2_FILTER_PARAMETERS *pParameters,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetOutputFilterParameters(
IXAudio2Voice *pDestinationVoice,
XAUDIO2_FILTER_PARAMETERS *pParameters) = 0;
virtual HRESULT STDMETHODCALLTYPE SetVolume(
float Volume,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetVolume(
float *pVolume) = 0;
virtual HRESULT STDMETHODCALLTYPE SetChannelVolumes(
UINT32 Channels,
const float *pVolumes,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetChannelVolumes(
UINT32 Channels,
float *pVolumes) = 0;
virtual HRESULT STDMETHODCALLTYPE SetOutputMatrix(
IXAudio2Voice *pDestinationVoice,
UINT32 SourceChannels,
UINT32 DestinationChannels,
const float *pLevelMatrix,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetOutputMatrix(
IXAudio2Voice *pDestinationVoice,
UINT32 SourceChannels,
UINT32 DestinationChannels,
float *pLevelMatrix) = 0;
virtual void STDMETHODCALLTYPE DestroyVoice(
) = 0;
END_INTERFACE
};
#else
typedef struct IXAudio27VoiceVtbl {
BEGIN_INTERFACE
/*** IXAudio27Voice methods ***/
void (STDMETHODCALLTYPE *GetVoiceDetails)(
IXAudio27Voice *This,
XAUDIO27_VOICE_DETAILS *pVoiceDetails);
HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
IXAudio27Voice *This,
const XAUDIO2_VOICE_SENDS *pSendList);
HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
IXAudio27Voice *This,
const XAUDIO2_EFFECT_CHAIN *pEffectChain);
HRESULT (STDMETHODCALLTYPE *EnableEffect)(
IXAudio27Voice *This,
UINT32 EffectIndex,
UINT32 OperationSet);
HRESULT (STDMETHODCALLTYPE *DisableEffect)(
IXAudio27Voice *This,
UINT32 EffectIndex,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetEffectState)(
IXAudio27Voice *This,
UINT32 EffectIndex,
WINBOOL *pEnabled);
HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
IXAudio27Voice *This,
UINT32 EffectIndex,
const void *pParameters,
UINT32 ParametersByteSize,
UINT32 OperationSet);
HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
IXAudio27Voice *This,
UINT32 EffectIndex,
void *pParameters,
UINT32 ParametersByteSize);
HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
IXAudio27Voice *This,
const XAUDIO2_FILTER_PARAMETERS *pParameters,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetFilterParameters)(
IXAudio27Voice *This,
XAUDIO2_FILTER_PARAMETERS *pParameters);
HRESULT (STDMETHODCALLTYPE *SetOutputFilterParameters)(
IXAudio27Voice *This,
IXAudio2Voice *pDestinationVoice,
const XAUDIO2_FILTER_PARAMETERS *pParameters,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetOutputFilterParameters)(
IXAudio27Voice *This,
IXAudio2Voice *pDestinationVoice,
XAUDIO2_FILTER_PARAMETERS *pParameters);
HRESULT (STDMETHODCALLTYPE *SetVolume)(
IXAudio27Voice *This,
float Volume,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetVolume)(
IXAudio27Voice *This,
float *pVolume);
HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
IXAudio27Voice *This,
UINT32 Channels,
const float *pVolumes,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetChannelVolumes)(
IXAudio27Voice *This,
UINT32 Channels,
float *pVolumes);
HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
IXAudio27Voice *This,
IXAudio2Voice *pDestinationVoice,
UINT32 SourceChannels,
UINT32 DestinationChannels,
const float *pLevelMatrix,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetOutputMatrix)(
IXAudio27Voice *This,
IXAudio2Voice *pDestinationVoice,
UINT32 SourceChannels,
UINT32 DestinationChannels,
float *pLevelMatrix);
void (STDMETHODCALLTYPE *DestroyVoice)(
IXAudio27Voice *This);
END_INTERFACE
} IXAudio27VoiceVtbl;
interface IXAudio27Voice {
CONST_VTBL IXAudio27VoiceVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IXAudio27Voice methods ***/
#define IXAudio27Voice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
#define IXAudio27Voice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
#define IXAudio27Voice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
#define IXAudio27Voice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
#define IXAudio27Voice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
#define IXAudio27Voice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
#define IXAudio27Voice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
#define IXAudio27Voice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
#define IXAudio27Voice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
#define IXAudio27Voice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
#define IXAudio27Voice_SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet) (This)->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet)
#define IXAudio27Voice_GetOutputFilterParameters(This,pDestinationVoice,pParameters) (This)->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters)
#define IXAudio27Voice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
#define IXAudio27Voice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
#define IXAudio27Voice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
#define IXAudio27Voice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
#define IXAudio27Voice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
#define IXAudio27Voice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
#define IXAudio27Voice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
#else
/*** IXAudio27Voice methods ***/
static FORCEINLINE void IXAudio27Voice_GetVoiceDetails(IXAudio27Voice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
}
static FORCEINLINE HRESULT IXAudio27Voice_SetOutputVoices(IXAudio27Voice* This,const XAUDIO2_VOICE_SENDS *pSendList) {
return This->lpVtbl->SetOutputVoices(This,pSendList);
}
static FORCEINLINE HRESULT IXAudio27Voice_SetEffectChain(IXAudio27Voice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
return This->lpVtbl->SetEffectChain(This,pEffectChain);
}
static FORCEINLINE HRESULT IXAudio27Voice_EnableEffect(IXAudio27Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
}
static FORCEINLINE HRESULT IXAudio27Voice_DisableEffect(IXAudio27Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
}
static FORCEINLINE void IXAudio27Voice_GetEffectState(IXAudio27Voice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
}
static FORCEINLINE HRESULT IXAudio27Voice_SetEffectParameters(IXAudio27Voice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
}
static FORCEINLINE HRESULT IXAudio27Voice_GetEffectParameters(IXAudio27Voice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
}
static FORCEINLINE HRESULT IXAudio27Voice_SetFilterParameters(IXAudio27Voice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
}
static FORCEINLINE void IXAudio27Voice_GetFilterParameters(IXAudio27Voice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
This->lpVtbl->GetFilterParameters(This,pParameters);
}
static FORCEINLINE HRESULT IXAudio27Voice_SetOutputFilterParameters(IXAudio27Voice* This,IXAudio2Voice *pDestinationVoice,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
return This->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet);
}
static FORCEINLINE void IXAudio27Voice_GetOutputFilterParameters(IXAudio27Voice* This,IXAudio2Voice *pDestinationVoice,XAUDIO2_FILTER_PARAMETERS *pParameters) {
This->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters);
}
static FORCEINLINE HRESULT IXAudio27Voice_SetVolume(IXAudio27Voice* This,float Volume,UINT32 OperationSet) {
return This->lpVtbl->SetVolume(This,Volume,OperationSet);
}
static FORCEINLINE void IXAudio27Voice_GetVolume(IXAudio27Voice* This,float *pVolume) {
This->lpVtbl->GetVolume(This,pVolume);
}
static FORCEINLINE HRESULT IXAudio27Voice_SetChannelVolumes(IXAudio27Voice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
}
static FORCEINLINE void IXAudio27Voice_GetChannelVolumes(IXAudio27Voice* This,UINT32 Channels,float *pVolumes) {
This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
}
static FORCEINLINE HRESULT IXAudio27Voice_SetOutputMatrix(IXAudio27Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
}
static FORCEINLINE void IXAudio27Voice_GetOutputMatrix(IXAudio27Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
}
static FORCEINLINE void IXAudio27Voice_DestroyVoice(IXAudio27Voice* This) {
This->lpVtbl->DestroyVoice(This);
}
#endif
#endif
#endif
#endif /* __IXAudio27Voice_INTERFACE_DEFINED__ */
/*****************************************************************************
* IXAudio2Voice interface
*/
#ifndef __IXAudio2Voice_INTERFACE_DEFINED__
#define __IXAudio2Voice_INTERFACE_DEFINED__
#if defined(__cplusplus) && !defined(CINTERFACE)
interface IXAudio2Voice
{
BEGIN_INTERFACE
virtual void STDMETHODCALLTYPE GetVoiceDetails(
XAUDIO2_VOICE_DETAILS *pVoiceDetails) = 0;
virtual HRESULT STDMETHODCALLTYPE SetOutputVoices(
const XAUDIO2_VOICE_SENDS *pSendList) = 0;
virtual HRESULT STDMETHODCALLTYPE SetEffectChain(
const XAUDIO2_EFFECT_CHAIN *pEffectChain) = 0;
virtual HRESULT STDMETHODCALLTYPE EnableEffect(
UINT32 EffectIndex,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual HRESULT STDMETHODCALLTYPE DisableEffect(
UINT32 EffectIndex,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetEffectState(
UINT32 EffectIndex,
WINBOOL *pEnabled) = 0;
virtual HRESULT STDMETHODCALLTYPE SetEffectParameters(
UINT32 EffectIndex,
const void *pParameters,
UINT32 ParametersByteSize,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual HRESULT STDMETHODCALLTYPE GetEffectParameters(
UINT32 EffectIndex,
void *pParameters,
UINT32 ParametersByteSize) = 0;
virtual HRESULT STDMETHODCALLTYPE SetFilterParameters(
const XAUDIO2_FILTER_PARAMETERS *pParameters,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetFilterParameters(
XAUDIO2_FILTER_PARAMETERS *pParameters) = 0;
virtual HRESULT STDMETHODCALLTYPE SetOutputFilterParameters(
IXAudio2Voice *pDestinationVoice,
const XAUDIO2_FILTER_PARAMETERS *pParameters,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetOutputFilterParameters(
IXAudio2Voice *pDestinationVoice,
XAUDIO2_FILTER_PARAMETERS *pParameters) = 0;
virtual HRESULT STDMETHODCALLTYPE SetVolume(
float Volume,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetVolume(
float *pVolume) = 0;
virtual HRESULT STDMETHODCALLTYPE SetChannelVolumes(
UINT32 Channels,
const float *pVolumes,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetChannelVolumes(
UINT32 Channels,
float *pVolumes) = 0;
virtual HRESULT STDMETHODCALLTYPE SetOutputMatrix(
IXAudio2Voice *pDestinationVoice,
UINT32 SourceChannels,
UINT32 DestinationChannels,
const float *pLevelMatrix,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetOutputMatrix(
IXAudio2Voice *pDestinationVoice,
UINT32 SourceChannels,
UINT32 DestinationChannels,
float *pLevelMatrix) = 0;
virtual void STDMETHODCALLTYPE DestroyVoice(
) = 0;
END_INTERFACE
};
#else
typedef struct IXAudio2VoiceVtbl {
BEGIN_INTERFACE
/*** IXAudio2Voice methods ***/
void (STDMETHODCALLTYPE *GetVoiceDetails)(
IXAudio2Voice *This,
XAUDIO2_VOICE_DETAILS *pVoiceDetails);
HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
IXAudio2Voice *This,
const XAUDIO2_VOICE_SENDS *pSendList);
HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
IXAudio2Voice *This,
const XAUDIO2_EFFECT_CHAIN *pEffectChain);
HRESULT (STDMETHODCALLTYPE *EnableEffect)(
IXAudio2Voice *This,
UINT32 EffectIndex,
UINT32 OperationSet);
HRESULT (STDMETHODCALLTYPE *DisableEffect)(
IXAudio2Voice *This,
UINT32 EffectIndex,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetEffectState)(
IXAudio2Voice *This,
UINT32 EffectIndex,
WINBOOL *pEnabled);
HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
IXAudio2Voice *This,
UINT32 EffectIndex,
const void *pParameters,
UINT32 ParametersByteSize,
UINT32 OperationSet);
HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
IXAudio2Voice *This,
UINT32 EffectIndex,
void *pParameters,
UINT32 ParametersByteSize);
HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
IXAudio2Voice *This,
const XAUDIO2_FILTER_PARAMETERS *pParameters,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetFilterParameters)(
IXAudio2Voice *This,
XAUDIO2_FILTER_PARAMETERS *pParameters);
HRESULT (STDMETHODCALLTYPE *SetOutputFilterParameters)(
IXAudio2Voice *This,
IXAudio2Voice *pDestinationVoice,
const XAUDIO2_FILTER_PARAMETERS *pParameters,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetOutputFilterParameters)(
IXAudio2Voice *This,
IXAudio2Voice *pDestinationVoice,
XAUDIO2_FILTER_PARAMETERS *pParameters);
HRESULT (STDMETHODCALLTYPE *SetVolume)(
IXAudio2Voice *This,
float Volume,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetVolume)(
IXAudio2Voice *This,
float *pVolume);
HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
IXAudio2Voice *This,
UINT32 Channels,
const float *pVolumes,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetChannelVolumes)(
IXAudio2Voice *This,
UINT32 Channels,
float *pVolumes);
HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
IXAudio2Voice *This,
IXAudio2Voice *pDestinationVoice,
UINT32 SourceChannels,
UINT32 DestinationChannels,
const float *pLevelMatrix,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetOutputMatrix)(
IXAudio2Voice *This,
IXAudio2Voice *pDestinationVoice,
UINT32 SourceChannels,
UINT32 DestinationChannels,
float *pLevelMatrix);
void (STDMETHODCALLTYPE *DestroyVoice)(
IXAudio2Voice *This);
END_INTERFACE
} IXAudio2VoiceVtbl;
interface IXAudio2Voice {
CONST_VTBL IXAudio2VoiceVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IXAudio2Voice methods ***/
#define IXAudio2Voice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
#define IXAudio2Voice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
#define IXAudio2Voice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
#define IXAudio2Voice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
#define IXAudio2Voice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
#define IXAudio2Voice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
#define IXAudio2Voice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
#define IXAudio2Voice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
#define IXAudio2Voice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
#define IXAudio2Voice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
#define IXAudio2Voice_SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet) (This)->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet)
#define IXAudio2Voice_GetOutputFilterParameters(This,pDestinationVoice,pParameters) (This)->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters)
#define IXAudio2Voice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
#define IXAudio2Voice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
#define IXAudio2Voice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
#define IXAudio2Voice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
#define IXAudio2Voice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
#define IXAudio2Voice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
#define IXAudio2Voice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
#else
/*** IXAudio2Voice methods ***/
static FORCEINLINE void IXAudio2Voice_GetVoiceDetails(IXAudio2Voice* This,XAUDIO2_VOICE_DETAILS *pVoiceDetails) {
This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
}
static FORCEINLINE HRESULT IXAudio2Voice_SetOutputVoices(IXAudio2Voice* This,const XAUDIO2_VOICE_SENDS *pSendList) {
return This->lpVtbl->SetOutputVoices(This,pSendList);
}
static FORCEINLINE HRESULT IXAudio2Voice_SetEffectChain(IXAudio2Voice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
return This->lpVtbl->SetEffectChain(This,pEffectChain);
}
static FORCEINLINE HRESULT IXAudio2Voice_EnableEffect(IXAudio2Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
}
static FORCEINLINE HRESULT IXAudio2Voice_DisableEffect(IXAudio2Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
}
static FORCEINLINE void IXAudio2Voice_GetEffectState(IXAudio2Voice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
}
static FORCEINLINE HRESULT IXAudio2Voice_SetEffectParameters(IXAudio2Voice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
}
static FORCEINLINE HRESULT IXAudio2Voice_GetEffectParameters(IXAudio2Voice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
}
static FORCEINLINE HRESULT IXAudio2Voice_SetFilterParameters(IXAudio2Voice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
}
static FORCEINLINE void IXAudio2Voice_GetFilterParameters(IXAudio2Voice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
This->lpVtbl->GetFilterParameters(This,pParameters);
}
static FORCEINLINE HRESULT IXAudio2Voice_SetOutputFilterParameters(IXAudio2Voice* This,IXAudio2Voice *pDestinationVoice,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
return This->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet);
}
static FORCEINLINE void IXAudio2Voice_GetOutputFilterParameters(IXAudio2Voice* This,IXAudio2Voice *pDestinationVoice,XAUDIO2_FILTER_PARAMETERS *pParameters) {
This->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters);
}
static FORCEINLINE HRESULT IXAudio2Voice_SetVolume(IXAudio2Voice* This,float Volume,UINT32 OperationSet) {
return This->lpVtbl->SetVolume(This,Volume,OperationSet);
}
static FORCEINLINE void IXAudio2Voice_GetVolume(IXAudio2Voice* This,float *pVolume) {
This->lpVtbl->GetVolume(This,pVolume);
}
static FORCEINLINE HRESULT IXAudio2Voice_SetChannelVolumes(IXAudio2Voice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
}
static FORCEINLINE void IXAudio2Voice_GetChannelVolumes(IXAudio2Voice* This,UINT32 Channels,float *pVolumes) {
This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
}
static FORCEINLINE HRESULT IXAudio2Voice_SetOutputMatrix(IXAudio2Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
}
static FORCEINLINE void IXAudio2Voice_GetOutputMatrix(IXAudio2Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
}
static FORCEINLINE void IXAudio2Voice_DestroyVoice(IXAudio2Voice* This) {
This->lpVtbl->DestroyVoice(This);
}
#endif
#endif
#endif
#endif /* __IXAudio2Voice_INTERFACE_DEFINED__ */
typedef struct XAUDIO2_BUFFER {
UINT32 Flags;
UINT32 AudioBytes;
const BYTE *pAudioData;
UINT32 PlayBegin;
UINT32 PlayLength;
UINT32 LoopBegin;
UINT32 LoopLength;
UINT32 LoopCount;
void *pContext;
} XAUDIO2_BUFFER;
typedef struct XAUDIO2_BUFFER_WMA {
const UINT32 *pDecodedPacketCumulativeBytes;
UINT32 PacketCount;
} XAUDIO2_BUFFER_WMA;
typedef struct XAUDIO2_VOICE_STATE {
void *pCurrentBufferContext;
UINT32 BuffersQueued;
UINT64 SamplesPlayed;
} XAUDIO2_VOICE_STATE;
/*****************************************************************************
* IXAudio20SourceVoice interface
*/
#ifndef __IXAudio20SourceVoice_INTERFACE_DEFINED__
#define __IXAudio20SourceVoice_INTERFACE_DEFINED__
#if defined(__cplusplus) && !defined(CINTERFACE)
interface IXAudio20SourceVoice : public IXAudio20Voice
{
virtual HRESULT STDMETHODCALLTYPE Start(
UINT32 Flags = 0,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual HRESULT STDMETHODCALLTYPE Stop(
UINT32 Flags = 0,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual HRESULT STDMETHODCALLTYPE SubmitSourceBuffer(
const XAUDIO2_BUFFER *pBuffer,
const XAUDIO2_BUFFER_WMA *pBufferWMA = 0) = 0;
virtual HRESULT STDMETHODCALLTYPE FlushSourceBuffers(
) = 0;
virtual HRESULT STDMETHODCALLTYPE Discontinuity(
) = 0;
virtual HRESULT STDMETHODCALLTYPE ExitLoop(
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetState(
XAUDIO2_VOICE_STATE *pVoiceState) = 0;
virtual HRESULT STDMETHODCALLTYPE SetFrequencyRatio(
float Ratio,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetFrequencyRatio(
float *pRatio) = 0;
};
#else
typedef struct IXAudio20SourceVoiceVtbl {
BEGIN_INTERFACE
/*** IXAudio20Voice methods ***/
void (STDMETHODCALLTYPE *GetVoiceDetails)(
IXAudio20SourceVoice *This,
XAUDIO27_VOICE_DETAILS *pVoiceDetails);
HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
IXAudio20SourceVoice *This,
const XAUDIO23_VOICE_SENDS *pSendList);
HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
IXAudio20SourceVoice *This,
const XAUDIO2_EFFECT_CHAIN *pEffectChain);
HRESULT (STDMETHODCALLTYPE *EnableEffect)(
IXAudio20SourceVoice *This,
UINT32 EffectIndex,
UINT32 OperationSet);
HRESULT (STDMETHODCALLTYPE *DisableEffect)(
IXAudio20SourceVoice *This,
UINT32 EffectIndex,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetEffectState)(
IXAudio20SourceVoice *This,
UINT32 EffectIndex,
WINBOOL *pEnabled);
HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
IXAudio20SourceVoice *This,
UINT32 EffectIndex,
const void *pParameters,
UINT32 ParametersByteSize,
UINT32 OperationSet);
HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
IXAudio20SourceVoice *This,
UINT32 EffectIndex,
void *pParameters,
UINT32 ParametersByteSize);
HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
IXAudio20SourceVoice *This,
const XAUDIO2_FILTER_PARAMETERS *pParameters,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetFilterParameters)(
IXAudio20SourceVoice *This,
XAUDIO2_FILTER_PARAMETERS *pParameters);
HRESULT (STDMETHODCALLTYPE *SetVolume)(
IXAudio20SourceVoice *This,
float Volume,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetVolume)(
IXAudio20SourceVoice *This,
float *pVolume);
HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
IXAudio20SourceVoice *This,
UINT32 Channels,
const float *pVolumes,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetChannelVolumes)(
IXAudio20SourceVoice *This,
UINT32 Channels,
float *pVolumes);
HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
IXAudio20SourceVoice *This,
IXAudio2Voice *pDestinationVoice,
UINT32 SourceChannels,
UINT32 DestinationChannels,
const float *pLevelMatrix,
UINT32 OperationSet);
HRESULT (STDMETHODCALLTYPE *GetOutputMatrix)(
IXAudio20SourceVoice *This,
IXAudio2Voice *pDestinationVoice,
UINT32 SourceChannels,
UINT32 DestinationChannels,
float *pLevelMatrix);
void (STDMETHODCALLTYPE *DestroyVoice)(
IXAudio20SourceVoice *This);
/*** IXAudio20SourceVoice methods ***/
HRESULT (STDMETHODCALLTYPE *Start)(
IXAudio20SourceVoice *This,
UINT32 Flags,
UINT32 OperationSet);
HRESULT (STDMETHODCALLTYPE *Stop)(
IXAudio20SourceVoice *This,
UINT32 Flags,
UINT32 OperationSet);
HRESULT (STDMETHODCALLTYPE *SubmitSourceBuffer)(
IXAudio20SourceVoice *This,
const XAUDIO2_BUFFER *pBuffer,
const XAUDIO2_BUFFER_WMA *pBufferWMA);
HRESULT (STDMETHODCALLTYPE *FlushSourceBuffers)(
IXAudio20SourceVoice *This);
HRESULT (STDMETHODCALLTYPE *Discontinuity)(
IXAudio20SourceVoice *This);
HRESULT (STDMETHODCALLTYPE *ExitLoop)(
IXAudio20SourceVoice *This,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetState)(
IXAudio20SourceVoice *This,
XAUDIO2_VOICE_STATE *pVoiceState);
HRESULT (STDMETHODCALLTYPE *SetFrequencyRatio)(
IXAudio20SourceVoice *This,
float Ratio,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetFrequencyRatio)(
IXAudio20SourceVoice *This,
float *pRatio);
END_INTERFACE
} IXAudio20SourceVoiceVtbl;
interface IXAudio20SourceVoice {
CONST_VTBL IXAudio20SourceVoiceVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IXAudio20Voice methods ***/
#define IXAudio20SourceVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
#define IXAudio20SourceVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
#define IXAudio20SourceVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
#define IXAudio20SourceVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
#define IXAudio20SourceVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
#define IXAudio20SourceVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
#define IXAudio20SourceVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
#define IXAudio20SourceVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
#define IXAudio20SourceVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
#define IXAudio20SourceVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
#define IXAudio20SourceVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
#define IXAudio20SourceVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
#define IXAudio20SourceVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
#define IXAudio20SourceVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
#define IXAudio20SourceVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
#define IXAudio20SourceVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
#define IXAudio20SourceVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
/*** IXAudio20SourceVoice methods ***/
#define IXAudio20SourceVoice_Start(This,Flags,OperationSet) (This)->lpVtbl->Start(This,Flags,OperationSet)
#define IXAudio20SourceVoice_Stop(This,Flags,OperationSet) (This)->lpVtbl->Stop(This,Flags,OperationSet)
#define IXAudio20SourceVoice_SubmitSourceBuffer(This,pBuffer,pBufferWMA) (This)->lpVtbl->SubmitSourceBuffer(This,pBuffer,pBufferWMA)
#define IXAudio20SourceVoice_FlushSourceBuffers(This) (This)->lpVtbl->FlushSourceBuffers(This)
#define IXAudio20SourceVoice_Discontinuity(This) (This)->lpVtbl->Discontinuity(This)
#define IXAudio20SourceVoice_ExitLoop(This,OperationSet) (This)->lpVtbl->ExitLoop(This,OperationSet)
#define IXAudio20SourceVoice_GetState(This,pVoiceState) (This)->lpVtbl->GetState(This,pVoiceState)
#define IXAudio20SourceVoice_SetFrequencyRatio(This,Ratio,OperationSet) (This)->lpVtbl->SetFrequencyRatio(This,Ratio,OperationSet)
#define IXAudio20SourceVoice_GetFrequencyRatio(This,pRatio) (This)->lpVtbl->GetFrequencyRatio(This,pRatio)
#else
/*** IXAudio20Voice methods ***/
static FORCEINLINE void IXAudio20SourceVoice_GetVoiceDetails(IXAudio20SourceVoice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
}
static FORCEINLINE HRESULT IXAudio20SourceVoice_SetOutputVoices(IXAudio20SourceVoice* This,const XAUDIO23_VOICE_SENDS *pSendList) {
return This->lpVtbl->SetOutputVoices(This,pSendList);
}
static FORCEINLINE HRESULT IXAudio20SourceVoice_SetEffectChain(IXAudio20SourceVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
return This->lpVtbl->SetEffectChain(This,pEffectChain);
}
static FORCEINLINE HRESULT IXAudio20SourceVoice_EnableEffect(IXAudio20SourceVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
}
static FORCEINLINE HRESULT IXAudio20SourceVoice_DisableEffect(IXAudio20SourceVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
}
static FORCEINLINE void IXAudio20SourceVoice_GetEffectState(IXAudio20SourceVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
}
static FORCEINLINE HRESULT IXAudio20SourceVoice_SetEffectParameters(IXAudio20SourceVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
}
static FORCEINLINE HRESULT IXAudio20SourceVoice_GetEffectParameters(IXAudio20SourceVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
}
static FORCEINLINE HRESULT IXAudio20SourceVoice_SetFilterParameters(IXAudio20SourceVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
}
static FORCEINLINE void IXAudio20SourceVoice_GetFilterParameters(IXAudio20SourceVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
This->lpVtbl->GetFilterParameters(This,pParameters);
}
static FORCEINLINE HRESULT IXAudio20SourceVoice_SetVolume(IXAudio20SourceVoice* This,float Volume,UINT32 OperationSet) {
return This->lpVtbl->SetVolume(This,Volume,OperationSet);
}
static FORCEINLINE void IXAudio20SourceVoice_GetVolume(IXAudio20SourceVoice* This,float *pVolume) {
This->lpVtbl->GetVolume(This,pVolume);
}
static FORCEINLINE HRESULT IXAudio20SourceVoice_SetChannelVolumes(IXAudio20SourceVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
}
static FORCEINLINE void IXAudio20SourceVoice_GetChannelVolumes(IXAudio20SourceVoice* This,UINT32 Channels,float *pVolumes) {
This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
}
static FORCEINLINE HRESULT IXAudio20SourceVoice_SetOutputMatrix(IXAudio20SourceVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
}
static FORCEINLINE HRESULT IXAudio20SourceVoice_GetOutputMatrix(IXAudio20SourceVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
return This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
}
static FORCEINLINE void IXAudio20SourceVoice_DestroyVoice(IXAudio20SourceVoice* This) {
This->lpVtbl->DestroyVoice(This);
}
/*** IXAudio20SourceVoice methods ***/
static FORCEINLINE HRESULT IXAudio20SourceVoice_Start(IXAudio20SourceVoice* This,UINT32 Flags,UINT32 OperationSet) {
return This->lpVtbl->Start(This,Flags,OperationSet);
}
static FORCEINLINE HRESULT IXAudio20SourceVoice_Stop(IXAudio20SourceVoice* This,UINT32 Flags,UINT32 OperationSet) {
return This->lpVtbl->Stop(This,Flags,OperationSet);
}
static FORCEINLINE HRESULT IXAudio20SourceVoice_SubmitSourceBuffer(IXAudio20SourceVoice* This,const XAUDIO2_BUFFER *pBuffer,const XAUDIO2_BUFFER_WMA *pBufferWMA) {
return This->lpVtbl->SubmitSourceBuffer(This,pBuffer,pBufferWMA);
}
static FORCEINLINE HRESULT IXAudio20SourceVoice_FlushSourceBuffers(IXAudio20SourceVoice* This) {
return This->lpVtbl->FlushSourceBuffers(This);
}
static FORCEINLINE HRESULT IXAudio20SourceVoice_Discontinuity(IXAudio20SourceVoice* This) {
return This->lpVtbl->Discontinuity(This);
}
static FORCEINLINE HRESULT IXAudio20SourceVoice_ExitLoop(IXAudio20SourceVoice* This,UINT32 OperationSet) {
return This->lpVtbl->ExitLoop(This,OperationSet);
}
static FORCEINLINE void IXAudio20SourceVoice_GetState(IXAudio20SourceVoice* This,XAUDIO2_VOICE_STATE *pVoiceState) {
This->lpVtbl->GetState(This,pVoiceState);
}
static FORCEINLINE HRESULT IXAudio20SourceVoice_SetFrequencyRatio(IXAudio20SourceVoice* This,float Ratio,UINT32 OperationSet) {
return This->lpVtbl->SetFrequencyRatio(This,Ratio,OperationSet);
}
static FORCEINLINE void IXAudio20SourceVoice_GetFrequencyRatio(IXAudio20SourceVoice* This,float *pRatio) {
This->lpVtbl->GetFrequencyRatio(This,pRatio);
}
#endif
#endif
#endif
#endif /* __IXAudio20SourceVoice_INTERFACE_DEFINED__ */
/*****************************************************************************
* IXAudio23SourceVoice interface
*/
#ifndef __IXAudio23SourceVoice_INTERFACE_DEFINED__
#define __IXAudio23SourceVoice_INTERFACE_DEFINED__
#if defined(__cplusplus) && !defined(CINTERFACE)
interface IXAudio23SourceVoice : public IXAudio23Voice
{
virtual HRESULT STDMETHODCALLTYPE Start(
UINT32 Flags = 0,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual HRESULT STDMETHODCALLTYPE Stop(
UINT32 Flags = 0,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual HRESULT STDMETHODCALLTYPE SubmitSourceBuffer(
const XAUDIO2_BUFFER *pBuffer,
const XAUDIO2_BUFFER_WMA *pBufferWMA = 0) = 0;
virtual HRESULT STDMETHODCALLTYPE FlushSourceBuffers(
) = 0;
virtual HRESULT STDMETHODCALLTYPE Discontinuity(
) = 0;
virtual HRESULT STDMETHODCALLTYPE ExitLoop(
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetState(
XAUDIO2_VOICE_STATE *pVoiceState) = 0;
virtual HRESULT STDMETHODCALLTYPE SetFrequencyRatio(
float Ratio,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetFrequencyRatio(
float *pRatio) = 0;
};
#else
typedef struct IXAudio23SourceVoiceVtbl {
BEGIN_INTERFACE
/*** IXAudio23Voice methods ***/
void (STDMETHODCALLTYPE *GetVoiceDetails)(
IXAudio23SourceVoice *This,
XAUDIO27_VOICE_DETAILS *pVoiceDetails);
HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
IXAudio23SourceVoice *This,
const XAUDIO23_VOICE_SENDS *pSendList);
HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
IXAudio23SourceVoice *This,
const XAUDIO2_EFFECT_CHAIN *pEffectChain);
HRESULT (STDMETHODCALLTYPE *EnableEffect)(
IXAudio23SourceVoice *This,
UINT32 EffectIndex,
UINT32 OperationSet);
HRESULT (STDMETHODCALLTYPE *DisableEffect)(
IXAudio23SourceVoice *This,
UINT32 EffectIndex,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetEffectState)(
IXAudio23SourceVoice *This,
UINT32 EffectIndex,
WINBOOL *pEnabled);
HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
IXAudio23SourceVoice *This,
UINT32 EffectIndex,
const void *pParameters,
UINT32 ParametersByteSize,
UINT32 OperationSet);
HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
IXAudio23SourceVoice *This,
UINT32 EffectIndex,
void *pParameters,
UINT32 ParametersByteSize);
HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
IXAudio23SourceVoice *This,
const XAUDIO2_FILTER_PARAMETERS *pParameters,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetFilterParameters)(
IXAudio23SourceVoice *This,
XAUDIO2_FILTER_PARAMETERS *pParameters);
HRESULT (STDMETHODCALLTYPE *SetVolume)(
IXAudio23SourceVoice *This,
float Volume,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetVolume)(
IXAudio23SourceVoice *This,
float *pVolume);
HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
IXAudio23SourceVoice *This,
UINT32 Channels,
const float *pVolumes,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetChannelVolumes)(
IXAudio23SourceVoice *This,
UINT32 Channels,
float *pVolumes);
HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
IXAudio23SourceVoice *This,
IXAudio2Voice *pDestinationVoice,
UINT32 SourceChannels,
UINT32 DestinationChannels,
const float *pLevelMatrix,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetOutputMatrix)(
IXAudio23SourceVoice *This,
IXAudio2Voice *pDestinationVoice,
UINT32 SourceChannels,
UINT32 DestinationChannels,
float *pLevelMatrix);
void (STDMETHODCALLTYPE *DestroyVoice)(
IXAudio23SourceVoice *This);
/*** IXAudio23SourceVoice methods ***/
HRESULT (STDMETHODCALLTYPE *Start)(
IXAudio23SourceVoice *This,
UINT32 Flags,
UINT32 OperationSet);
HRESULT (STDMETHODCALLTYPE *Stop)(
IXAudio23SourceVoice *This,
UINT32 Flags,
UINT32 OperationSet);
HRESULT (STDMETHODCALLTYPE *SubmitSourceBuffer)(
IXAudio23SourceVoice *This,
const XAUDIO2_BUFFER *pBuffer,
const XAUDIO2_BUFFER_WMA *pBufferWMA);
HRESULT (STDMETHODCALLTYPE *FlushSourceBuffers)(
IXAudio23SourceVoice *This);
HRESULT (STDMETHODCALLTYPE *Discontinuity)(
IXAudio23SourceVoice *This);
HRESULT (STDMETHODCALLTYPE *ExitLoop)(
IXAudio23SourceVoice *This,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetState)(
IXAudio23SourceVoice *This,
XAUDIO2_VOICE_STATE *pVoiceState);
HRESULT (STDMETHODCALLTYPE *SetFrequencyRatio)(
IXAudio23SourceVoice *This,
float Ratio,
UINT32 OperationSet);
void (STDMETHODCALLTYPE *GetFrequencyRatio)(
IXAudio23SourceVoice *This,
float *pRatio);
END_INTERFACE
} IXAudio23SourceVoiceVtbl;
interface IXAudio23SourceVoice {
CONST_VTBL IXAudio23SourceVoiceVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IXAudio23Voice methods ***/
#define IXAudio23SourceVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
#define IXAudio23SourceVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
#define IXAudio23SourceVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
#define IXAudio23SourceVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
#define IXAudio23SourceVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
#define IXAudio23SourceVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
#define IXAudio23SourceVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
#define IXAudio23SourceVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
#define IXAudio23SourceVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
#define IXAudio23SourceVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
#define IXAudio23SourceVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
#define IXAudio23SourceVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
#define IXAudio23SourceVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
#define IXAudio23SourceVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
#define IXAudio23SourceVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
#define IXAudio23SourceVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
#define IXAudio23SourceVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
/*** IXAudio23SourceVoice methods ***/
#define IXAudio23SourceVoice_Start(This,Flags,OperationSet) (This)->lpVtbl->Start(This,Flags,OperationSet)
#define IXAudio23SourceVoice_Stop(This,Flags,OperationSet) (This)->lpVtbl->Stop(This,Flags,OperationSet)
#define IXAudio23SourceVoice_SubmitSourceBuffer(This,pBuffer,pBufferWMA) (This)->lpVtbl->SubmitSourceBuffer(This,pBuffer,pBufferWMA)
#define IXAudio23SourceVoice_FlushSourceBuffers(This) (This)->lpVtbl->FlushSourceBuffers(This)
#define IXAudio23SourceVoice_Discontinuity(This) (This)->lpVtbl->Discontinuity(This)
#define IXAudio23SourceVoice_ExitLoop(This,OperationSet) (This)->lpVtbl->ExitLoop(This,OperationSet)
#define IXAudio23SourceVoice_GetState(This,pVoiceState) (This)->lpVtbl->GetState(This,pVoiceState)
#define IXAudio23SourceVoice_SetFrequencyRatio(This,Ratio,OperationSet) (This)->lpVtbl->SetFrequencyRatio(This,Ratio,OperationSet)
#define IXAudio23SourceVoice_GetFrequencyRatio(This,pRatio) (This)->lpVtbl->GetFrequencyRatio(This,pRatio)
#else
/*** IXAudio23Voice methods ***/
static FORCEINLINE void IXAudio23SourceVoice_GetVoiceDetails(IXAudio23SourceVoice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
}
static FORCEINLINE HRESULT IXAudio23SourceVoice_SetOutputVoices(IXAudio23SourceVoice* This,const XAUDIO23_VOICE_SENDS *pSendList) {
return This->lpVtbl->SetOutputVoices(This,pSendList);
}
static FORCEINLINE HRESULT IXAudio23SourceVoice_SetEffectChain(IXAudio23SourceVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
return This->lpVtbl->SetEffectChain(This,pEffectChain);
}
static FORCEINLINE HRESULT IXAudio23SourceVoice_EnableEffect(IXAudio23SourceVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
}
static FORCEINLINE HRESULT IXAudio23SourceVoice_DisableEffect(IXAudio23SourceVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
}
static FORCEINLINE void IXAudio23SourceVoice_GetEffectState(IXAudio23SourceVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
}
static FORCEINLINE HRESULT IXAudio23SourceVoice_SetEffectParameters(IXAudio23SourceVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
}
static FORCEINLINE HRESULT IXAudio23SourceVoice_GetEffectParameters(IXAudio23SourceVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
}
static FORCEINLINE HRESULT IXAudio23SourceVoice_SetFilterParameters(IXAudio23SourceVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
}
static FORCEINLINE void IXAudio23SourceVoice_GetFilterParameters(IXAudio23SourceVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
This->lpVtbl->GetFilterParameters(This,pParameters);
}
static FORCEINLINE HRESULT IXAudio23SourceVoice_SetVolume(IXAudio23SourceVoice* This,float Volume,UINT32 OperationSet) {
return This->lpVtbl->SetVolume(This,Volume,OperationSet);
}
static FORCEINLINE void IXAudio23SourceVoice_GetVolume(IXAudio23SourceVoice* This,float *pVolume) {
This->lpVtbl->GetVolume(This,pVolume);
}
static FORCEINLINE HRESULT IXAudio23SourceVoice_SetChannelVolumes(IXAudio23SourceVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
}
static FORCEINLINE void IXAudio23SourceVoice_GetChannelVolumes(IXAudio23SourceVoice* This,UINT32 Channels,float *pVolumes) {
This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
}
static FORCEINLINE HRESULT IXAudio23SourceVoice_SetOutputMatrix(IXAudio23SourceVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
}
static FORCEINLINE void IXAudio23SourceVoice_GetOutputMatrix(IXAudio23SourceVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
}
static FORCEINLINE void IXAudio23SourceVoice_DestroyVoice(IXAudio23SourceVoice* This) {
This->lpVtbl->DestroyVoice(This);
}
/*** IXAudio23SourceVoice methods ***/
static FORCEINLINE HRESULT IXAudio23SourceVoice_Start(IXAudio23SourceVoice* This,UINT32 Flags,UINT32 OperationSet) {
return This->lpVtbl->Start(This,Flags,OperationSet);
}
static FORCEINLINE HRESULT IXAudio23SourceVoice_Stop(IXAudio23SourceVoice* This,UINT32 Flags,UINT32 OperationSet) {
return This->lpVtbl->Stop(This,Flags,OperationSet);
}
static FORCEINLINE HRESULT IXAudio23SourceVoice_SubmitSourceBuffer(IXAudio23SourceVoice* This,const XAUDIO2_BUFFER *pBuffer,const XAUDIO2_BUFFER_WMA *pBufferWMA) {
return This->lpVtbl->SubmitSourceBuffer(This,pBuffer,pBufferWMA);
}
static FORCEINLINE HRESULT IXAudio23SourceVoice_FlushSourceBuffers(IXAudio23SourceVoice* This) {
return This->lpVtbl->FlushSourceBuffers(This);
}
static FORCEINLINE HRESULT IXAudio23SourceVoice_Discontinuity(IXAudio23SourceVoice* This) {
return This->lpVtbl->Discontinuity(This);
}
static FORCEINLINE HRESULT IXAudio23SourceVoice_ExitLoop(IXAudio23SourceVoice* This,UINT32 OperationSet) {
return This->lpVtbl->ExitLoop(This,OperationSet);
}
static FORCEINLINE void IXAudio23SourceVoice_GetState(IXAudio23SourceVoice* This,XAUDIO2_VOICE_STATE *pVoiceState) {
This->lpVtbl->GetState(This,pVoiceState);
}
static FORCEINLINE HRESULT IXAudio23SourceVoice_SetFrequencyRatio(IXAudio23SourceVoice* This,float Ratio,UINT32 OperationSet) {
return This->lpVtbl->SetFrequencyRatio(This,Ratio,OperationSet);
}
static FORCEINLINE void IXAudio23SourceVoice_GetFrequencyRatio(IXAudio23SourceVoice* This,float *pRatio) {
This->lpVtbl->GetFrequencyRatio(This,pRatio);
}
#endif
#endif
#endif
#endif /* __IXAudio23SourceVoice_INTERFACE_DEFINED__ */
/*****************************************************************************
* IXAudio27SourceVoice interface
*/
#ifndef __IXAudio27SourceVoice_INTERFACE_DEFINED__
#define __IXAudio27SourceVoice_INTERFACE_DEFINED__
#if defined(__cplusplus) && !defined(CINTERFACE)
interface IXAudio27SourceVoice : public IXAudio27Voice
{
virtual HRESULT STDMETHODCALLTYPE Start(
UINT32 Flags = 0,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual HRESULT STDMETHODCALLTYPE Stop(
UINT32 Flags = 0,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual HRESULT STDMETHODCALLTYPE SubmitSourceBuffer(
const XAUDIO2_BUFFER *pBuffer,
const XAUDIO2_BUFFER_WMA *pBufferWMA = 0) = 0;
virtual HRESULT STDMETHODCALLTYPE FlushSourceBuffers(
) = 0;
virtual HRESULT STDMETHODCALLTYPE Discontinuity(
) = 0;
virtual HRESULT STDMETHODCALLTYPE ExitLoop(
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetState(
XAUDIO2_VOICE_STATE *pVoiceState) = 0;
virtual HRESULT STDMETHODCALLTYPE SetFrequencyRatio(
float Ratio,
UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
virtual void STDMETHODCALLTYPE GetFrequencyRatio(
float *pRatio) = 0;
virtual HRESULT STDMETHODCALLTYPE SetSourceSampleRate(
UINT32 NewSourceSampleRate) = 0;
};
#else
typedef struct IXAudio27SourceVoiceVtbl {
BEGIN_INTERFACE
/*** IXAudio27Voice methods ***/
void (STDMETHODCALLTYPE *GetVoiceDetails)(
IXAudio27SourceVoice *This,
XAUDIO27_VOICE_DETAILS *pVoiceDetails);
HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
IXAudio27SourceVoice *This,
const XAUDIO2_VOICE_SENDS *pSendList);
HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
IXAudio27SourceVoice