diff options
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)); } } |
