|
|
@ -609,17 +609,11 @@ void System::SendCommandToDsp() {
|
|
|
|
time_limit_percent = 70.0f;
|
|
|
|
time_limit_percent = 70.0f;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
AudioRenderer::CommandBuffer command_buffer{
|
|
|
|
auto time_limit{
|
|
|
|
.buffer{translated_addr},
|
|
|
|
static_cast<u64>((time_limit_percent / 100) * 2'880'000.0 *
|
|
|
|
.size{command_size},
|
|
|
|
(static_cast<f32>(render_time_limit_percent) / 100.0f))};
|
|
|
|
.time_limit{
|
|
|
|
audio_renderer.SetCommandBuffer(session_id, translated_addr, command_size, time_limit,
|
|
|
|
static_cast<u64>((time_limit_percent / 100) * 2'880'000.0 *
|
|
|
|
applet_resource_user_id, reset_command_buffers);
|
|
|
|
(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);
|
|
|
|
|
|
|
|
reset_command_buffers = false;
|
|
|
|
reset_command_buffers = false;
|
|
|
|
command_buffer_size = command_size;
|
|
|
|
command_buffer_size = command_size;
|
|
|
|
if (remaining_command_count == 0) {
|
|
|
|
if (remaining_command_count == 0) {
|
|
|
|