This commit is contained in:
Glenn Maynard
2006-03-29 10:35:48 +00:00
parent cefac82d1c
commit 48063cef68
+2 -2
View File
@@ -206,8 +206,8 @@ static void StartMusic( MusicToPlay &ToPlay )
/* GetPlayLatency returns the minimum time until a sound starts. That's
* common when starting a precached sound, but our sound isn't, so it'll
* probably take a little longer. Nudge the latency up. */
const float PresumedLatency = SOUND->GetPlayLatency() + 0.040f;
const float fCurSecond = GAMESTATE->m_fMusicSecondsNoOffset + PresumedLatency;
const float fPresumedLatency = SOUND->GetPlayLatency() + 0.040f;
const float fCurSecond = GAMESTATE->m_fMusicSecondsNoOffset + fPresumedLatency;
const float fCurBeat = g_Playing->m_Timing.GetBeatFromElapsedTime( fCurSecond );
/* The beat that the new sound will start on. */