Skip to content

Commit 31404a9

Browse files
committed
wasapi: Patched to compile.
1 parent a35bcad commit 31404a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/audio/wasapi/SDL_wasapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ static int WASAPI_RecordDevice(SDL_AudioDevice *device, void *buffer, int buflen
592592
UINT32 frames = 0;
593593
DWORD flags = 0;
594594

595-
while (device->hidden->capture && !SDL_GetAtomicInt(&device->hidden->device_disconnecting))
595+
while (device->hidden->capture && !SDL_GetAtomicInt(&device->hidden->device_disconnecting)) {
596596
const HRESULT ret = IAudioCaptureClient_GetBuffer(device->hidden->capture, &ptr, &frames, &flags, NULL, NULL);
597597
if (ret == AUDCLNT_S_BUFFER_EMPTY) {
598598
return 0; // in theory we should have waited until there was data, but oh well, we'll go back to waiting. Returning 0 is safe in SDL3.

0 commit comments

Comments
 (0)