Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
AESinkDirectSound.cpp File Reference
#include "AESinkDirectSound.h"
#include "cores/AudioEngine/AESinkFactory.h"
#include "cores/AudioEngine/Sinks/windows/AESinkFactoryWin.h"
#include "cores/AudioEngine/Utils/AEUtil.h"
#include "utils/StringUtils.h"
#include "utils/XTimeUtils.h"
#include "utils/log.h"
#include "platform/win32/CharsetConverter.h"
#include <algorithm>
#include <list>
#include <mutex>
#include <Audioclient.h>
#include <Mmreg.h>
#include <Rpc.h>
#include <initguid.h>
#include <mmdeviceapi.h>
#include <Functiondiscoverykeys_devpkey.h>

Classes

struct  DSDevice
 

Macros

#define INITGUID
 
#define EXIT_ON_FAILURE(hr, reason)
 
#define DS_SPEAKER_COUNT   8
 

Functions

 DEFINE_GUID (_KSDATAFORMAT_SUBTYPE_IEEE_FLOAT, WAVE_FORMAT_IEEE_FLOAT, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71)
 
 DEFINE_GUID (_KSDATAFORMAT_SUBTYPE_DOLBY_AC3_SPDIF, WAVE_FORMAT_DOLBY_AC3_SPDIF, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71)
 
const char * WASAPIErrToStr (HRESULT err)
 

Variables

HWND g_hWnd
 

Macro Definition Documentation

◆ DS_SPEAKER_COUNT

#define DS_SPEAKER_COUNT   8

◆ 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

◆ INITGUID

#define INITGUID

Function Documentation

◆ DEFINE_GUID() [1/2]

DEFINE_GUID ( _KSDATAFORMAT_SUBTYPE_DOLBY_AC3_SPDIF ,
WAVE_FORMAT_DOLBY_AC3_SPDIF ,
0x0000 ,
0x0010 ,
0x80 ,
0x00 ,
0x00 ,
0xaa ,
0x00 ,
0x38 ,
0x9b ,
0x71  )

◆ DEFINE_GUID() [2/2]

DEFINE_GUID ( _KSDATAFORMAT_SUBTYPE_IEEE_FLOAT ,
WAVE_FORMAT_IEEE_FLOAT ,
0x0000 ,
0x0010 ,
0x80 ,
0x00 ,
0x00 ,
0xaa ,
0x00 ,
0x38 ,
0x9b ,
0x71  )

◆ WASAPIErrToStr()

const char * WASAPIErrToStr ( HRESULT err)
extern

Variable Documentation

◆ g_hWnd

HWND g_hWnd
extern