Allow changing WAV and OGG settings for all OSes.

As before, set WITH_WAV and WITH_OGG to off to limit your playing experience. Why this would be done is beyond me, but it's available.
This commit is contained in:
Jason Felds
2015-09-12 11:58:57 -04:00
parent e103bf286f
commit 91361e5d29
4 changed files with 45 additions and 26 deletions
+4 -4
View File
@@ -5,7 +5,7 @@
#include "ActorUtil.h"
#include <set>
#ifndef NO_WAV_SUPPORT
#if defined(HAS_WAV)
#include "RageSoundReader_WAV.h"
#endif
@@ -13,7 +13,7 @@
#include "RageSoundReader_MP3.h"
#endif
#ifndef NO_VORBIS_SUPPORT
#if defined(HAS_OGG)
#include "RageSoundReader_Vorbisfile.h"
#endif
@@ -21,7 +21,7 @@ RageSoundReader_FileReader *RageSoundReader_FileReader::TryOpenFile( RageFileBas
{
RageSoundReader_FileReader *Sample = NULL;
#ifndef NO_WAV_SUPPORT
#if defined(HAS_WAV)
if( !format.CompareNoCase("wav") )
Sample = new RageSoundReader_WAV;
#endif
@@ -31,7 +31,7 @@ RageSoundReader_FileReader *RageSoundReader_FileReader::TryOpenFile( RageFileBas
Sample = new RageSoundReader_MP3;
#endif
#ifndef NO_VORBIS_SUPPORT
#if defined(HAS_OGG)
if( !format.CompareNoCase("oga") || !format.CompareNoCase("ogg") )
Sample = new RageSoundReader_Vorbisfile;
#endif