wasapi: Fix a type mismatch in QueryInterface
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
This commit is contained in:
@@ -641,7 +641,7 @@ static int mgmtthrtask_PrepDevice(void *userdata)
|
|||||||
// Try querying IAudioClient3 if sharemode is AUDCLNT_SHAREMODE_SHARED
|
// Try querying IAudioClient3 if sharemode is AUDCLNT_SHAREMODE_SHARED
|
||||||
if (sharemode == AUDCLNT_SHAREMODE_SHARED) {
|
if (sharemode == AUDCLNT_SHAREMODE_SHARED) {
|
||||||
IAudioClient3 *client3 = NULL;
|
IAudioClient3 *client3 = NULL;
|
||||||
ret = IAudioClient_QueryInterface(client, &SDL_IID_IAudioClient3, &client3);
|
ret = IAudioClient_QueryInterface(client, &SDL_IID_IAudioClient3, (void**)&client3);
|
||||||
if (SUCCEEDED(ret)) {
|
if (SUCCEEDED(ret)) {
|
||||||
UINT32 default_period_in_frames = 0;
|
UINT32 default_period_in_frames = 0;
|
||||||
UINT32 fundamental_period_in_frames = 0;
|
UINT32 fundamental_period_in_frames = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user