aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorNorbert Lange2009-08-05 18:00:13 +0000
committerNorbert Lange2009-08-05 18:00:13 +0000
commit29e4755f2ab1c16401a1dda90139464a81aadfd3 (patch)
tree238616447b1fd5e3a49d1f74caba5cf4c1b7df90 /sound
parent4890ada18ff391d8701f86a2756a31f270f90eae (diff)
downloadscummvm-rg350-29e4755f2ab1c16401a1dda90139464a81aadfd3.tar.gz
scummvm-rg350-29e4755f2ab1c16401a1dda90139464a81aadfd3.tar.bz2
scummvm-rg350-29e4755f2ab1c16401a1dda90139464a81aadfd3.zip
check if modplayers should be compiled based on engine-macros
svn-id: r43073
Diffstat (limited to 'sound')
-rw-r--r--sound/mods/maxtrax.cpp7
-rw-r--r--sound/mods/tfmx.cpp6
2 files changed, 12 insertions, 1 deletions
diff --git a/sound/mods/maxtrax.cpp b/sound/mods/maxtrax.cpp
index ceaadd2ccb..a1fae233c6 100644
--- a/sound/mods/maxtrax.cpp
+++ b/sound/mods/maxtrax.cpp
@@ -30,6 +30,9 @@
#include "sound/mods/maxtrax.h"
+// test for engines using this class.
+#if defined(ENABLE_KYRA)
+
namespace Audio {
MaxTrax::MaxTrax(int rate, bool stereo)
@@ -739,4 +742,6 @@ bool MaxTrax::load(Common::SeekableReadStream &musicData, bool loadScores, bool
return true;
}
-} // End of namespace Audio \ No newline at end of file
+} // End of namespace Audio
+
+#endif // #if defined(ENABLE_KYRA) \ No newline at end of file
diff --git a/sound/mods/tfmx.cpp b/sound/mods/tfmx.cpp
index 4886904115..b26d3ab27b 100644
--- a/sound/mods/tfmx.cpp
+++ b/sound/mods/tfmx.cpp
@@ -31,6 +31,9 @@
#include "sound/mods/tfmx.h"
+// test for engines using this class.
+#if defined(ENABLE_SCUMM)
+
// couple debug-functions
namespace {
void displayPatternstep(const void *const vptr);
@@ -1173,3 +1176,6 @@ void displayMacroStep(const void *const vptr, int chan, int index) {}
void displayPatternstep(const void *const vptr) {}
#endif
} // End of namespace
+
+#endif // #if defined(ENABLE_SCUMM)
+