mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 22:20:33 +00:00
Fade water sounds more softly
This commit is contained in:
parent
9cfa2eeab8
commit
1cafef7bdb
@ -795,10 +795,10 @@ namespace MWSound
|
||||
break;
|
||||
case WaterSoundAction::SetVolume:
|
||||
mNearWaterSound->setVolume(update.mVolume * sfx->getVolume());
|
||||
mNearWaterSound->setFade(sSfxFadeInDuration, 1.0f, Play_FadeExponential);
|
||||
break;
|
||||
case WaterSoundAction::FinishSound:
|
||||
mOutput->finishSound(mNearWaterSound);
|
||||
mNearWaterSound = nullptr;
|
||||
mNearWaterSound->setFade(sSfxFadeOutDuration, 0.0f, Play_FadeExponential | Play_StopAtFadeEnd);
|
||||
break;
|
||||
case WaterSoundAction::PlaySound:
|
||||
if (mNearWaterSound)
|
||||
|
Loading…
x
Reference in New Issue
Block a user