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:
commit
d7f0c49fdc
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue