mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-10 01:28:44 +02:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user