ReactOS  0.4.15-dev-5455-g015cd25
miniport.h File Reference
#include "stream.h"
Include dependency graph for miniport.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CMiniport
 

Macros

#define PPORT_   PPORT
 
#define PPORTSTREAM_   PUNKNOWN
 
#define IMP_CMiniport(cType, IID)
 

Functions

void __fastcall obj_AddRef (PUNKNOWN obj, void **ppvObject)
 
void __fastcall obj_Release (void **ppvObject)
 

Variables

const int WAVE_SAMPLERATES_TESTED = 7
 
const int MIC_SAMPLERATES_TESTED = 4
 
const DWORD dwWaveSampleRates [WAVE_SAMPLERATES_TESTED]
 
const DWORD dwMicSampleRates [MIC_SAMPLERATES_TESTED]
 
const int PIN_WAVEOUT_OFFSET = (PIN_WAVEOUT / 2)
 
const int PIN_WAVEIN_OFFSET = (PIN_WAVEIN / 2)
 
const int PIN_MICIN_OFFSET = (PIN_MICIN / 2)
 

Macro Definition Documentation

◆ IMP_CMiniport

#define IMP_CMiniport (   cType,
  IID 
)
Value:
STDMETHODIMP_(NTSTATUS) cType::GetDescription( \
_Out_ PPCFILTER_DESCRIPTOR *OutFilterDescriptor)\
{ return CMiniport::GetDescription(OutFilterDescriptor); } \
STDMETHODIMP_(NTSTATUS) cType::DataRangeIntersection( \
IN ULONG PinId, \
IN PKSDATARANGE DataRange, \
IN PKSDATARANGE MatchingDataRange, \
OUT PVOID ResultantFormat OPTIONAL, \
OUT PULONG ResultantFormatLength) \
{ return CMiniport::DataRangeIntersection(PinId, DataRange, \
MatchingDataRange, OutputBufferLength, ResultantFormat, \
ResultantFormatLength); } \
STDMETHODIMP_(NTSTATUS) cType::NonDelegatingQueryInterface( \
#define IN
Definition: typedefs.h:39
#define STDMETHODIMP_(t)
Definition: basetyps.h:44
#define REFIID
Definition: guiddef.h:118
#define _Out_
Definition: ms_sal.h:345
NTSTATUS NonDelegatingQueryInterface(_In_ REFIID Interface, _COM_Outptr_ PVOID *Object, _In_ REFIID iMiniPort, _In_ PMINIPORT miniPort)
Definition: miniport.cpp:1144
LONG NTSTATUS
Definition: precomp.h:26
_In_ WDFREQUEST _In_ size_t OutputBufferLength
Definition: wdfio.h:318
#define _In_
Definition: ms_sal.h:308
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
IN PVOID IN PVOID IN USHORT IN USHORT IN PINTERFACE Interface
Definition: pci.h:361
unsigned int * PULONG
Definition: retypes.h:1
#define OUT
Definition: typedefs.h:40
unsigned int ULONG
Definition: retypes.h:1
#define _COM_Outptr_
Definition: ms_sal.h:449
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68

Definition at line 119 of file miniport.h.

◆ PPORT_

#define PPORT_   PPORT

Definition at line 5 of file miniport.h.

◆ PPORTSTREAM_

#define PPORTSTREAM_   PUNKNOWN

Definition at line 6 of file miniport.h.

Function Documentation

◆ obj_AddRef()

void __fastcall obj_AddRef ( PUNKNOWN  obj,
void **  ppvObject 
)

Definition at line 1264 of file miniport.cpp.

1265 {
1266  if(ppvObject) {
1267  *ppvObject = obj;
1268  if(obj) obj->AddRef();
1269  }
1270 }
GLsizei GLsizei GLuint * obj
Definition: glext.h:6042
REFIID LPVOID * ppvObject
Definition: precomp.h:44

Referenced by CMiniportStream::Init().

◆ obj_Release()

void __fastcall obj_Release ( void **  ppvObject)

Definition at line 1273 of file miniport.cpp.

1274 {
1275  if(ppvObject) {
1277  *ppvObject = NULL;
1278  if(obj) obj->Release();
1279  }
1280 }
IUnknown * PUNKNOWN
Definition: com_apitest.h:45
REFIID LPVOID * ppvObject
Definition: precomp.h:44
#define NULL
Definition: types.h:112

Referenced by CMiniport::~CMiniport(), and CMiniportStream::~CMiniportStream().

Variable Documentation

◆ dwMicSampleRates

const DWORD dwMicSampleRates[MIC_SAMPLERATES_TESTED]
Initial value:
=
{48000, 32000, 16000, 8000}

Definition at line 18 of file miniport.h.

Referenced by CMiniport::BuildDataRangeInformation().

◆ dwWaveSampleRates

const DWORD dwWaveSampleRates[WAVE_SAMPLERATES_TESTED]
Initial value:
=
{48000, 44100, 32000, 22050, 16000, 11025, 8000}

Definition at line 16 of file miniport.h.

Referenced by CMiniport::BuildDataRangeInformation().

◆ MIC_SAMPLERATES_TESTED

const int MIC_SAMPLERATES_TESTED = 4

Definition at line 14 of file miniport.h.

Referenced by CMiniport::BuildDataRangeInformation().

◆ PIN_MICIN_OFFSET

const int PIN_MICIN_OFFSET = (PIN_MICIN / 2)

Definition at line 23 of file miniport.h.

Referenced by CMiniport::InterruptServiceRoutine(), and STDMETHODIMP_().

◆ PIN_WAVEIN_OFFSET

const int PIN_WAVEIN_OFFSET = (PIN_WAVEIN / 2)

Definition at line 22 of file miniport.h.

Referenced by CMiniport::InterruptServiceRoutine().

◆ PIN_WAVEOUT_OFFSET

const int PIN_WAVEOUT_OFFSET = (PIN_WAVEOUT / 2)

Definition at line 21 of file miniport.h.

Referenced by CMiniport::InterruptServiceRoutine(), and STDMETHODIMP_().

◆ WAVE_SAMPLERATES_TESTED

const int WAVE_SAMPLERATES_TESTED = 7

Definition at line 13 of file miniport.h.

Referenced by CMiniport::BuildDataRangeInformation().