diff options
author | Liam <byteslice@airmail.cc> | 2024-01-12 15:35:08 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-01-12 16:03:16 +0100 |
commit | d940974789b1b8ff473440883d8c506a275b9b3b (patch) | |
tree | e859ecfe3e8c0537035972a83bf2344ebf3577b6 /src/audio_core/out | |
parent | Merge pull request #12653 from liamwhite/once-more (diff) | |
download | yuzu-d940974789b1b8ff473440883d8c506a275b9b3b.tar yuzu-d940974789b1b8ff473440883d8c506a275b9b3b.tar.gz yuzu-d940974789b1b8ff473440883d8c506a275b9b3b.tar.bz2 yuzu-d940974789b1b8ff473440883d8c506a275b9b3b.tar.lz yuzu-d940974789b1b8ff473440883d8c506a275b9b3b.tar.xz yuzu-d940974789b1b8ff473440883d8c506a275b9b3b.tar.zst yuzu-d940974789b1b8ff473440883d8c506a275b9b3b.zip |
Diffstat (limited to 'src/audio_core/out')
-rw-r--r-- | src/audio_core/out/audio_out_system.cpp | 4 | ||||
-rw-r--r-- | src/audio_core/out/audio_out_system.h | 13 |
2 files changed, 9 insertions, 8 deletions
diff --git a/src/audio_core/out/audio_out_system.cpp b/src/audio_core/out/audio_out_system.cpp index 0adf64bd3..7b3ff4e88 100644 --- a/src/audio_core/out/audio_out_system.cpp +++ b/src/audio_core/out/audio_out_system.cpp @@ -48,8 +48,8 @@ Result System::IsConfigValid(std::string_view device_name, return Service::Audio::ResultInvalidChannelCount; } -Result System::Initialize(std::string device_name, const AudioOutParameter& in_params, u32 handle_, - u64 applet_resource_user_id_) { +Result System::Initialize(std::string device_name, const AudioOutParameter& in_params, + Kernel::KProcess* handle_, u64 applet_resource_user_id_) { auto result = IsConfigValid(device_name, in_params); if (result.IsError()) { return result; diff --git a/src/audio_core/out/audio_out_system.h b/src/audio_core/out/audio_out_system.h index b95cb91be..82aada185 100644 --- a/src/audio_core/out/audio_out_system.h +++ b/src/audio_core/out/audio_out_system.h @@ -19,7 +19,8 @@ class System; namespace Kernel { class KEvent; -} +class KProcess; +} // namespace Kernel namespace AudioCore::AudioOut { @@ -84,12 +85,12 @@ public: * * @param device_name - The name of the requested output device. * @param in_params - Input parameters, see AudioOutParameter. - * @param handle - Unused. + * @param handle - Process handle. * @param applet_resource_user_id - Unused. * @return Result code. */ - Result Initialize(std::string device_name, const AudioOutParameter& in_params, u32 handle, - u64 applet_resource_user_id); + Result Initialize(std::string device_name, const AudioOutParameter& in_params, + Kernel::KProcess* handle, u64 applet_resource_user_id); /** * Start this system. @@ -228,8 +229,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 |