add explicit sample length check

This commit is contained in:
Glenn Maynard
2003-01-12 04:24:38 +00:00
parent ce80a52c69
commit 2dc59988bf
+5
View File
@@ -421,6 +421,11 @@ void Song::TidyUpData()
if( m_fMusicSampleStartSeconds == 0 )
m_fMusicSampleStartSeconds = this->GetElapsedTimeFromBeat( 100 );
/* Some DWIs have lengths in ms when they meant seconds, eg. #SAMPLELENGTH:10;.
* If the sample length is way too short, change it. */
if( m_fMusicSampleLengthSeconds < 3 )
m_fMusicSampleLengthSeconds = 10;
//
// Here's the problem: We have a directory full of images. We want to determine which
// image is the banner, which is the background, and which is the CDTitle.