don't try to preload files that we're only going to play once
This commit is contained in:
@@ -191,7 +191,7 @@ void RageSoundManager::PlayOnce( CString sPath )
|
||||
/* We're responsible for freeing it. */
|
||||
owned_sounds.insert(snd);
|
||||
|
||||
snd->Play();
|
||||
// snd->Play();
|
||||
}
|
||||
|
||||
void RageSoundManager::PlayOnceFromDir( CString sDir )
|
||||
@@ -247,7 +247,7 @@ void RageSoundManager::PlayMusic(CString file, bool loop, float start_sec, float
|
||||
|
||||
if(music->IsPlaying())
|
||||
music->StopPlaying();
|
||||
music->Load( file );
|
||||
music->Load( file, false );
|
||||
|
||||
music->SetStopMode(loop? RageSound::M_LOOP:RageSound::M_STOP);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user