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
commit d7f0c49fdc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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();