diff options
author | Charles Lombardo <clombardo169@gmail.com> | 2024-01-15 19:52:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-15 19:52:01 +0100 |
commit | 34db13486afb055e39b5d92ddc288a7078816daf (patch) | |
tree | 140f4be1c0f6be36d4317253c60f51efabc1b31f /src/audio_core/in | |
parent | Merge pull request #12652 from liamwhite/huge-pile-of-spirv-spaghetti (diff) | |
parent | audio: fetch process object from handle table (diff) | |
download | yuzu-34db13486afb055e39b5d92ddc288a7078816daf.tar yuzu-34db13486afb055e39b5d92ddc288a7078816daf.tar.gz yuzu-34db13486afb055e39b5d92ddc288a7078816daf.tar.bz2 yuzu-34db13486afb055e39b5d92ddc288a7078816daf.tar.lz yuzu-34db13486afb055e39b5d92ddc288a7078816daf.tar.xz yuzu-34db13486afb055e39b5d92ddc288a7078816daf.tar.zst yuzu-34db13486afb055e39b5d92ddc288a7078816daf.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio_core/in/audio_in_system.cpp | 2 | ||||
-rw-r--r-- | src/audio_core/in/audio_in_system.h | 13 |
2 files changed, 8 insertions, 7 deletions
diff --git a/src/audio_core/in/audio_in_system.cpp b/src/audio_core/in/audio_in_system.cpp index 579129121..b2dd3ef9f 100644 --- a/src/audio_core/in/audio_in_system.cpp +++ b/src/audio_core/in/audio_in_system.cpp @@ -57,7 +57,7 @@ Result System::IsConfigValid(const std::string_view device_name, } Result System::Initialize(std::string device_name, const AudioInParameter& in_params, - const u32 handle_, const u64 applet_resource_user_id_) { + Kernel::KProcess* handle_, const u64 applet_resource_user_id_) { auto result{IsConfigValid(device_name, in_params)}; if (result.IsError()) { return result; diff --git a/src/audio_core/in/audio_in_system.h b/src/audio_core/in/audio_in_system.h index 1c5154638..ee048190c 100644 --- a/src/audio_core/in/audio_in_system.h +++ b/src/audio_core/in/audio_in_system.h @@ -19,7 +19,8 @@ class System; namespace Kernel { class KEvent; -} +class KProcess; +} // namespace Kernel namespace AudioCore::AudioIn { @@ -93,12 +94,12 @@ public: * * @param device_name - The name of the requested input device. * @param in_params - Input parameters, see AudioInParameter. - * @param handle - Unused. + * @param handle - Process handle. * @param applet_resource_user_id - Unused. * @return Result code. */ - Result Initialize(std::string device_name, const AudioInParameter& in_params, u32 handle, - u64 applet_resource_user_id); + Result Initialize(std::string device_name, const AudioInParameter& in_params, + Kernel::KProcess* handle, u64 applet_resource_user_id); /** * Start this system. @@ -244,8 +245,8 @@ public: private: /// Core system Core::System& system; - /// (Unused) - u32 handle{}; + /// Process handle + Kernel::KProcess* handle{}; /// (Unused) u64 applet_resource_user_id{}; /// Buffer event, signalled when a buffer is ready |