From c52e38c1c5956637dad04d80b6dd7cbed8b1b36f Mon Sep 17 00:00:00 2001 From: robojumper Date: Sat, 13 Sep 2025 11:48:25 +0200 Subject: Review feedback, cleanup --- src/egg/audio/eggAudioSystem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/egg/audio/eggAudioSystem.cpp') diff --git a/src/egg/audio/eggAudioSystem.cpp b/src/egg/audio/eggAudioSystem.cpp index 4bc05c1d..844853ab 100644 --- a/src/egg/audio/eggAudioSystem.cpp +++ b/src/egg/audio/eggAudioSystem.cpp @@ -19,7 +19,7 @@ AudioSystem::~AudioSystem() {} void AudioSystem::reset(s32 ms) { if (mShutdownStatus == 0 && mResetStatus == 0) { mSavedMasterVolume = nw4r::snd::SoundSystem::GetMasterVolume(); - nw4r::snd::SoundSystem::SetMasterVolume(0.0f, ms * 16.666667f); + nw4r::snd::SoundSystem::SetMasterVolume(0.0f, ms * (1.0f / 60.f * 1000.0f)); mResetStatus = 1; } } @@ -34,7 +34,7 @@ void AudioSystem::recoverReset() { void AudioSystem::shutdown(s32 ms) { if (mShutdownStatus == 0) { mShutdownStatus = 1; - nw4r::snd::SoundSystem::SetMasterVolume(0.0f, ms * 16.666667f); + nw4r::snd::SoundSystem::SetMasterVolume(0.0f, ms * (1.0f / 60.f * 1000.0f)); } } -- cgit v1.2.3