From 19a2f12692f2ba871b4bec7c56757a455bf03e7d Mon Sep 17 00:00:00 2001 From: Kelebek1 Date: Sun, 28 Jan 2024 17:45:01 +0000 Subject: Use the input process handle to get the correct application's memory --- src/audio_core/adsp/apps/audio_renderer/command_list_processor.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/audio_core/adsp/apps/audio_renderer/command_list_processor.h') diff --git a/src/audio_core/adsp/apps/audio_renderer/command_list_processor.h b/src/audio_core/adsp/apps/audio_renderer/command_list_processor.h index 4e5fb793e..944e82505 100644 --- a/src/audio_core/adsp/apps/audio_renderer/command_list_processor.h +++ b/src/audio_core/adsp/apps/audio_renderer/command_list_processor.h @@ -16,6 +16,10 @@ class Memory; class System; } // namespace Core +namespace Kernel { +class KProcess; +} + namespace AudioCore { namespace Sink { class SinkStream; @@ -40,7 +44,8 @@ public: * @param size - The size of the buffer. * @param stream - The stream to be used for sending the samples. */ - void Initialize(Core::System& system, CpuAddr buffer, u64 size, Sink::SinkStream* stream); + void Initialize(Core::System& system, Kernel::KProcess& process, CpuAddr buffer, u64 size, + Sink::SinkStream* stream); /** * Set the maximum processing time for this command list. -- cgit v1.2.3