Merge pull request #532 from adriadam10/fix/audio-in-pacing

fix(audioin): never return a no-device block before its deadline
This commit is contained in:
Dean
2026-10-05 07:37:03 +13:00
committed by GitHub
+1 -1
View File
@@ -122,7 +122,7 @@ int APS5_VABI sceAudioInInput(int handle, void* dest) {
if (device != 0) {
captured = capture(device, out, bytes, deadline);
} else {
std::this_thread::sleep_until(wake);
while (Clock::now() < wake) std::this_thread::sleep_until(wake);
}
std::memset(out + captured, 0, bytes - captured);
lock.lock();