34{
38 IDirectSound8 *ds8 =
NULL;
40
44 {
45 skip(
"mmdevapi not available: 0x%08x\n",
hr);
47 }
48
50 ok(
hr ==
S_OK ||
hr == E_NOTFOUND,
"GetDefaultAudioEndpoint failed: 0x%08x\n",
hr);
52 {
54 skip(
"No sound card available\n");
55 else
56 skip(
"GetDefaultAudioEndpoint returns 0x%08x\n",
hr);
58 }
59
61
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);
65 {
67 ok(ds8 !=
NULL,
"ds8 pointer is null\n");
68 }
69 if (ds8)
71
74 ok(
hr ==
S_OK,
"Activating bf failed: 0x%08x\n",
hr);
76 {
78 ok(bf !=
NULL,
"bf pointer is null\n");
79 if (bf)
80 {
82 hr = IBaseFilter_GetClassID(bf, &
clsid);
83 ok(
hr ==
S_OK,
"GetClassId failed with 0x%08x\n",
hr);
86 }
87 }
88
90 if (bf)
91 IBaseFilter_Release(bf);
93 IMMDevice_Release(
dev);
95 IMMDeviceEnumerator_Release(
mme);
96
98}
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)