Skip to content

Commit

Permalink
audio loading fix
Browse files Browse the repository at this point in the history
  • Loading branch information
geneotech committed Jul 25, 2024
1 parent 276cf1a commit 228037c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/work.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5227,13 +5227,11 @@ work_result work(

auto audio_renderer = std::optional<augs::audio_renderer>();

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(
Expand Down

0 comments on commit 228037c

Please sign in to comment.