mirror of
https://github.com/godotengine/godot
synced 2024-09-05 05:08:27 +00:00
Fix empty audio infinite loop
This commit is contained in:
parent
c4daac279b
commit
5ed4ad81c3
|
@ -57,7 +57,7 @@ void AudioStreamPlaybackOGGVorbis::_mix_internal(AudioFrame *p_buffer, int p_fra
|
|||
|
||||
if (todo) {
|
||||
//end of file!
|
||||
if (vorbis_stream->loop) {
|
||||
if (vorbis_stream->loop && mixed > 0) {
|
||||
//loop
|
||||
seek(vorbis_stream->loop_offset);
|
||||
loops++;
|
||||
|
|
Loading…
Reference in a new issue