MythTV  master
Classes | Macros | Typedefs | Functions
audiooutputdx.cpp File Reference
#include <iostream>
#include <cmath>
#include "mythlogging.h"
#include "audiooutputdx.h"
#include <windows.h>
#include <mmsystem.h>
#include <dsound.h>
#include <unistd.h>
#include <initguid.h>
Include dependency graph for audiooutputdx.cpp:

Go to the source code of this file.

Classes

struct  WAVEFORMATEXTENSIBLE
 
class  AudioOutputDXPrivate
 

Macros

#define LOC   QString("AODX: ")
 
#define WAVE_FORMAT_DOLBY_AC3_SPDIF   0x0092
 
#define WAVE_FORMAT_IEEE_FLOAT   0x0003
 
#define WAVE_FORMAT_EXTENSIBLE   0xFFFE
 

Typedefs

typedef struct WAVEFORMATEXTENSIBLEPWAVEFORMATEXTENSIBLE
 
typedef HRESULT(WINAPI * LPFNDSC) (LPGUID, LPDIRECTSOUND *, LPUNKNOWN)
 
typedef HRESULT(WINAPI * LPFNDSE) (LPDSENUMCALLBACK, LPVOID)
 

Functions

 DEFINE_GUID (IID_IDirectSoundNotify, 0xb0210783, 0x89cd, 0x11d0, 0xaf, 0x8, 0x0, 0xa0, 0xc9, 0x25, 0xcd, 0x16)
 
 DEFINE_GUID (_KSDATAFORMAT_SUBTYPE_IEEE_FLOAT, WAVE_FORMAT_IEEE_FLOAT, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71)
 
 DEFINE_GUID (_KSDATAFORMAT_SUBTYPE_PCM, WAVE_FORMAT_PCM, 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)
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("AODX: ")

Definition at line 14 of file audiooutputdx.cpp.

◆ WAVE_FORMAT_DOLBY_AC3_SPDIF

#define WAVE_FORMAT_DOLBY_AC3_SPDIF   0x0092

Definition at line 21 of file audiooutputdx.cpp.

◆ WAVE_FORMAT_IEEE_FLOAT

#define WAVE_FORMAT_IEEE_FLOAT   0x0003

Definition at line 25 of file audiooutputdx.cpp.

◆ WAVE_FORMAT_EXTENSIBLE

#define WAVE_FORMAT_EXTENSIBLE   0xFFFE

Definition at line 29 of file audiooutputdx.cpp.

Typedef Documentation

◆ PWAVEFORMATEXTENSIBLE

◆ LPFNDSC

typedef HRESULT(WINAPI * LPFNDSC) (LPGUID, LPDIRECTSOUND *, LPUNKNOWN)

Definition at line 127 of file audiooutputdx.cpp.

◆ LPFNDSE

typedef HRESULT(WINAPI * LPFNDSE) (LPDSENUMCALLBACK, LPVOID)

Definition at line 128 of file audiooutputdx.cpp.

Function Documentation

◆ DEFINE_GUID() [1/4]

DEFINE_GUID ( IID_IDirectSoundNotify  ,
0xb0210783  ,
0x89cd  ,
0x11d0  ,
0xaf  ,
0x8  ,
0x0  ,
0xa0  ,
0xc9  ,
0x25  ,
0xcd  ,
0x16   
)

◆ DEFINE_GUID() [2/4]

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

◆ DEFINE_GUID() [3/4]

DEFINE_GUID ( _KSDATAFORMAT_SUBTYPE_PCM  ,
WAVE_FORMAT_PCM  ,
0x0000  ,
0x0010  ,
0x80  ,
0x00  ,
0x00  ,
0xaa  ,
0x00  ,
0x38  ,
0x9b  ,
0x71   
)

◆ DEFINE_GUID() [4/4]

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