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/device/device_session.h | |
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/device/device_session.h')
-rw-r--r-- | src/audio_core/device/device_session.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/audio_core/device/device_session.h b/src/audio_core/device/device_session.h index 7d52f362d..f3fae2617 100644 --- a/src/audio_core/device/device_session.h +++ b/src/audio_core/device/device_session.h @@ -20,6 +20,10 @@ struct EventType; } // namespace Timing } // namespace Core +namespace Kernel { +class KProcess; +} // namespace Kernel + namespace AudioCore { namespace Sink { @@ -44,13 +48,13 @@ public: * @param sample_format - Sample format for this device's output. * @param channel_count - Number of channels for this device (2 or 6). * @param session_id - This session's id. - * @param handle - Handle for this device session (unused). + * @param handle - Process handle for this device session. * @param applet_resource_user_id - Applet resource user id for this device session (unused). * @param type - Type of this stream (Render, In, Out). * @return Result code for this call. */ Result Initialize(std::string_view name, SampleFormat sample_format, u16 channel_count, - size_t session_id, u32 handle, u64 applet_resource_user_id, + size_t session_id, Kernel::KProcess* handle, u64 applet_resource_user_id, Sink::StreamType type); /** @@ -137,8 +141,8 @@ private: u16 channel_count{}; /// Session id of this device session size_t session_id{}; - /// Handle of this device session - u32 handle{}; + /// Process handle of device memory owner + Kernel::KProcess* handle{}; /// Applet resource user id of this device session u64 applet_resource_user_id{}; /// Total number of samples played by this device session |