diff options
author | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2024-01-28 18:45:01 +0100 |
---|---|---|
committer | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2024-01-28 19:51:43 +0100 |
commit | 19a2f12692f2ba871b4bec7c56757a455bf03e7d (patch) | |
tree | 52aa105751bffd4b9bb671e307c3922bc0d0a6a0 /src/audio_core/adsp/apps/audio_renderer/audio_renderer.cpp | |
parent | Merge pull request #12808 from t895/uri-moment (diff) | |
download | yuzu-19a2f12692f2ba871b4bec7c56757a455bf03e7d.tar yuzu-19a2f12692f2ba871b4bec7c56757a455bf03e7d.tar.gz yuzu-19a2f12692f2ba871b4bec7c56757a455bf03e7d.tar.bz2 yuzu-19a2f12692f2ba871b4bec7c56757a455bf03e7d.tar.lz yuzu-19a2f12692f2ba871b4bec7c56757a455bf03e7d.tar.xz yuzu-19a2f12692f2ba871b4bec7c56757a455bf03e7d.tar.zst yuzu-19a2f12692f2ba871b4bec7c56757a455bf03e7d.zip |
Diffstat (limited to 'src/audio_core/adsp/apps/audio_renderer/audio_renderer.cpp')
-rw-r--r-- | src/audio_core/adsp/apps/audio_renderer/audio_renderer.cpp | 7 |
1 files changed, 5 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 ef301d8b4..7a76c3d0b 100644 --- a/src/audio_core/adsp/apps/audio_renderer/audio_renderer.cpp +++ b/src/audio_core/adsp/apps/audio_renderer/audio_renderer.cpp @@ -89,11 +89,13 @@ u32 AudioRenderer::Receive(Direction dir) { } void AudioRenderer::SetCommandBuffer(s32 session_id, CpuAddr buffer, u64 size, u64 time_limit, - u64 applet_resource_user_id, bool reset) noexcept { + u64 applet_resource_user_id, Kernel::KProcess* process, + 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].process = process; command_buffers[session_id].reset_buffer = reset; } @@ -173,7 +175,8 @@ void AudioRenderer::Main(std::stop_token stop_token) { // If there are no remaining commands (from the previous list), // this is a new command list, initialize it. if (command_buffer.remaining_command_count == 0) { - command_list_processor.Initialize(system, command_buffer.buffer, + command_list_processor.Initialize(system, *command_buffer.process, + command_buffer.buffer, command_buffer.size, streams[index]); } |