OpenTTD Source: src/sound/xaudio2_s.cpp File Reference

OpenTTD Source 14.0-RC3

Data Structures | Macros | Typedefs | Functions | Variables
xaudio2_s.cpp File Reference
`#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.

## Data Structures
class | StreamingVoiceContext
| Implementation of the IXAudio2VoiceCallback interface. More...

## Macros
#define | NTDDI_VERSION NTDDI_WIN8
#define | _WIN32_WINNT _WIN32_WINNT_WIN8

## Typedefs
typedef HRESULT(__stdcall * | API_XAudio2Create) (_Outptr_ IXAudio2 **ppXAudio2, UINT32 Flags, XAUDIO2_PROCESSOR XAudio2Processor)

## Functions
static HRESULT | CreateXAudio (API_XAudio2Create xAudio2Create)
| Create XAudio2 context with SEH exception checking.

## Variables
static FSoundDriver_XAudio2 | iFSoundDriver_XAudio2
static HMODULE | _xaudio_dll_handle
static IXAudio2SourceVoice * | _source_voice = nullptr
static IXAudio2MasteringVoice * | _mastering_voice = nullptr
static ComPtr< IXAudio2 > | _xaudio2
static StreamingVoiceContext * | _voice_context = nullptr

## Detailed Description

XAudio2 sound driver.

Definition in file xaudio2_s.cpp.