43 DPRINT(
"No Interface for class %s\n", pStr);
94 if (!
This->bInitialized)
100 if (!lpcDSBufferDesc || !ppDSCBuffer || pUnkOuter !=
NULL)
114 DPRINT(
"This %p wFormatTag %x nChannels %u nSamplesPerSec %u nAvgBytesPerSec %u NBlockAlign %u wBitsPerSample %u cbSize %u\n",
132 if (!
This->bInitialized)
160 DPRINT(
"waveInGetDevCapsW for device %u failed with %x\n",
This->Filter->MappedId[0],
Result);
184 if (
This->bInitialized)
195 pcGuidDevice = &DSDEVID_DefaultCapture;
198 if (
IsEqualIID(pcGuidDevice, &DSDEVID_DefaultVoicePlayback) ||
IsEqualIID(pcGuidDevice, &DSDEVID_DefaultPlayback))
209 DPRINT(
"IDirectSound8_fnInitialize: Unknown GUID %ws\n", pGuidStr);
221 DPRINT(
"Failed to find device\n");
245 if (!ppDS || pUnkOuter !=
NULL)
271 DPRINT(
"Failed to initialize DirectSoundCapture object with %x\n",
hr);
278 DPRINT(
"DirectSoundCapture object %p\n", *ppDS);
297 DPRINT(
"NewDirectSoundCapture does not support Interface %ws\n", pStr);
#define InterlockedIncrement
#define InterlockedDecrement
HRESULT NewDirectSoundCaptureBuffer(LPDIRECTSOUNDCAPTUREBUFFER8 *OutBuffer, LPFILTERINFO Filter, LPCDSCBUFFERDESC lpcDSBufferDesc)
HRESULT WINAPI CDirectSoundCapture_fnGetCaps(LPDIRECTSOUNDCAPTURE8 iface, LPDSCCAPS pDSCCaps)
HRESULT WINAPI DirectSoundCaptureCreate8(LPCGUID lpcGUID, LPDIRECTSOUNDCAPTURE8 *ppDSC8, LPUNKNOWN pUnkOuter)
HRESULT InternalDirectSoundCaptureCreate(LPCGUID lpcGUID, LPDIRECTSOUNDCAPTURE8 *ppDS, IUnknown *pUnkOuter)
HRESULT WINAPI CDirectSoundCapture_fnQueryInterface(LPDIRECTSOUNDCAPTURE8 iface, REFIID riid, LPVOID *ppobj)
HRESULT WINAPI CDirectSoundCapture_fnInitialize(LPDIRECTSOUNDCAPTURE8 iface, LPCGUID pcGuidDevice)
HRESULT CALLBACK NewDirectSoundCapture(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppvObject)
ULONG WINAPI CDirectSoundCapture_fnAddRef(LPDIRECTSOUNDCAPTURE8 iface)
ULONG WINAPI CDirectSoundCapture_fnRelease(LPDIRECTSOUNDCAPTURE8 iface)
static IDirectSoundCaptureVtbl vt_DirectSoundCapture
struct CDirectSoundCaptureImpl * LPCDirectSoundCaptureImpl
HRESULT WINAPI DirectSoundCaptureCreate(LPCGUID lpcGUID, LPDIRECTSOUNDCAPTURE *ppDSC, LPUNKNOWN pUnkOuter)
HRESULT WINAPI CDirectSoundCapture_fnCreateCaptureBuffer(LPDIRECTSOUNDCAPTURE8 iface, LPCDSCBUFFERDESC lpcDSBufferDesc, LPDIRECTSOUNDCAPTUREBUFFER *ppDSCBuffer, LPUNKNOWN pUnkOuter)
BOOL FindDeviceByGuid(LPCGUID pGuidSrc, LPFILTERINFO *Filter)
HRESULT WINAPI GetDeviceID(LPCGUID pGuidSrc, LPGUID pGuidDest)
#define HeapFree(x, y, z)
#define DSERR_UNINITIALIZED
#define IID_IDirectSoundCapture8
#define DSERR_ALREADYINITIALIZED
struct IDirectSoundCapture * LPDIRECTSOUNDCAPTURE
struct IDirectSoundCaptureBuffer * LPDIRECTSOUNDCAPTUREBUFFER
#define IDirectSoundCapture_Release(p)
struct IDirectSoundCaptureBuffer8 * LPDIRECTSOUNDCAPTUREBUFFER8
#define DSERR_UNSUPPORTED
#define IDirectSoundCapture_Initialize(p, a)
#define DSERR_OUTOFMEMORY
#define DSERR_INVALIDPARAM
struct IDirectSound8 * LPDIRECTSOUND8
#define DSCCAPS_CERTIFIED
struct IDirectSoundCapture * LPDIRECTSOUNDCAPTURE8
VOID WINAPI CoTaskMemFree(LPVOID ptr)
_Check_return_ HRESULT WINAPI StringFromIID(_In_ REFIID rclsid, _Outptr_ LPOLESTR *lplpsz)
#define IsEqualGUID(rguid1, rguid2)
#define IsEqualIID(riid1, riid2)
IDirectSoundCaptureVtbl * lpVtbl
LPWAVEFORMATEX lpwfxFormat
#define CONTAINING_RECORD(address, type, field)
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
UINT WINAPI waveInGetDevCapsW(UINT_PTR uDeviceID, LPWAVEINCAPSW lpCaps, UINT uSize)
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO