Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
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 "platform/win32/CharsetConverter.h"
#include "threads/SingleLock.h"
#include "threads/SystemClock.h"
#include "utils/log.h"
#include "utils/StringUtils.h"
#include <algorithm>
#include <Audioclient.h>
#include <initguid.h>
#include <list>
#include <Mmreg.h>
#include <mmdeviceapi.h>
#include <Functiondiscoverykeys_devpkey.h>
#include <Rpc.h>

Classes

struct  DSDevice
 

Macros

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

◆ 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)

Variable Documentation

◆ g_hWnd

HWND g_hWnd
extern