mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-26 01:05:39 +01:00
audio_device: Mark GetDeviceVolume as const
This doesn't modify instance state.
This commit is contained in:
parent
36c77761cf
commit
b862d5d8d8
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user