diff options
author | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2023-09-07 21:53:48 +0200 |
---|---|---|
committer | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2023-09-07 21:53:48 +0200 |
commit | 4baaaf6a99ad763958bbc0ffa6d30ce75309f80a (patch) | |
tree | 2594a4bdfefae0ef640dff868a6a229b176b714b /src/audio_core/adsp/apps/audio_renderer/audio_renderer.cpp | |
parent | Merge pull request #11428 from Kelebek1/adsp_rework (diff) | |
download | yuzu-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/adsp/apps/audio_renderer/audio_renderer.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/audio_core/adsp/apps/audio_renderer/audio_renderer.cpp b/src/audio_core/adsp/apps/audio_renderer/audio_renderer.cpp index 3da342ea3..2e549bc6f 100644 --- a/src/audio_core/adsp/apps/audio_renderer/audio_renderer.cpp +++ b/src/audio_core/adsp/apps/audio_renderer/audio_renderer.cpp @@ -88,8 +88,13 @@ MailboxMessage AudioRenderer::Receive(Direction dir, bool block) { return mailbox.Receive(dir, block); } -void AudioRenderer::SetCommandBuffer(s32 session_id, CommandBuffer& buffer) noexcept { - command_buffers[session_id] = buffer; +void AudioRenderer::SetCommandBuffer(s32 session_id, CpuAddr buffer, u64 size, u64 time_limit, + u64 applet_resource_user_id, bool reset) noexcept { + command_buffers[session_id].buffer = buffer; + command_buffers[session_id].size = size; + command_buffers[session_id].time_limit = time_limit; + command_buffers[session_id].applet_resource_user_id = applet_resource_user_id; + command_buffers[session_id].reset_buffer = reset; } u32 AudioRenderer::GetRemainCommandCount(s32 session_id) const noexcept { |