Add support for #DISPLAYBPM in DWI and SM files

This commit is contained in:
Chris Danford
2003-05-23 01:14:43 +00:00
parent 167cc3aaef
commit 6ee884aed2
10 changed files with 108 additions and 17 deletions
+22
View File
@@ -167,3 +167,25 @@ void BPMDisplay::NoBPM()
m_textBPM.SetDiffuse( NORMAL_COLOR );
m_sprLabel.SetDiffuse( NORMAL_COLOR );
}
void BPMDisplay::SetBPM( const Song* pSong )
{
ASSERT( pSong );
switch( pSong->m_DisplayBPMType )
{
case Song::DISPLAY_ACTUAL:
{
float fMinBPM, fMaxBPM;
pSong->GetActualBPM( fMinBPM, fMaxBPM );
SetBPMRange( fMinBPM, fMaxBPM );
}
break;
case Song::DISPLAY_SPECIFIED:
SetBPMRange( pSong->m_fDisplayBPMMin, pSong->m_fDisplayBPMMax );
break;
case Song::DISPLAY_RANDOM:
break;
default:
ASSERT(0);
}
}