From d7cae1710739c933df31ff6cb4dfbffaa87922bf Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 12 Jan 2004 01:02:18 +0000 Subject: [PATCH] debug --- stepmania/src/RageSound.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stepmania/src/RageSound.cpp b/stepmania/src/RageSound.cpp index c32826b28e..82eaeeeafb 100644 --- a/stepmania/src/RageSound.cpp +++ b/stepmania/src/RageSound.cpp @@ -510,6 +510,12 @@ void RageSound::StartPlaying() ASSERT(!playing); + /* If StartTime is in the past, then we probably set a start time but took too + * long loading. We don't want that; log it, since it can be unobvious. */ + if( StartTime.Ago() > 0 ) + LOG->Trace("Sound \"%s\" has a start time %f seconds in the past", + GetLoadedFilePath().c_str(), StartTime.Ago() ); + /* Tell the sound manager to start mixing us. */ playing = true; SOUNDMAN->StartMixing(this);