diff options
| author | robojumper <robojumper@gmail.com> | 2025-09-13 11:48:25 +0200 |
|---|---|---|
| committer | robojumper <robojumper@gmail.com> | 2025-09-13 11:48:25 +0200 |
| commit | c52e38c1c5956637dad04d80b6dd7cbed8b1b36f (patch) | |
| tree | 9bb17bc58aebb8f833d06878faf33bf609dfa46b /src/egg/audio/eggAudioSystem.cpp | |
| parent | b8ba5a956c4c9c3f75b8cbb16ccc1ffcb7299570 (diff) | |
Review feedback, cleanup
Diffstat (limited to 'src/egg/audio/eggAudioSystem.cpp')
| -rw-r--r-- | src/egg/audio/eggAudioSystem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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)); } } |
