diff options
Diffstat (limited to 'src/audio_core/audio_renderer.cpp')
| -rw-r--r-- | src/audio_core/audio_renderer.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/audio_core/audio_renderer.cpp b/src/audio_core/audio_renderer.cpp index a3ff819e1..56dc892b1 100644 --- a/src/audio_core/audio_renderer.cpp +++ b/src/audio_core/audio_renderer.cpp | |||
| @@ -27,12 +27,13 @@ AudioRenderer::AudioRenderer(Core::Timing::CoreTiming& core_timing, Core::Memory | |||
| 27 | voice_context(params.voice_count), effect_context(params.effect_count), mix_context(), | 27 | voice_context(params.voice_count), effect_context(params.effect_count), mix_context(), |
| 28 | sink_context(params.sink_count), splitter_context(), | 28 | sink_context(params.sink_count), splitter_context(), |
| 29 | voices(params.voice_count), memory{memory_}, | 29 | voices(params.voice_count), memory{memory_}, |
| 30 | command_generator(worker_params, voice_context, mix_context, splitter_context, memory), | 30 | command_generator(worker_params, voice_context, mix_context, splitter_context, effect_context, |
| 31 | memory), | ||
| 31 | temp_mix_buffer(AudioCommon::TOTAL_TEMP_MIX_SIZE) { | 32 | temp_mix_buffer(AudioCommon::TOTAL_TEMP_MIX_SIZE) { |
| 32 | behavior_info.SetUserRevision(params.revision); | 33 | behavior_info.SetUserRevision(params.revision); |
| 33 | splitter_context.Initialize(behavior_info, params.splitter_count, | 34 | splitter_context.Initialize(behavior_info, params.splitter_count, |
| 34 | params.num_splitter_send_channels); | 35 | params.num_splitter_send_channels); |
| 35 | mix_context.Initialize(behavior_info, params.submix_count + 1); | 36 | mix_context.Initialize(behavior_info, params.submix_count + 1, params.effect_count); |
| 36 | audio_out = std::make_unique<AudioCore::AudioOut>(); | 37 | audio_out = std::make_unique<AudioCore::AudioOut>(); |
| 37 | stream = | 38 | stream = |
| 38 | audio_out->OpenStream(core_timing, params.sample_rate, AudioCommon::STREAM_NUM_CHANNELS, | 39 | audio_out->OpenStream(core_timing, params.sample_rate, AudioCommon::STREAM_NUM_CHANNELS, |
| @@ -106,8 +107,8 @@ ResultCode AudioRenderer::UpdateAudioRenderer(const std::vector<u8>& input_param | |||
| 106 | } | 107 | } |
| 107 | } | 108 | } |
| 108 | 109 | ||
| 109 | auto mix_result = | 110 | auto mix_result = info_updater.UpdateMixes(mix_context, worker_params.mix_buffer_count, |
| 110 | info_updater.UpdateMixes(mix_context, worker_params.mix_buffer_count, splitter_context); | 111 | splitter_context, effect_context); |
| 111 | 112 | ||
| 112 | if (mix_result.IsError()) { | 113 | if (mix_result.IsError()) { |
| 113 | LOG_ERROR(Audio, "Failed to update mix parameters"); | 114 | LOG_ERROR(Audio, "Failed to update mix parameters"); |