aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/audio_core/audio_render_manager.h
diff options
context:
space:
mode:
authorLioncash <[email protected]>2022-09-16 09:50:32 -0400
committerLioncash <[email protected]>2022-09-16 09:50:32 -0400
commit36c77761cfeeab1afbc6a41bc868eeb4e9079c65 (patch)
treed100e0dcd6c14c734eebdb0a6eb65af5fb9abb1f /src/audio_core/audio_render_manager.h
parent7a5d235d944bb3837abb0be649303a5c15ea36f5 (diff)
downloadyuzu-mainline-36c77761cfeeab1afbc6a41bc868eeb4e9079c65.tar.gz
yuzu-mainline-36c77761cfeeab1afbc6a41bc868eeb4e9079c65.zip
audio_render_manager: Mark several functions as const
Diffstat (limited to 'src/audio_core/audio_render_manager.h')
-rw-r--r--src/audio_core/audio_render_manager.h6
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{};
};