summaryrefslogtreecommitdiffstats
path: root/src/audio_core/renderer/system.h
diff options
context:
space:
mode:
authorKelebek1 <eeeedddccc@hotmail.co.uk>2024-01-28 18:45:01 +0100
committerKelebek1 <eeeedddccc@hotmail.co.uk>2024-01-28 19:51:43 +0100
commit19a2f12692f2ba871b4bec7c56757a455bf03e7d (patch)
tree52aa105751bffd4b9bb671e307c3922bc0d0a6a0 /src/audio_core/renderer/system.h
parentMerge pull request #12808 from t895/uri-moment (diff)
downloadyuzu-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/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;
namespace Kernel {
class KEvent;
+class KProcess;
class KTransferMemory;
} // namespace Kernel
@@ -80,7 +81,8 @@ public:
*/
Result Initialize(const AudioRendererParameterInternal& params,
Kernel::KTransferMemory* transfer_memory, u64 transfer_memory_size,
- u32 process_handle, u64 applet_resource_user_id, s32 session_id);
+ u32 process_handle, Kernel::KProcess& process, u64 applet_resource_user_id,
+ s32 session_id);
/**
* Finalize the system.
@@ -275,6 +277,8 @@ private:
Common::Event terminate_event{};
/// Does what locks do
std::mutex lock{};
+ /// Process this audio render is operating within, used for memory reads/writes.
+ Kernel::KProcess* process{};
/// Handle for the process for this system, unused
u32 process_handle{};
/// Applet resource id for this system, unused