fix(audio3d): wait until the slot frees in blocking push

This commit is contained in:
Adrià Franch
2026-10-06 00:28:18 +02:00
parent 06d2ae5f05
commit 42869efbfa
+1 -1
View File
@@ -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;
}