allow disabling pmp.bAlignBeat. This isn't needed with menu music that already loop seemlessly, and it makes the music take longer to start playing and can make some effects goofy.

This commit is contained in:
Glenn Maynard
2008-08-09 22:47:58 +00:00
parent c434dee534
commit 87fe097f85
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -29,6 +29,7 @@ ScreenWithMenuElements::ScreenWithMenuElements()
void ScreenWithMenuElements::Init()
{
PLAY_MUSIC.Load( m_sName, "PlayMusic" );
MUSIC_ALIGN_BEAT.Load( m_sName, "MusicAlignBeat" );
CANCEL_TRANSITIONS_OUT.Load( m_sName, "CancelTransitionsOut" );
TIMER_SECONDS.Load( m_sName, "TimerSeconds" );
TIMER_METRICS_GROUP.Load( m_sName, "TimerMetricsGroup" );
@@ -195,6 +196,7 @@ void ScreenWithMenuElements::StartPlayingMusic()
{
GameSoundManager::PlayMusicParams pmp;
pmp.sFile = m_sPathToMusic;
pmp.bAlignBeat = MUSIC_ALIGN_BEAT;
SOUND->PlayMusic( pmp );
}
}