From 953348f1ba4845984980ad71b05c17d4ded84b30 Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Thu, 30 Aug 2007 11:41:05 +0000 Subject: FS #7166. Musepack optimizations and cleanups. Huge speedup on ARM. Note that all ARM (Ipod/Sansa/Gigabeat) targets will now play back Musepack files with somewhat reduced accuracy. Please get in touch via forums or Flyspray if you've got sample files where this is very apparent. Most users should hear no difference. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14531 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libmusepack/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'apps/codecs/libmusepack/Makefile') diff --git a/apps/codecs/libmusepack/Makefile b/apps/codecs/libmusepack/Makefile index e50769719b..a70d33644a 100644 --- a/apps/codecs/libmusepack/Makefile +++ b/apps/codecs/libmusepack/Makefile @@ -14,7 +14,13 @@ ifdef APPEXTRA INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) endif -MUSEPACKOPTS = -O2 +# libmusepack is faster on ARM-targets with -O1 instead of -O2 +ifeq ($(CPU),arm) + MUSEPACKOPTS += -O1 +else + MUSEPACKOPTS += -O2 +endif + CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET_INC) $(MUSEPACKOPTS) $(TARGET) \ $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} $(PROFILE_OPTS) -- cgit v1.2.3