Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
AESinkXAudio.cpp File Reference
#include "AESinkXAudio.h"
#include "ServiceBroker.h"
#include "cores/AudioEngine/AESinkFactory.h"
#include "cores/AudioEngine/Sinks/windows/AESinkFactoryWin.h"
#include "cores/AudioEngine/Utils/AEDeviceInfo.h"
#include "cores/AudioEngine/Utils/AEUtil.h"
#include "utils/StringUtils.h"
#include "utils/TimeUtils.h"
#include "utils/XTimeUtils.h"
#include "utils/log.h"
#include "platform/win10/AsyncHelpers.h"
#include "platform/win32/CharsetConverter.h"
#include <algorithm>
#include <stdint.h>
#include <ksmedia.h>
#include <mfapi.h>
#include <mmdeviceapi.h>
#include <mmreg.h>
#include <wrl/implements.h>

Macros

#define EXIT_ON_FAILURE(hr, reason, ...)
 
#define XAUDIO_BUFFERS_IN_QUEUE   2
 

Functions

const char * WASAPIErrToStr (HRESULT err)
 
template<class TVoice >
void SafeDestroyVoice (TVoice **ppVoice)
 

Macro Definition Documentation

◆ EXIT_ON_FAILURE

#define EXIT_ON_FAILURE ( hr,
reason,
... )
Value:
if (FAILED(hr)) \
{ \
CLog::Log(LOGERROR, reason " - {}", __VA_ARGS__, WASAPIErrToStr(hr)); \
goto failed; \
}
const char * WASAPIErrToStr(HRESULT err)
Definition AESinkFactoryWin.cpp:14
constexpr int LOGERROR
Definition ilog.h:21

◆ XAUDIO_BUFFERS_IN_QUEUE

#define XAUDIO_BUFFERS_IN_QUEUE   2

Function Documentation

◆ SafeDestroyVoice()

template<class TVoice >
void SafeDestroyVoice ( TVoice ** ppVoice)
inline

◆ WASAPIErrToStr()

const char * WASAPIErrToStr ( HRESULT err)
extern