From 2bc0e14abf883d242b7f2a64691c3753f84ba6c8 Mon Sep 17 00:00:00 2001 From: David Reid Date: Wed, 2 Jul 2025 17:57:50 +1000 Subject: [PATCH] Minor clarifying comment. --- miniaudio.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/miniaudio.h b/miniaudio.h index 78c8a798..cefa6af8 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -70414,6 +70414,9 @@ static ma_result ma_resource_manager_data_buffer_node_acquire_critical_section(m /* Fences were acquired before posting the job, but since the job was not able to be posted, we need to make sure we release them so nothing gets stuck waiting. + + In the WAIT_INIT case, these will have already been released in ma_job_process() + so we should only release fences in this branch. */ if (pInitFence != NULL) { ma_fence_release(pInitFence); } if (pDoneFence != NULL) { ma_fence_release(pDoneFence); }