From 7d0106346b9caa6fa5b874279560ee9bd8869ed5 Mon Sep 17 00:00:00 2001 From: David Reid Date: Sat, 29 May 2021 15:27:30 +1000 Subject: [PATCH] Fix a subtle atomicity bug in the engine. --- research/miniaudio_engine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/research/miniaudio_engine.h b/research/miniaudio_engine.h index bd33a7ed..f984f914 100644 --- a/research/miniaudio_engine.h +++ b/research/miniaudio_engine.h @@ -11026,7 +11026,7 @@ static void ma_engine_node_process_pcm_frames__sound(ma_node* pNode, const float framesToRead = tempCapInFrames; } - result = ma_data_source_read_pcm_frames(pSound->pDataSource, temp, framesToRead, &framesJustRead, pSound->isLooping); + result = ma_data_source_read_pcm_frames(pSound->pDataSource, temp, framesToRead, &framesJustRead, ma_sound_is_looping(pSound)); /* If we reached the end of the sound we'll want to mark it as at the end and stop it. This should never be returned for looping sounds. */ if (result == MA_AT_END) {