Fix music not stopping while spinning the wheel
This commit is contained in:
@@ -844,11 +844,15 @@ void ScreenSelectMusic::AfterMusicChange()
|
|||||||
case TYPE_SONG:
|
case TYPE_SONG:
|
||||||
{
|
{
|
||||||
// Don't stop music if it's already playing the right file.
|
// Don't stop music if it's already playing the right file.
|
||||||
// SOUNDMAN->StopMusic();
|
if( SOUNDMAN->GetMusicPath() != pSong->GetMusicPath() )
|
||||||
m_fPlaySampleCountdown = SAMPLE_MUSIC_DELAY;
|
{
|
||||||
m_sSampleMusicToPlay = pSong->GetMusicPath();
|
SOUNDMAN->StopMusic();
|
||||||
m_fSampleStartSeconds = pSong->m_fMusicSampleStartSeconds;
|
|
||||||
m_fSampleLengthSeconds = pSong->m_fMusicSampleLengthSeconds;
|
m_fPlaySampleCountdown = SAMPLE_MUSIC_DELAY;
|
||||||
|
m_sSampleMusicToPlay = pSong->GetMusicPath();
|
||||||
|
m_fSampleStartSeconds = pSong->m_fMusicSampleStartSeconds;
|
||||||
|
m_fSampleLengthSeconds = pSong->m_fMusicSampleLengthSeconds;
|
||||||
|
}
|
||||||
|
|
||||||
for( int pn = 0; pn < NUM_PLAYERS; ++pn)
|
for( int pn = 0; pn < NUM_PLAYERS; ++pn)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user