summaryrefslogtreecommitdiffstats
path: root/src/audio_core/renderer/system.cpp
diff options
context:
space:
mode:
authorKelebek1 <eeeedddccc@hotmail.co.uk>2023-09-07 21:53:48 +0200
committerKelebek1 <eeeedddccc@hotmail.co.uk>2023-09-07 21:53:48 +0200
commit4baaaf6a99ad763958bbc0ffa6d30ce75309f80a (patch)
tree2594a4bdfefae0ef640dff868a6a229b176b714b /src/audio_core/renderer/system.cpp
parentMerge pull request #11428 from Kelebek1/adsp_rework (diff)
downloadyuzu-4baaaf6a99ad763958bbc0ffa6d30ce75309f80a.tar
yuzu-4baaaf6a99ad763958bbc0ffa6d30ce75309f80a.tar.gz
yuzu-4baaaf6a99ad763958bbc0ffa6d30ce75309f80a.tar.bz2
yuzu-4baaaf6a99ad763958bbc0ffa6d30ce75309f80a.tar.lz
yuzu-4baaaf6a99ad763958bbc0ffa6d30ce75309f80a.tar.xz
yuzu-4baaaf6a99ad763958bbc0ffa6d30ce75309f80a.tar.zst
yuzu-4baaaf6a99ad763958bbc0ffa6d30ce75309f80a.zip
Diffstat (limited to '')
-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() {
time_limit_percent = 70.0f;
}
- AudioRenderer::CommandBuffer command_buffer{
- .buffer{translated_addr},
- .size{command_size},
- .time_limit{
- static_cast<u64>((time_limit_percent / 100) * 2'880'000.0 *
- (static_cast<f32>(render_time_limit_percent) / 100.0f))},
- .applet_resource_user_id{applet_resource_user_id},
- .reset_buffer{reset_command_buffers},
- };
-
- audio_renderer.SetCommandBuffer(session_id, command_buffer);
+ auto time_limit{
+ static_cast<u64>((time_limit_percent / 100) * 2'880'000.0 *
+ (static_cast<f32>(render_time_limit_percent) / 100.0f))};
+ audio_renderer.SetCommandBuffer(session_id, translated_addr, command_size, time_limit,
+ applet_resource_user_id, reset_command_buffers);
reset_command_buffers = false;
command_buffer_size = command_size;
if (remaining_command_count == 0) {