aboutsummaryrefslogtreecommitdiff
path: root/sound/softsynth
diff options
context:
space:
mode:
authorNeil Millstone2010-02-26 17:42:40 +0000
committerNeil Millstone2010-02-26 17:42:40 +0000
commit277b3078bcd1f655ad54504959091047a496be6c (patch)
treebb87732361d6eacdd50e2ebfd488ed9766cdf85a /sound/softsynth
parent4a8ab4b075a186ce70c441ee0ceb3f6d5019d948 (diff)
downloadscummvm-rg350-277b3078bcd1f655ad54504959091047a496be6c.tar.gz
scummvm-rg350-277b3078bcd1f655ad54504959091047a496be6c.tar.bz2
scummvm-rg350-277b3078bcd1f655ad54504959091047a496be6c.zip
SID: Adding DISABLE_SID option, as SID player embiggens binary by a large amount. This is a problem for the DS port.
svn-id: r48137
Diffstat (limited to 'sound/softsynth')
-rw-r--r--sound/softsynth/sid.cpp4
-rw-r--r--sound/softsynth/wave6581.cpp3
2 files changed, 7 insertions, 0 deletions
diff --git a/sound/softsynth/sid.cpp b/sound/softsynth/sid.cpp
index 8d8a75ab0b..e0dfd2efc0 100644
--- a/sound/softsynth/sid.cpp
+++ b/sound/softsynth/sid.cpp
@@ -28,6 +28,8 @@
* Copyright (C) 2004 Dag Lem <resid@nimrod.no>
*/
+#ifndef DISABLE_SID
+
#include "sid.h"
#include <math.h>
@@ -1424,3 +1426,5 @@ int SID::clock(cycle_count& delta_t, short* buf, int n, int interleave) {
}
}
+
+#endif
diff --git a/sound/softsynth/wave6581.cpp b/sound/softsynth/wave6581.cpp
index 29a4962c3c..29998dcd0a 100644
--- a/sound/softsynth/wave6581.cpp
+++ b/sound/softsynth/wave6581.cpp
@@ -28,6 +28,8 @@
* Copyright (C) 2004 Dag Lem <resid@nimrod.no>
*/
+#ifndef DISABLE_SID
+
#include "sid.h"
namespace Resid
@@ -2098,3 +2100,4 @@ reg8 WaveformGenerator::wave6581_PST[] =
};
}
+#endif