Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
AESinkFactoryWin32.cpp File Reference
#include "AESinkFactoryWin.h"
#include "utils/StringUtils.h"
#include "utils/log.h"
#include "platform/win32/CharsetConverter.h"
#include "platform/win32/WIN32Util.h"
#include <algorithm>
#include <mmdeviceapi.h>
#include <wrl/client.h>

Classes

struct  AEWASAPIDeviceWin32
 

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)
 

Variables

const CLSID CLSID_MMDeviceEnumerator = __uuidof(MMDeviceEnumerator)
 
const IID IID_IMMDeviceEnumerator = __uuidof(IMMDeviceEnumerator)
 
const IID IID_IAudioClient = __uuidof(IAudioClient)
 

Macro Definition Documentation

◆ EXIT_ON_FAILURE

#define EXIT_ON_FAILURE ( hr,
reason )
Value:
if (FAILED(hr)) \
{ \
CLog::LogF(LOGERROR, reason " - {}", hr, CWIN32Util::FormatHRESULT(hr)); \
goto failed; \
}
static std::string FormatHRESULT(HRESULT hr)
Format a Windows HRESULT value into a string for logging.
Definition WIN32Util.cpp:2020
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  )

Variable Documentation

◆ CLSID_MMDeviceEnumerator

const CLSID CLSID_MMDeviceEnumerator = __uuidof(MMDeviceEnumerator)

◆ IID_IAudioClient

const IID IID_IAudioClient = __uuidof(IAudioClient)

◆ IID_IMMDeviceEnumerator

const IID IID_IMMDeviceEnumerator = __uuidof(IMMDeviceEnumerator)