WASAPI: Potential fix for some audio glitching.

This commit is contained in:
David Reid
2019-03-07 19:41:11 +10:00
parent b07c3efd6f
commit b191a1f50b
+2 -2
View File
@@ -8144,7 +8144,7 @@ ma_result ma_device_main_loop__wasapi(ma_device* pDevice)
break;
}
if (framesAvailableCapture == 0) {
if (framesAvailableCapture < pDevice->wasapi.periodSizeInFramesCapture) {
continue; /* Nothing available. Keep waiting. */
}
@@ -8194,7 +8194,7 @@ ma_result ma_device_main_loop__wasapi(ma_device* pDevice)
break;
}
if (framesAvailablePlayback == 0) {
if (framesAvailablePlayback < pDevice->wasapi.periodSizeInFramesPlayback) {
continue; /* No space available. */
}