don't precache sounds by default

(makes loads faster and doesn't really matter for most things)
This commit is contained in:
Glenn Maynard
2003-01-21 02:44:35 +00:00
parent 0bff4f5add
commit aa90ddfccd
2 changed files with 17 additions and 7 deletions
+5 -2
View File
@@ -162,10 +162,13 @@ void RageSound::Fail(CString reason)
error = reason;
}
bool RageSound::Load(CString sSoundFilePath, bool cache)
bool RageSound::Load(CString sSoundFilePath, int precache)
{
LOG->Trace( "RageSound::LoadSound( '%s' )", sSoundFilePath.GetString() );
if(precache == 2)
precache = false;
/* Don't load over copies. */
ASSERT(original == this || m_sFilePath == "");
@@ -185,7 +188,7 @@ bool RageSound::Load(CString sSoundFilePath, bool cache)
/* Try to decode into full_buf. */
big = false;
if(!cache)
if(!precache)
big = true; /* Don't. */
/* Check the length, and see if we think it'll fit in the buffer. */