get rid of RageSoundStream

This commit is contained in:
Glenn Maynard
2003-01-02 07:58:34 +00:00
parent 24a3592741
commit bfb263fee4
4 changed files with 1 additions and 21 deletions
+1 -6
View File
@@ -18,7 +18,6 @@
#include "Song.h"
#include "NoteData.h"
#include "MsdFile.h"
#include "RageSoundStream.h"
#include "RageSound.h"
#include "RageException.h"
#include "SongCacheIndex.h"
@@ -383,13 +382,9 @@ void Song::TidyUpData()
/* This must be done before radar calculation. */
if( HasMusic() )
{
#if 1
RageSoundStream sound;
sound.Load( GetMusicPath() );
#else
RageSound sound;
sound.Load( GetMusicPath(), false ); /* don't pre-cache */
#endif
m_fMusicLengthSeconds = sound.GetLengthSeconds();
/* XXX: if(m_fMusicLengthSeconds == -1), warn and throw out the song */
if(m_fMusicLengthSeconds == 0)