mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 16:20:27 +00:00
(DSound/Wasapi/XAudio2) CXX_BUILD fixes
This commit is contained in:
parent
86728ddbf2
commit
19bdafc355
@ -336,7 +336,7 @@ static void *dsound_init(const char *dev, unsigned rate, unsigned latency,
|
||||
WAVEFORMATEX wfx = {0};
|
||||
DSBUFFERDESC bufdesc = {0};
|
||||
int32_t idx_found = -1;
|
||||
struct string_list *list = dsound_list_new(NULL);
|
||||
struct string_list *list = (struct string_list*)dsound_list_new(NULL);
|
||||
dsound_t *ds = (dsound_t*)calloc(1, sizeof(*ds));
|
||||
|
||||
if (!ds)
|
||||
@ -357,7 +357,7 @@ static void *dsound_init(const char *dev, unsigned rate, unsigned latency,
|
||||
if (string_is_equal(dev, list->elems[i].data))
|
||||
{
|
||||
idx_found = i;
|
||||
selected_device = list->elems[idx_found].userdata;
|
||||
selected_device = (LPGUID)list->elems[idx_found].userdata;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -374,7 +374,7 @@ static void *dsound_init(const char *dev, unsigned rate, unsigned latency,
|
||||
if (idx_found < (int32_t)list->size)
|
||||
{
|
||||
RARCH_LOG("[DirectSound]: Corresponding name: %s\n", list->elems[idx_found].data);
|
||||
selected_device = list->elems[idx_found].userdata;
|
||||
selected_device = (LPGUID)list->elems[idx_found].userdata;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ static IMMDevice *wasapi_init_device(const char *id)
|
||||
if (id)
|
||||
{
|
||||
int32_t idx_found = -1;
|
||||
struct string_list *list = mmdevice_list_new(NULL);
|
||||
struct string_list *list = (struct string_list*)mmdevice_list_new(NULL);
|
||||
|
||||
/* Search for device name first */
|
||||
if (list)
|
||||
|
@ -466,7 +466,7 @@ static void *xa_list_new(void *u)
|
||||
attr.i = 0;
|
||||
|
||||
if (FAILED(XAudio2Create(&ixa2, 0, XAUDIO2_DEFAULT_PROCESSOR)))
|
||||
return false;
|
||||
return NULL;
|
||||
|
||||
IXAudio2_GetDeviceCount(ixa2, &dev_count);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user