|
@@ -45,15 +45,6 @@
|
|
#define AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM 0x80000000
|
|
#define AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM 0x80000000
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-/* This is a list of device id strings we have inflight, so we have consistent pointers to the same device. */
|
|
|
|
-typedef struct DevIdList
|
|
|
|
-{
|
|
|
|
- WCHAR *str;
|
|
|
|
- struct DevIdList *next;
|
|
|
|
-} DevIdList;
|
|
|
|
-
|
|
|
|
-static DevIdList *deviceid_list = NULL;
|
|
|
|
-
|
|
|
|
/* Some GUIDs we need to know without linking to libraries that aren't available before Vista. */
|
|
/* Some GUIDs we need to know without linking to libraries that aren't available before Vista. */
|
|
static const IID SDL_IID_IAudioRenderClient = { 0xf294acfc, 0x3146, 0x4483,{ 0xa7, 0xbf, 0xad, 0xdc, 0xa7, 0xc2, 0x60, 0xe2 } };
|
|
static const IID SDL_IID_IAudioRenderClient = { 0xf294acfc, 0x3146, 0x4483,{ 0xa7, 0xbf, 0xad, 0xdc, 0xa7, 0xc2, 0x60, 0xe2 } };
|
|
static const IID SDL_IID_IAudioCaptureClient = { 0xc8adbd64, 0xe71e, 0x48a0,{ 0xa4, 0xde, 0x18, 0x5c, 0x39, 0x5c, 0xd3, 0x17 } };
|
|
static const IID SDL_IID_IAudioCaptureClient = { 0xc8adbd64, 0xe71e, 0x48a0,{ 0xa4, 0xde, 0x18, 0x5c, 0x39, 0x5c, 0xd3, 0x17 } };
|
|
@@ -602,17 +593,7 @@ WASAPI_ThreadDeinit(_THIS)
|
|
static void
|
|
static void
|
|
WASAPI_Deinitialize(void)
|
|
WASAPI_Deinitialize(void)
|
|
{
|
|
{
|
|
- DevIdList *devidlist;
|
|
|
|
- DevIdList *next;
|
|
|
|
-
|
|
|
|
WASAPI_PlatformDeinit();
|
|
WASAPI_PlatformDeinit();
|
|
-
|
|
|
|
- for (devidlist = deviceid_list; devidlist; devidlist = next) {
|
|
|
|
- next = devidlist->next;
|
|
|
|
- SDL_free(devidlist->str);
|
|
|
|
- SDL_free(devidlist);
|
|
|
|
- }
|
|
|
|
- deviceid_list = NULL;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
static SDL_bool
|
|
static SDL_bool
|