From fd831f569c542a7100702f162e704e1bd3e59f5a Mon Sep 17 00:00:00 2001 From: Preben Eriksen Date: Wed, 26 Oct 2022 09:54:10 +0200 Subject: [PATCH] PE: Fix - Streaming audio could not loop. ( https://github.com/FlaxEngine/FlaxEngine/issues/786 ) --- Source/Engine/Audio/AudioSource.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Engine/Audio/AudioSource.cpp b/Source/Engine/Audio/AudioSource.cpp index 870a1f41a..c01e20692 100644 --- a/Source/Engine/Audio/AudioSource.cpp +++ b/Source/Engine/Audio/AudioSource.cpp @@ -130,6 +130,10 @@ void AudioSource::Play() { // Request faster streaming update Clip->RequestStreamingUpdate(); + + // PE: If we are looping and streaming also update streaming buffers. + if(_loop) + RequestStreamingBuffersUpdate(); } } else