summaryrefslogtreecommitdiff
path: root/src/audio_core/renderer/system.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio_core/renderer/system.cpp')
-rw-r--r--src/audio_core/renderer/system.cpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/audio_core/renderer/system.cpp b/src/audio_core/renderer/system.cpp
index 8f02754c5..d29754634 100644
--- a/src/audio_core/renderer/system.cpp
+++ b/src/audio_core/renderer/system.cpp
@@ -609,17 +609,11 @@ void System::SendCommandToDsp() {
609 time_limit_percent = 70.0f; 609 time_limit_percent = 70.0f;
610 } 610 }
611 611
612 AudioRenderer::CommandBuffer command_buffer{ 612 auto time_limit{
613 .buffer{translated_addr}, 613 static_cast<u64>((time_limit_percent / 100) * 2'880'000.0 *
614 .size{command_size}, 614 (static_cast<f32>(render_time_limit_percent) / 100.0f))};
615 .time_limit{ 615 audio_renderer.SetCommandBuffer(session_id, translated_addr, command_size, time_limit,
616 static_cast<u64>((time_limit_percent / 100) * 2'880'000.0 * 616 applet_resource_user_id, reset_command_buffers);
617 (static_cast<f32>(render_time_limit_percent) / 100.0f))},
618 .applet_resource_user_id{applet_resource_user_id},
619 .reset_buffer{reset_command_buffers},
620 };
621
622 audio_renderer.SetCommandBuffer(session_id, command_buffer);
623 reset_command_buffers = false; 617 reset_command_buffers = false;
624 command_buffer_size = command_size; 618 command_buffer_size = command_size;
625 if (remaining_command_count == 0) { 619 if (remaining_command_count == 0) {