diff options
author | Viktor Szépe <viktor@szepe.net> | 2024-01-16 01:09:00 +0100 |
---|---|---|
committer | Viktor Szépe <viktor@szepe.net> | 2024-01-16 01:09:00 +0100 |
commit | 90ab89a0b0174f8df559b79dc06a03479d959f93 (patch) | |
tree | 3d11a790e44945e309f0e68f5332b33b42e72bbb /src/audio_core/device/device_session.h | |
parent | Fix typos in arrays.xml (diff) | |
parent | Merge pull request #12681 from t895/stick-toggles (diff) | |
download | yuzu-90ab89a0b0174f8df559b79dc06a03479d959f93.tar yuzu-90ab89a0b0174f8df559b79dc06a03479d959f93.tar.gz yuzu-90ab89a0b0174f8df559b79dc06a03479d959f93.tar.bz2 yuzu-90ab89a0b0174f8df559b79dc06a03479d959f93.tar.lz yuzu-90ab89a0b0174f8df559b79dc06a03479d959f93.tar.xz yuzu-90ab89a0b0174f8df559b79dc06a03479d959f93.tar.zst yuzu-90ab89a0b0174f8df559b79dc06a03479d959f93.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 |