XAudio2 sound driver.
More...
#include "../stdafx.h"
#include "../openttd.h"
#include "../driver.h"
#include "../mixer.h"
#include "../debug.h"
#include "../core/alloc_func.hpp"
#include "../core/bitmath_func.hpp"
#include "../core/math_func.hpp"
#include "xaudio2_s.h"
#include <windows.h>
#include <mmsystem.h>
#include <wrl\client.h>
#include <xaudio2.h>
#include "../os/windows/win32.h"
#include "../safeguards.h"
Go to the source code of this file.
|
typedef HRESULT(__stdcall * | API_XAudio2Create) (_Outptr_ IXAudio2 **ppXAudio2, UINT32 Flags, XAUDIO2_PROCESSOR XAudio2Processor) |
|
|
static HRESULT | CreateXAudio (API_XAudio2Create xAudio2Create) |
| Create XAudio2 context with SEH exception checking.
|
|
XAudio2 sound driver.
Definition in file xaudio2_s.cpp.
◆ _WIN32_WINNT
#define _WIN32_WINNT _WIN32_WINNT_WIN8 |
◆ NTDDI_VERSION
#define NTDDI_VERSION NTDDI_WIN8 |
◆ API_XAudio2Create
typedef HRESULT(__stdcall * API_XAudio2Create) (_Outptr_ IXAudio2 **ppXAudio2, UINT32 Flags, XAUDIO2_PROCESSOR XAudio2Processor) |
◆ CreateXAudio()
static HRESULT CreateXAudio |
( |
API_XAudio2Create |
xAudio2Create | ) |
|
|
static |
◆ _mastering_voice
IXAudio2MasteringVoice* _mastering_voice = nullptr |
|
static |
◆ _source_voice
IXAudio2SourceVoice* _source_voice = nullptr |
|
static |
◆ _voice_context
◆ _xaudio2
ComPtr<IXAudio2> _xaudio2 |
|
static |
◆ _xaudio_dll_handle
HMODULE _xaudio_dll_handle |
|
static |
◆ iFSoundDriver_XAudio2