Fix fading in and out when switching to fast music
This commit is contained in:
parent
3c4479b63a
commit
a1e4bbc3c1
@ -254,6 +254,8 @@ void MusicInformation::update(float dt)
|
||||
float fraction=m_time_since_faster/m_faster_time;
|
||||
m_normal_music->setVolume(1-fraction);
|
||||
m_fast_music->setVolume(fraction);
|
||||
m_normal_music->update();
|
||||
m_fast_music->update();
|
||||
break;
|
||||
}
|
||||
case SOUND_FASTER: {
|
||||
|
Loading…
Reference in New Issue
Block a user