mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 08:14:04 +02:00
WASAPI: Potential fix for some audio glitching.
This commit is contained in:
+2
-2
@@ -8144,7 +8144,7 @@ ma_result ma_device_main_loop__wasapi(ma_device* pDevice)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (framesAvailableCapture == 0) {
|
if (framesAvailableCapture < pDevice->wasapi.periodSizeInFramesCapture) {
|
||||||
continue; /* Nothing available. Keep waiting. */
|
continue; /* Nothing available. Keep waiting. */
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -8194,7 +8194,7 @@ ma_result ma_device_main_loop__wasapi(ma_device* pDevice)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (framesAvailablePlayback == 0) {
|
if (framesAvailablePlayback < pDevice->wasapi.periodSizeInFramesPlayback) {
|
||||||
continue; /* No space available. */
|
continue; /* No space available. */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user