29#include "mmdeviceapi.h"
38 IDirectSound8 *ds8 =
NULL;
45 skip(
"mmdevapi not available: 0x%08x\n",
hr);
50 ok(
hr ==
S_OK ||
hr == E_NOTFOUND,
"GetDefaultAudioEndpoint failed: 0x%08x\n",
hr);
54 skip(
"No sound card available\n");
56 skip(
"GetDefaultAudioEndpoint returns 0x%08x\n",
hr);
62 hr = IMMDevice_Activate(
dev, &IID_IDirectSound8, CLSCTX_INPROC_SERVER,
NULL, (
void**)&ds8);
63 ok(
hr ==
S_OK,
"Activating ds8 interface failed: 0x%08x\n",
hr);
67 ok(ds8 !=
NULL,
"ds8 pointer is null\n");
74 ok(
hr ==
S_OK,
"Activating bf failed: 0x%08x\n",
hr);
78 ok(bf !=
NULL,
"bf pointer is null\n");
82 hr = IBaseFilter_GetClassID(bf, &
clsid);
83 ok(
hr ==
S_OK,
"GetClassId failed with 0x%08x\n",
hr);
91 IBaseFilter_Release(bf);
93 IMMDevice_Release(
dev);
95 IMMDeviceEnumerator_Release(
mme);
const GUID IID_IBaseFilter
static void cleanup(void)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HRESULT WINAPI DECLSPEC_HOTPATCH CoInitializeEx(LPVOID lpReserved, DWORD dwCoInit)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
#define IDirectSound8_Release(p)
static IMMDeviceEnumerator * mme
#define IsEqualCLSID(rclsid1, rclsid2)
static __inline const char * wine_dbgstr_guid(const GUID *id)