summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-09-23 15:07:52 +0200
committerGitHub <noreply@github.com>2022-09-23 15:07:52 +0200
commitc2c3f2c3e721d0ef1ff3140b7cf262b084ce07b6 (patch)
treed281dd335dee380cf9f868f3561511ba6963f47e /src
parentMerge pull request #8938 from lioncash/manager (diff)
parentaudio_renderer: Make GetCommandBuffer() take a u32 (diff)
downloadyuzu-c2c3f2c3e721d0ef1ff3140b7cf262b084ce07b6.tar
yuzu-c2c3f2c3e721d0ef1ff3140b7cf262b084ce07b6.tar.gz
yuzu-c2c3f2c3e721d0ef1ff3140b7cf262b084ce07b6.tar.bz2
yuzu-c2c3f2c3e721d0ef1ff3140b7cf262b084ce07b6.tar.lz
yuzu-c2c3f2c3e721d0ef1ff3140b7cf262b084ce07b6.tar.xz
yuzu-c2c3f2c3e721d0ef1ff3140b7cf262b084ce07b6.tar.zst
yuzu-c2c3f2c3e721d0ef1ff3140b7cf262b084ce07b6.zip
Diffstat (limited to 'src')
-rw-r--r--src/audio_core/renderer/adsp/audio_renderer.cpp2
-rw-r--r--src/audio_core/renderer/adsp/audio_renderer.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/renderer/adsp/audio_renderer.cpp b/src/audio_core/renderer/adsp/audio_renderer.cpp
index bafe4822a..ab2257bd8 100644
--- a/src/audio_core/renderer/adsp/audio_renderer.cpp
+++ b/src/audio_core/renderer/adsp/audio_renderer.cpp
@@ -47,7 +47,7 @@ RenderMessage AudioRenderer_Mailbox::ADSPWaitMessage() {
return msg;
}
-CommandBuffer& AudioRenderer_Mailbox::GetCommandBuffer(const s32 session_id) {
+CommandBuffer& AudioRenderer_Mailbox::GetCommandBuffer(const u32 session_id) {
return command_buffers[session_id];
}
diff --git a/src/audio_core/renderer/adsp/audio_renderer.h b/src/audio_core/renderer/adsp/audio_renderer.h
index 02e923c84..151f38c1b 100644
--- a/src/audio_core/renderer/adsp/audio_renderer.h
+++ b/src/audio_core/renderer/adsp/audio_renderer.h
@@ -83,7 +83,7 @@ public:
* @param session_id - The session id to get (0 or 1).
* @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).