ReactOS 0.4.15-dev-7942-gd23573b
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( \
LONG NTSTATUS
Definition: precomp.h:26
#define STDMETHODIMP_(t)
Definition: basetyps.h:44
NTSTATUS NonDelegatingQueryInterface(_In_ REFIID Interface, _COM_Outptr_ PVOID *Object, _In_ REFIID iMiniPort, _In_ PMINIPORT miniPort)
Definition: miniport.cpp:1144
#define _Out_
Definition: ms_sal.h:345
#define _COM_Outptr_
Definition: ms_sal.h:449
#define _In_
Definition: ms_sal.h:308
#define REFIID
Definition: guiddef.h:118
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
uint32_t * PULONG
Definition: typedefs.h:59
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE Interface
Definition: wdffdo.h:465
_In_ WDFREQUEST _In_ size_t OutputBufferLength
Definition: wdfio.h:320

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}
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
Definition: wincrypt.h:6082

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
#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().