From f5dfb7e3d36ce24551ed0bb886b79f3f192dac9d Mon Sep 17 00:00:00 2001 From: Dentomologist Date: Mon, 23 Mar 2026 16:30:30 -0700 Subject: AudioCommon: Use left const for non-pointer variables --- Source/Core/AudioCommon/AudioCommon.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Core/AudioCommon/AudioCommon.cpp') diff --git a/Source/Core/AudioCommon/AudioCommon.cpp b/Source/Core/AudioCommon/AudioCommon.cpp index 5d5de977b5..73e1094a69 100644 --- a/Source/Core/AudioCommon/AudioCommon.cpp +++ b/Source/Core/AudioCommon/AudioCommon.cpp @@ -167,7 +167,7 @@ void UpdateSoundStream(Core::System& system) if (sound_stream) { - int const volume = + const int volume = Config::Get(Config::MAIN_AUDIO_MUTED) ? 0 : Config::Get(Config::MAIN_AUDIO_VOLUME); sound_stream->SetVolume(volume); } @@ -216,7 +216,7 @@ void StartAudioDump(Core::System& system) { const SoundStream* const sound_stream = system.GetSoundStream(); - std::time_t const start_time = std::time(nullptr); + const std::time_t start_time = std::time(nullptr); std::string path_prefix = File::GetUserPath(D_DUMPAUDIO_IDX) + SConfig::GetInstance().GetGameID(); @@ -270,7 +270,7 @@ void DecreaseVolume(Core::System& system, unsigned short offset) void ToggleMuteVolume(Core::System& system) { - bool const isMuted = Config::Get(Config::MAIN_AUDIO_MUTED); + const bool isMuted = Config::Get(Config::MAIN_AUDIO_MUTED); Config::SetBaseOrCurrent(Config::MAIN_AUDIO_MUTED, !isMuted); UpdateSoundStream(system); } -- cgit v1.2.3