add OGG_ONLY

This commit is contained in:
Glenn Maynard
2003-06-22 02:14:29 +00:00
parent 3070e317c7
commit 53f99f47bc
+8 -1
View File
@@ -41,7 +41,14 @@
#include "PrefsManager.h"
#if defined(OGG_ONLY)
#include "RageSoundReader_Vorbisfile.h"
#define RageSoundReader_LowLevel RageSoundReader_Vorbisfile
#else
#include "RageSoundReader_SDL_Sound.h"
#define RageSoundReader_LowLevel SoundReader_SDL_Sound
#endif
#include "RageSoundReader_Preload.h"
#include "RageSoundReader_Resample.h"
@@ -171,7 +178,7 @@ bool RageSound::Load(CString sSoundFilePath, int precache)
m_sFilePath = sSoundFilePath;
position = 0;
SoundReader_FileReader *NewSample = new SoundReader_SDL_Sound;
SoundReader_FileReader *NewSample = new RageSoundReader_LowLevel;
if(!NewSample->Open(sSoundFilePath.c_str()))
RageException::Throw( "RageSoundManager::RageSoundManager: error opening sound '%s': '%s'",
sSoundFilePath.c_str(), NewSample->GetError().c_str());