Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
AESinkWASAPI.cpp File Reference
#include "AESinkWASAPI.h"
#include "cores/AudioEngine/AESinkFactory.h"
#include "cores/AudioEngine/Utils/AEDeviceInfo.h"
#include "cores/AudioEngine/Utils/AEUtil.h"
#include "utils/StringUtils.h"
#include "utils/SystemInfo.h"
#include "utils/TimeUtils.h"
#include "utils/XTimeUtils.h"
#include "utils/log.h"
#include <algorithm>
#include <stdint.h>
#include <Audioclient.h>
#include <Mmreg.h>

Macros

#define EXIT_ON_FAILURE(hr, reason)
 

Functions

 DEFINE_PROPERTYKEY (PKEY_Device_FriendlyName, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 14)
 
 DEFINE_PROPERTYKEY (PKEY_Device_EnumeratorName, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 24)
 
const char * WASAPIErrToStr (HRESULT err)
 
template<class T >
void SafeRelease (T **ppT)
 

Variables

const IID IID_IAudioRenderClient = __uuidof(IAudioRenderClient)
 
const IID IID_IAudioClock = __uuidof(IAudioClock)
 

Macro Definition Documentation

◆ EXIT_ON_FAILURE

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

Function Documentation

◆ DEFINE_PROPERTYKEY() [1/2]

DEFINE_PROPERTYKEY ( PKEY_Device_EnumeratorName ,
0xa45c254e ,
0xdf1c ,
0x4efd ,
0x80 ,
0x20 ,
0x67 ,
0xd1 ,
0x46 ,
0xa8 ,
0x50 ,
0xe0 ,
24  )

◆ DEFINE_PROPERTYKEY() [2/2]

DEFINE_PROPERTYKEY ( PKEY_Device_FriendlyName ,
0xa45c254e ,
0xdf1c ,
0x4efd ,
0x80 ,
0x20 ,
0x67 ,
0xd1 ,
0x46 ,
0xa8 ,
0x50 ,
0xe0 ,
14  )

◆ SafeRelease()

template<class T >
void SafeRelease ( T ** ppT)
inline

◆ WASAPIErrToStr()

const char * WASAPIErrToStr ( HRESULT err)
extern

Variable Documentation

◆ IID_IAudioClock

const IID IID_IAudioClock = __uuidof(IAudioClock)

◆ IID_IAudioRenderClient

const IID IID_IAudioRenderClient = __uuidof(IAudioRenderClient)