|
Kodi Documentation
18.0
Kodi is an open source media player and entertainment hub.
|
#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) |
| #define EXIT_ON_FAILURE | ( | hr, | |
| reason | |||
| ) | if(FAILED(hr)) {CLog::LogF(LOGERROR, reason " - HRESULT = %li ErrorMessage = %s", hr, WASAPIErrToStr(hr)); goto failed;} |
| 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 | |||
| ) |
|
inline |
| const char* WASAPIErrToStr | ( | HRESULT | err | ) |
| const IID IID_IAudioClock = __uuidof(IAudioClock) |
| const IID IID_IAudioRenderClient = __uuidof(IAudioRenderClient) |