From 11143d4839819d50ba8c2fea356c98b729633f39 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Fri, 13 Apr 2012 09:17:17 +0100 Subject: 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. --- common/module.mk | 2 -- common/rdft.h | 3 +++ 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 */ -- cgit v1.2.3