mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-28 12:51:52 +01:00
- Fix for music only playing one song and stopping.
This commit is contained in:
parent
756438d4d4
commit
e9341fd458
@ -102,14 +102,14 @@ void MusicPlayer::Tick(bool attenuate)
|
||||
{
|
||||
SetVolume(m_music_current_volume + m_fade_rate > m_music_volume ? m_music_volume
|
||||
: m_music_current_volume + m_fade_rate);
|
||||
if(!MusicFile.IsPlaying())
|
||||
Next();
|
||||
}
|
||||
else if(attenuate && m_music_current_volume > 0)
|
||||
{
|
||||
SetVolume(m_music_current_volume - m_fade_rate < 0 ? 0
|
||||
: m_music_current_volume - m_fade_rate);
|
||||
}
|
||||
if(!attenuate && !MusicFile.IsPlaying())
|
||||
Next();
|
||||
}
|
||||
|
||||
void MusicPlayer::LoadCurrentFile()
|
||||
|
Loading…
Reference in New Issue
Block a user