Skip to content

Commit df46791

Browse files
committed
Fix changes from SDL3
1 parent 37757f8 commit df46791

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/audio/wasapi/SDL_wasapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ int WASAPI_PrepDevice(SDL_AudioDevice *_this, const SDL_bool updatestream)
457457
}
458458
#endif
459459

460-
if (this->iscapture && this->hidden->isplayback)
460+
if (_this->iscapture && _this->hidden->isplayback)
461461
{
462462
streamflags |= AUDCLNT_STREAMFLAGS_LOOPBACK;
463463
}

src/audio/wasapi/SDL_wasapi_win32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ int WASAPI_ActivateDevice(SDL_AudioDevice *_this, const SDL_bool isrecovery)
113113
return -1; /* This is already set by SDL_IMMDevice_Get */
114114
}
115115

116-
this->hidden->isplayback = !SDL_IMMDevice_GetIsCapture(device);
116+
_this->hidden->isplayback = !SDL_IMMDevice_GetIsCapture(device);
117117

118118
/* this is not async in standard win32, yay! */
119119
ret = IMMDevice_Activate(device, &SDL_IID_IAudioClient, CLSCTX_ALL, NULL, (void **)&_this->hidden->client);

0 commit comments

Comments
 (0)