aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD G Turner2012-04-13 09:17:17 +0100
committerD G Turner2012-04-13 09:17:17 +0100
commit11143d4839819d50ba8c2fea356c98b729633f39 (patch)
tree2070a72ea08eb3831915b8ce6639c7d39890c434
parent8a5b08341ebd4153295e012723411461c492a38b (diff)
downloadscummvm-rg350-11143d4839819d50ba8c2fea356c98b729633f39.tar.gz
scummvm-rg350-11143d4839819d50ba8c2fea356c98b729633f39.tar.bz2
scummvm-rg350-11143d4839819d50ba8c2fea356c98b729633f39.zip
COMMON: Fixes for compiling without USE_BINK enabled.
The math utility classes in Common are now used by more than just Bink Video i.e. Huffman is used by SVQ1, RDFT by QDM2 etc. so need to remove conditional inclusion of objects in the Common Library. This was done as these functions are very large wrt. binary size. This is mainly due to the sine, cosine and log tables which should be reconsidered as to whether these are needed or can be replaced by standard sin()/cos() calls.
-rw-r--r--common/module.mk2
-rw-r--r--common/rdft.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/common/module.mk b/common/module.mk
index b4928fabda..7e31ddfa01 100644
--- a/common/module.mk
+++ b/common/module.mk
@@ -41,7 +41,6 @@ MODULE_OBJS := \
xmlparser.o \
zlib.o
-ifdef USE_BINK
MODULE_OBJS += \
cosinetables.o \
dct.o \
@@ -49,7 +48,6 @@ MODULE_OBJS += \
huffman.o \
rdft.o \
sinetables.o
-endif
# Include common rules
include $(srcdir)/rules.mk
diff --git a/common/rdft.h b/common/rdft.h
index 68be0f4dac..3bdc4b0cbc 100644
--- a/common/rdft.h
+++ b/common/rdft.h
@@ -36,6 +36,9 @@ namespace Common {
/**
* (Inverse) Real Discrete Fourier Transform.
*
+ * Used in audio:
+ * - QDM2
+ *
* Used in engines:
* - scumm
*/