diff options
| author | Lioncash <mathew1800@gmail.com> | 2022-09-16 09:38:17 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2022-09-16 09:45:51 -0400 |
| commit | d1f3c121a04fdc1e4d8840ef6a5bbb65212ed7a7 (patch) | |
| tree | c5f475b24fa39614aa9257d248928fb51b152520 /src/audio_core/out/audio_out_system.h | |
| parent | e9109cb5f214218909c978b7fbd5a7cb71bdf890 (diff) | |
audio_out: Mark several functions as const
These don't affect class state, so we can mark them as such.
Diffstat (limited to 'src/audio_core/out/audio_out_system.h')
| -rw-r--r-- | src/audio_core/out/audio_out_system.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/audio_core/out/audio_out_system.h b/src/audio_core/out/audio_out_system.h index 205ead861..0817b2f37 100644 --- a/src/audio_core/out/audio_out_system.h +++ b/src/audio_core/out/audio_out_system.h @@ -68,7 +68,7 @@ public: * * @return The default audio output device name. */ - std::string_view GetDefaultOutputDeviceName(); + std::string_view GetDefaultOutputDeviceName() const; /** * Is the given initialize config valid? @@ -77,7 +77,7 @@ public: * @param in_params - Input parameters, see AudioOutParameter. * @return Result code. */ - Result IsConfigValid(std::string_view device_name, const AudioOutParameter& in_params); + Result IsConfigValid(std::string_view device_name, const AudioOutParameter& in_params) const; /** * Initialize this system. @@ -209,14 +209,14 @@ public: * @param tag - Unique tag to search for. * @return True if the buffer is in the system, otherwise false. */ - bool ContainsAudioBuffer(u64 tag); + bool ContainsAudioBuffer(u64 tag) const; /** * Get the maximum number of usable buffers (default 32). * * @return The number of buffers. */ - u32 GetBufferCount(); + u32 GetBufferCount() const; /** * Get the total number of samples played by this system. |
