From d7019d8307bf8db1d985e3a537bd83289cf1a3de Mon Sep 17 00:00:00 2001 From: Chloe Marcec Date: Sat, 28 Nov 2020 23:25:28 +1100 Subject: audio_core: Remove temp_mix_buffer It's unused and doesn't need to be initialized --- src/audio_core/audio_renderer.cpp | 3 +-- src/audio_core/audio_renderer.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src/audio_core') diff --git a/src/audio_core/audio_renderer.cpp b/src/audio_core/audio_renderer.cpp index e1ded84e0..5f532ed31 100644 --- a/src/audio_core/audio_renderer.cpp +++ b/src/audio_core/audio_renderer.cpp @@ -79,8 +79,7 @@ AudioRenderer::AudioRenderer(Core::Timing::CoreTiming& core_timing, Core::Memory sink_context(params.sink_count), splitter_context(), voices(params.voice_count), memory{memory_}, command_generator(worker_params, voice_context, mix_context, splitter_context, effect_context, - memory), - temp_mix_buffer(AudioCommon::TOTAL_TEMP_MIX_SIZE) { + memory) { behavior_info.SetUserRevision(params.revision); splitter_context.Initialize(behavior_info, params.splitter_count, params.num_splitter_send_channels); diff --git a/src/audio_core/audio_renderer.h b/src/audio_core/audio_renderer.h index a85219045..54ac68b80 100644 --- a/src/audio_core/audio_renderer.h +++ b/src/audio_core/audio_renderer.h @@ -73,7 +73,6 @@ private: Core::Memory::Memory& memory; CommandGenerator command_generator; std::size_t elapsed_frame_count{}; - std::vector temp_mix_buffer{}; }; } // namespace AudioCore -- cgit v1.2.3