Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
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 "platform/win32/CharsetConverter.h"
#include "platform/win10/AsyncHelpers.h"
#include "settings/AdvancedSettings.h"
#include "settings/SettingsComponent.h"
#include "utils/log.h"
#include "utils/StringUtils.h"
#include "utils/TimeUtils.h"
#include <algorithm>
#include <ksmedia.h>
#include <mfapi.h>
#include <mmdeviceapi.h>
#include <mmreg.h>
#include <stdint.h>
#include <wrl/implements.h>

Macros

#define EXIT_ON_FAILURE(hr, reason, ...)   if(FAILED(hr)) {CLog::Log(LOGERROR, reason " - %s", __VA_ARGS__, WASAPIErrToStr(hr)); goto failed;}
 
#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,
  ... 
)    if(FAILED(hr)) {CLog::Log(LOGERROR, reason " - %s", __VA_ARGS__, WASAPIErrToStr(hr)); goto failed;}

◆ 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)