From c20b26208b0f722061426e9a97694fdec05da4ab Mon Sep 17 00:00:00 2001 From: David Reid Date: Fri, 28 Aug 2020 19:21:30 +1000 Subject: [PATCH] Revert an experimental change. --- research/ma_engine.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/research/ma_engine.h b/research/ma_engine.h index 9be60ad6..fa436b27 100644 --- a/research/ma_engine.h +++ b/research/ma_engine.h @@ -5361,12 +5361,8 @@ static void ma_engine_mix_sound(ma_engine* pEngine, ma_sound_group* pGroup, ma_s /* 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) { - if (pSound->isLooping) { - ma_sound_seek_to_pcm_frame(pSound, 0); - } else { - ma_sound_stop_internal(pSound); - c89atomic_exchange_32(&pSound->atEnd, MA_TRUE); /* This will be set to false in ma_sound_start(). */ - } + ma_sound_stop_internal(pSound); + c89atomic_exchange_32(&pSound->atEnd, MA_TRUE); /* This will be set to false in ma_sound_start(). */ } pSound->runningTimeInEngineFrames += offsetInFrames + framesProcessed;