AudioCommon: Use left const for non-pointer variables

This commit is contained in:
Dentomologist
2026-03-23 16:30:30 -07:00
parent c05b231015
commit f5dfb7e3d3
6 changed files with 22 additions and 22 deletions

View File

@@ -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);
}