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

Macros

#define EXIT_ON_FAILURE(hr, reason)   if(FAILED(hr)) {CLog::LogF(LOGERROR, reason " - HRESULT = %li ErrorMessage = %s", hr, WASAPIErrToStr(hr)); goto failed;}
 

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 
)    if(FAILED(hr)) {CLog::LogF(LOGERROR, reason " - HRESULT = %li ErrorMessage = %s", hr, WASAPIErrToStr(hr)); goto failed;}

Function Documentation

§ DEFINE_PROPERTYKEY() [1/2]

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

§ DEFINE_PROPERTYKEY() [2/2]

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

§ SafeRelease()

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

§ WASAPIErrToStr()

const char* WASAPIErrToStr ( HRESULT  err)

Variable Documentation

§ IID_IAudioClock

const IID IID_IAudioClock = __uuidof(IAudioClock)

§ IID_IAudioRenderClient

const IID IID_IAudioRenderClient = __uuidof(IAudioRenderClient)