/usr/bin/brown paper bag

This commit is contained in:
Glenn Maynard
2003-01-12 03:50:24 +00:00
parent 7340162a0a
commit 6acdb4d89a
+4 -2
View File
@@ -568,8 +568,10 @@ void RageSound::StartPlaying()
* if m_LengthSamples is 1000, then we'll decode a full buffer (which may be
* a second or more), queue up 1000 samples, then seek and redecode the whole
* full buffer of data and start again. This only happens due to bogus SAMPLELENGTH
* values, so throw a warning and set a more reasonable value. */
if(m_LengthSamples < samplerate*2)
* values, so throw a warning and set a more reasonable value.
* XXX we'll do this if m_LengthSamples == -1 and the file is very small
*/
if(StopMode == M_LOOP && m_LengthSamples != -1 && m_LengthSamples < samplerate*2)
{
LOG->Warn("Looping sound \"%s\" for too small a period (%f seconds)",
GetLoadedFilePath().GetString(), float(m_LengthSamples) / samplerate);