add "loop" file name hint for sounds

This commit is contained in:
Chris Danford
2003-07-05 22:02:42 +00:00
parent ca3cf2b6b7
commit e68bd0a3e6
8 changed files with 11 additions and 5 deletions
+6
View File
@@ -178,6 +178,12 @@ bool RageSound::Load(CString sSoundFilePath, int precache)
m_sFilePath = sSoundFilePath;
position = 0;
// Check for "loop" hint
if( m_sFilePath.Find("loop") != -1 )
SetStopMode( M_LOOP );
SoundReader_FileReader *NewSample = new RageSoundReader_LowLevel;
if(!NewSample->Open(sSoundFilePath.c_str()))
RageException::Throw( "RageSoundManager::RageSoundManager: error opening sound '%s': '%s'",