Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
36c77761
There was an error fetching the commit references. Please try again later.
Commit
36c77761
authored
2 years ago
by
Lioncash
Browse files
Options
Downloads
Patches
Plain Diff
audio_render_manager: Mark several functions as const
parent
7a5d235d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/audio_core/audio_render_manager.cpp
+3
-3
3 additions, 3 deletions
src/audio_core/audio_render_manager.cpp
src/audio_core/audio_render_manager.h
+3
-3
3 additions, 3 deletions
src/audio_core/audio_render_manager.h
with
6 additions
and
6 deletions
src/audio_core/audio_render_manager.cpp
+
3
−
3
View file @
36c77761
...
...
@@ -25,8 +25,8 @@ SystemManager& Manager::GetSystemManager() {
return
*
system_manager
;
}
auto
Manager
::
GetWorkBufferSize
(
const
AudioRendererParameterInternal
&
params
,
u64
&
out_count
)
->
Resul
t
{
Result
Manager
::
GetWorkBufferSize
(
const
AudioRendererParameterInternal
&
params
,
u64
&
out_count
)
cons
t
{
if
(
!
CheckValidRevision
(
params
.
revision
))
{
return
Service
::
Audio
::
ERR_INVALID_REVISION
;
}
...
...
@@ -54,7 +54,7 @@ void Manager::ReleaseSessionId(const s32 session_id) {
session_ids
[
--
session_count
]
=
session_id
;
}
u32
Manager
::
GetSessionCount
()
{
u32
Manager
::
GetSessionCount
()
const
{
std
::
scoped_lock
l
{
session_lock
};
return
session_count
;
}
...
...
This diff is collapsed.
Click to expand it.
src/audio_core/audio_render_manager.h
+
3
−
3
View file @
36c77761
...
...
@@ -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
{};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment