From b4527a342144b1cbdba9d88fa220739a83997f85 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 11 Feb 2005 23:56:38 +0000 Subject: Simulators: Made the mp3 buffer size depend on the MEMORYSIZE setting for better simulation. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5922 a1c6a512-1295-4272-9138-f99709370657 --- firmware/buffer.c | 2 +- uisimulator/win32/Makefile | 2 +- uisimulator/x11/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/buffer.c b/firmware/buffer.c index c3afb5c..180ded8 100644 --- a/firmware/buffer.c +++ b/firmware/buffer.c @@ -20,7 +20,7 @@ #include "buffer.h" #ifdef SIMULATOR -unsigned char mp3buffer[0x200000]; +unsigned char mp3buffer[(MEM*1024-256)*1024]; unsigned char *mp3end = mp3buffer + sizeof(mp3buffer); #else /* defined in linker script */ diff --git a/uisimulator/win32/Makefile b/uisimulator/win32/Makefile index 316f44c..e7d118c 100644 --- a/uisimulator/win32/Makefile +++ b/uisimulator/win32/Makefile @@ -57,7 +57,7 @@ no_configure: endif DEFINES = -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS -DSIMULATOR \ -$(TARGET) -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) +$(TARGET) -DAPPSVERSION=\"$(VERSION)\" -DMEM=${MEMORYSIZE} $(EXTRA_DEFINES) LDFLAGS = -lgdi32 -luser32 diff --git a/uisimulator/x11/Makefile b/uisimulator/x11/Makefile index 3055ca9..7b86ee2 100644 --- a/uisimulator/x11/Makefile +++ b/uisimulator/x11/Makefile @@ -53,7 +53,7 @@ no_configure: endif DEFINES := -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS -DSIMULATOR \ -$(TARGET) -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) +$(TARGET) -DAPPSVERSION=\"$(VERSION)\" -DMEM=${MEMORYSIZE} $(EXTRA_DEFINES) # Use this for simulator-only files INCLUDES = -I. -I$(EXPORT) -I$(APPSDIR) -I$(MACHINEDIR) -I$(SIMCOMMON) -I$(OBJDIR) -I$(PLUGINDIR)/lib -- cgit v1.1