mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-26 18:25:50 +01:00
audio_renderer: Make GetCommandBuffer() take a u32
This function is only ever called with unsigned types, and all of the other interface functions take session_id as a u32, so this makes the class a little more consistent.
This commit is contained in:
parent
8d4458ef24
commit
c891497b61
@ -47,7 +47,7 @@ RenderMessage AudioRenderer_Mailbox::ADSPWaitMessage() {
|
|||||||
return msg;
|
return msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
CommandBuffer& AudioRenderer_Mailbox::GetCommandBuffer(const s32 session_id) {
|
CommandBuffer& AudioRenderer_Mailbox::GetCommandBuffer(const u32 session_id) {
|
||||||
return command_buffers[session_id];
|
return command_buffers[session_id];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ public:
|
|||||||
* @param session_id - The session id to get (0 or 1).
|
* @param session_id - The session id to get (0 or 1).
|
||||||
* @return The command buffer.
|
* @return The command buffer.
|
||||||
*/
|
*/
|
||||||
CommandBuffer& GetCommandBuffer(s32 session_id);
|
CommandBuffer& GetCommandBuffer(u32 session_id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the command buffer with the given session id (0 or 1).
|
* Set the command buffer with the given session id (0 or 1).
|
||||||
|
Loading…
Reference in New Issue
Block a user