From 228037cbf5cf0a80fa167ad83ae182cdc0822959 Mon Sep 17 00:00:00 2001 From: geneotech Date: Thu, 25 Jul 2024 22:13:14 +0200 Subject: [PATCH] audio loading fix --- src/work.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/work.cpp b/src/work.cpp index 0b0bb6569..ba1c1818d 100644 --- a/src/work.cpp +++ b/src/work.cpp @@ -5227,13 +5227,11 @@ work_result work( auto audio_renderer = std::optional(); - if (!streaming.is_loading_sounds()) { - if (const auto audio_buffer = audio_buffers.map_write_buffer()) { - audio_renderer.emplace(augs::audio_renderer { - audio_buffers.num_currently_processed_buffers(), - *audio_buffer - }); - } + if (const auto audio_buffer = audio_buffers.map_write_buffer()) { + audio_renderer.emplace(augs::audio_renderer { + audio_buffers.num_currently_processed_buffers(), + *audio_buffer + }); } advance_current_setup(