You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-20 14:45:44 +00:00
Fix empty audio infinite loop
This commit is contained in:
@@ -57,7 +57,7 @@ void AudioStreamPlaybackOGGVorbis::_mix_internal(AudioFrame *p_buffer, int p_fra
|
|||||||
|
|
||||||
if (todo) {
|
if (todo) {
|
||||||
//end of file!
|
//end of file!
|
||||||
if (vorbis_stream->loop) {
|
if (vorbis_stream->loop && mixed > 0) {
|
||||||
//loop
|
//loop
|
||||||
seek(vorbis_stream->loop_offset);
|
seek(vorbis_stream->loop_offset);
|
||||||
loops++;
|
loops++;
|
||||||
|
|||||||
Reference in New Issue
Block a user