diff options
author | Lioncash <mathew1800@gmail.com> | 2022-09-16 15:52:32 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2022-09-16 15:52:34 +0200 |
commit | b862d5d8d851724e53f0da122ccfc1af1fb1c9bd (patch) | |
tree | 3ca7da4d14221c6aa5db8f0c7fd867e30e057d38 /src/audio_core/renderer | |
parent | audio_render_manager: Mark several functions as const (diff) | |
download | yuzu-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/renderer')
-rw-r--r-- | src/audio_core/renderer/audio_device.cpp | 2 | ||||
-rw-r--r-- | src/audio_core/renderer/audio_device.h | 2 |
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 |