Commit b191a1f5 authored by David Reid's avatar David Reid

WASAPI: Potential fix for some audio glitching.

parent b07c3efd
......@@ -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. */
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment