Scale background playback speed by song rate. This sync isn't very accurate though (because of inaccurate playback rate code in sound library?)

This commit is contained in:
Chris Danford
2003-04-14 04:54:16 +00:00
parent fb048fc9c7
commit cded5dbac0
4 changed files with 14 additions and 0 deletions
+3
View File
@@ -323,6 +323,9 @@ void Background::LoadFromSong( Song* pSong )
// sort segments
SortBackgroundChangesArray( m_aBGChanges );
// scale all rates by the current music rate
for( unsigned i=0; i<m_aBGChanges.size(); i++ )
m_aBGChanges[i].m_fRate *= GAMESTATE->m_SongOptions.m_fMusicRate;
for( map<CString,BGAnimation*>::iterator iter = m_BGAnimations.begin();