mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-10 01:28:44 +02:00
fix(audio3d): wait until the slot frees in blocking push
This commit is contained in:
@@ -153,7 +153,7 @@ int APS5_VABI sceAudio3dPortPush(uint32_t port_id, uint32_t blocking) {
|
||||
if (blocking == AUDIO3D_BLOCKING_ASYNC || level < g_port.queue_depth) return 0;
|
||||
wait_until = g_port.playing[level - g_port.queue_depth];
|
||||
}
|
||||
std::this_thread::sleep_until(wait_until);
|
||||
while (Clock::now() < wait_until) std::this_thread::sleep_until(wait_until);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user