From 703c31fb4017251ea4dd57faf99baeaa67fd3440 Mon Sep 17 00:00:00 2001 From: DeeJayLSP Date: Sun, 25 Aug 2024 14:18:26 -0300 Subject: [PATCH] WAV: Add missing break on `get_length()` --- scene/resources/audio_stream_wav.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/resources/audio_stream_wav.cpp b/scene/resources/audio_stream_wav.cpp index e2ac0e6d269..de6a0695675 100644 --- a/scene/resources/audio_stream_wav.cpp +++ b/scene/resources/audio_stream_wav.cpp @@ -560,6 +560,7 @@ double AudioStreamWAV::get_length() const { qoa_desc desc = { 0, 0, 0, { { { 0 }, { 0 } } } }; qoa_decode_header((uint8_t *)data + DATA_PAD, data_bytes, &desc); len = desc.samples * desc.channels; + break; } if (stereo) {