aboutsummaryrefslogtreecommitdiff
path: root/src/audio_core/audio_render_manager.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-09-16 09:50:32 -0400
committerLioncash <mathew1800@gmail.com>2022-09-16 09:50:32 -0400
commit7ed5490b2f44c4be7e34182319fcc7de3d91ae38 (patch)
treed100e0dcd6c14c734eebdb0a6eb65af5fb9abb1f /src/audio_core/audio_render_manager.h
parent7ee4876f1717f3048da21f7185106b192dbec1ee (diff)
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 7119e1b992..bf48371903 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{};
};