summaryrefslogtreecommitdiffstats
path: root/src/audio_core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-09-16 15:52:32 +0200
committerLioncash <mathew1800@gmail.com>2022-09-16 15:52:34 +0200
commitb862d5d8d851724e53f0da122ccfc1af1fb1c9bd (patch)
tree3ca7da4d14221c6aa5db8f0c7fd867e30e057d38 /src/audio_core
parentaudio_render_manager: Mark several functions as const (diff)
downloadyuzu-b862d5d8d851724e53f0da122ccfc1af1fb1c9bd.tar
yuzu-b862d5d8d851724e53f0da122ccfc1af1fb1c9bd.tar.gz
yuzu-b862d5d8d851724e53f0da122ccfc1af1fb1c9bd.tar.bz2
yuzu-b862d5d8d851724e53f0da122ccfc1af1fb1c9bd.tar.lz
yuzu-b862d5d8d851724e53f0da122ccfc1af1fb1c9bd.tar.xz
yuzu-b862d5d8d851724e53f0da122ccfc1af1fb1c9bd.tar.zst
yuzu-b862d5d8d851724e53f0da122ccfc1af1fb1c9bd.zip
Diffstat (limited to 'src/audio_core')
-rw-r--r--src/audio_core/renderer/audio_device.cpp2
-rw-r--r--src/audio_core/renderer/audio_device.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/renderer/audio_device.cpp b/src/audio_core/renderer/audio_device.cpp
index d5886e55e..b2d34e45a 100644
--- a/src/audio_core/renderer/audio_device.cpp
+++ b/src/audio_core/renderer/audio_device.cpp
@@ -45,7 +45,7 @@ void AudioDevice::SetDeviceVolumes(const f32 volume) {
output_sink.SetDeviceVolume(volume);
}
-f32 AudioDevice::GetDeviceVolume([[maybe_unused]] std::string_view name) {
+f32 AudioDevice::GetDeviceVolume([[maybe_unused]] std::string_view name) const {
return output_sink.GetDeviceVolume();
}
diff --git a/src/audio_core/renderer/audio_device.h b/src/audio_core/renderer/audio_device.h
index 1f449f261..16522ad2f 100644
--- a/src/audio_core/renderer/audio_device.h
+++ b/src/audio_core/renderer/audio_device.h
@@ -73,7 +73,7 @@ public:
* @param name - Name of the device to check. Unused.
* @return Volume of the device.
*/
- f32 GetDeviceVolume(std::string_view name);
+ f32 GetDeviceVolume(std::string_view name) const;
private:
/// Backend output sink for the device