summaryrefslogtreecommitdiff
path: root/src/audio_core/renderer/system.h
diff options
context:
space:
mode:
authorGravatar Kelebek12024-01-28 17:45:01 +0000
committerGravatar Kelebek12024-01-28 18:51:43 +0000
commit19a2f12692f2ba871b4bec7c56757a455bf03e7d (patch)
tree52aa105751bffd4b9bb671e307c3922bc0d0a6a0 /src/audio_core/renderer/system.h
parentMerge pull request #12808 from t895/uri-moment (diff)
downloadyuzu-19a2f12692f2ba871b4bec7c56757a455bf03e7d.tar.gz
yuzu-19a2f12692f2ba871b4bec7c56757a455bf03e7d.tar.xz
yuzu-19a2f12692f2ba871b4bec7c56757a455bf03e7d.zip
Use the input process handle to get the correct application's memory
Diffstat (limited to 'src/audio_core/renderer/system.h')
-rw-r--r--src/audio_core/renderer/system.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/audio_core/renderer/system.h b/src/audio_core/renderer/system.h
index 8a8341710..753a0b796 100644
--- a/src/audio_core/renderer/system.h
+++ b/src/audio_core/renderer/system.h
@@ -29,6 +29,7 @@ class System;
29 29
30namespace Kernel { 30namespace Kernel {
31class KEvent; 31class KEvent;
32class KProcess;
32class KTransferMemory; 33class KTransferMemory;
33} // namespace Kernel 34} // namespace Kernel
34 35
@@ -80,7 +81,8 @@ public:
80 */ 81 */
81 Result Initialize(const AudioRendererParameterInternal& params, 82 Result Initialize(const AudioRendererParameterInternal& params,
82 Kernel::KTransferMemory* transfer_memory, u64 transfer_memory_size, 83 Kernel::KTransferMemory* transfer_memory, u64 transfer_memory_size,
83 u32 process_handle, u64 applet_resource_user_id, s32 session_id); 84 u32 process_handle, Kernel::KProcess& process, u64 applet_resource_user_id,
85 s32 session_id);
84 86
85 /** 87 /**
86 * Finalize the system. 88 * Finalize the system.
@@ -275,6 +277,8 @@ private:
275 Common::Event terminate_event{}; 277 Common::Event terminate_event{};
276 /// Does what locks do 278 /// Does what locks do
277 std::mutex lock{}; 279 std::mutex lock{};
280 /// Process this audio render is operating within, used for memory reads/writes.
281 Kernel::KProcess* process{};
278 /// Handle for the process for this system, unused 282 /// Handle for the process for this system, unused
279 u32 process_handle{}; 283 u32 process_handle{};
280 /// Applet resource id for this system, unused 284 /// Applet resource id for this system, unused