Move CurStageStats and vPlayedStageState out of GAMESTATE. Having

GameState.h depend on StageStats.h is too inconvenient.
This commit is contained in:
Glenn Maynard
2003-12-23 00:26:00 +00:00
parent ecd5fa36e0
commit 9170e91bcc
19 changed files with 165 additions and 140 deletions
+6 -2
View File
@@ -105,8 +105,12 @@ bool TryToStartQueuedMusic( float fOldSeconds, float fNewSeconds )
if( g_UpdatingTimer )
{
fOldSeconds += SOUND->GetPlayLatency();
fNewSeconds += SOUND->GetPlayLatency();
/* 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. */
float Latency = SOUND->GetPlayLatency() + 0.040f;
fOldSeconds += Latency;
fNewSeconds += Latency;
const float fOldBeat = g_Timing.GetBeatFromElapsedTime( fOldSeconds );
const float fNewBeat = g_Timing.GetBeatFromElapsedTime( fNewSeconds );