diff options
| author | Dentomologist <dentomologist@gmail.com> | 2026-03-23 16:30:30 -0700 |
|---|---|---|
| committer | Dentomologist <dentomologist@gmail.com> | 2026-03-23 16:30:30 -0700 |
| commit | f5dfb7e3d36ce24551ed0bb886b79f3f192dac9d (patch) | |
| tree | 2d26de0e4d3728a40b1db5ca23bd76beeecdb0eb /Source/Core/AudioCommon/AudioCommon.cpp | |
| parent | c05b231015375a88ecb4c4eea69862c8c75b809c (diff) | |
AudioCommon: Use left const for non-pointer variables
Diffstat (limited to 'Source/Core/AudioCommon/AudioCommon.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/AudioCommon.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |
