2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

audio_renderer: Pass command buffer by const reference

This is just being copied and isn't modified at all.
This commit is contained in:
Lioncash 2022-09-16 10:06:51 -04:00
parent d5d6322640
commit 7e3cdfc453
4 changed files with 4 additions and 4 deletions

View file

@ -50,7 +50,7 @@ u32 ADSP::GetRemainCommandCount(const u32 session_id) const {
return render_mailbox.GetRemainCommandCount(session_id); return render_mailbox.GetRemainCommandCount(session_id);
} }
void ADSP::SendCommandBuffer(const u32 session_id, CommandBuffer& command_buffer) { void ADSP::SendCommandBuffer(const u32 session_id, const CommandBuffer& command_buffer) {
render_mailbox.SetCommandBuffer(session_id, command_buffer); render_mailbox.SetCommandBuffer(session_id, command_buffer);
} }

View file

@ -131,7 +131,7 @@ public:
* @param session_id - The session id to check (0 or 1). * @param session_id - The session id to check (0 or 1).
* @param command_buffer - The command buffer to process. * @param command_buffer - The command buffer to process.
*/ */
void SendCommandBuffer(u32 session_id, CommandBuffer& command_buffer); void SendCommandBuffer(u32 session_id, const CommandBuffer& command_buffer);
/** /**
* Clear the command buffers (does not clear the time taken or the remaining command count) * Clear the command buffers (does not clear the time taken or the remaining command count)

View file

@ -51,7 +51,7 @@ CommandBuffer& AudioRenderer_Mailbox::GetCommandBuffer(const s32 session_id) {
return command_buffers[session_id]; return command_buffers[session_id];
} }
void AudioRenderer_Mailbox::SetCommandBuffer(const u32 session_id, CommandBuffer& buffer) { void AudioRenderer_Mailbox::SetCommandBuffer(const u32 session_id, const CommandBuffer& buffer) {
command_buffers[session_id] = buffer; command_buffers[session_id] = buffer;
} }

View file

@ -91,7 +91,7 @@ public:
* @param session_id - The session id to get (0 or 1). * @param session_id - The session id to get (0 or 1).
* @param buffer - The command buffer to set. * @param buffer - The command buffer to set.
*/ */
void SetCommandBuffer(u32 session_id, CommandBuffer& buffer); void SetCommandBuffer(u32 session_id, const CommandBuffer& buffer);
/** /**
* Get the total render time taken for the last command lists sent. * Get the total render time taken for the last command lists sent.