diff options
author | Lioncash <mathew1800@gmail.com> | 2022-09-16 15:50:32 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2022-09-16 15:50:32 +0200 |
commit | 36c77761cfeeab1afbc6a41bc868eeb4e9079c65 (patch) | |
tree | d100e0dcd6c14c734eebdb0a6eb65af5fb9abb1f /src/audio_core/audio_render_manager.h | |
parent | audio_in: Mark several functions as const (diff) | |
download | yuzu-36c77761cfeeab1afbc6a41bc868eeb4e9079c65.tar yuzu-36c77761cfeeab1afbc6a41bc868eeb4e9079c65.tar.gz yuzu-36c77761cfeeab1afbc6a41bc868eeb4e9079c65.tar.bz2 yuzu-36c77761cfeeab1afbc6a41bc868eeb4e9079c65.tar.lz yuzu-36c77761cfeeab1afbc6a41bc868eeb4e9079c65.tar.xz yuzu-36c77761cfeeab1afbc6a41bc868eeb4e9079c65.tar.zst yuzu-36c77761cfeeab1afbc6a41bc868eeb4e9079c65.zip |
Diffstat (limited to 'src/audio_core/audio_render_manager.h')
-rw-r--r-- | src/audio_core/audio_render_manager.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio_core/audio_render_manager.h b/src/audio_core/audio_render_manager.h index 7119e1b99..bf4837190 100644 --- a/src/audio_core/audio_render_manager.h +++ b/src/audio_core/audio_render_manager.h @@ -46,7 +46,7 @@ public: * @param out_count - Output size of the required workbuffer. * @return Result code. */ - Result GetWorkBufferSize(const AudioRendererParameterInternal& params, u64& out_count); + Result GetWorkBufferSize(const AudioRendererParameterInternal& params, u64& out_count) const; /** * Get a new session id. @@ -60,7 +60,7 @@ public: * * @return The number of active sessions. */ - u32 GetSessionCount(); + u32 GetSessionCount() const; /** * Add a renderer system to the manager. @@ -94,7 +94,7 @@ private: /// Number of active renderers u32 session_count{}; /// Lock for interacting with the sessions - std::mutex session_lock{}; + mutable std::mutex session_lock{}; /// Regularly generates commands from the registered systems for the AudioRenderer std::unique_ptr<SystemManager> system_manager{}; }; |