diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-02-11 23:56:38 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-02-11 23:56:38 +0000 |
commit | b4527a342144b1cbdba9d88fa220739a83997f85 (patch) | |
tree | dc0b2cc72c6ee960e1847e5f680b1b6466849a5b | |
parent | 83db7615daa10a67592c0145ebadefa78c8a1f55 (diff) | |
download | rockbox-b4527a342144b1cbdba9d88fa220739a83997f85.tar.gz rockbox-b4527a342144b1cbdba9d88fa220739a83997f85.zip |
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
-rw-r--r-- | firmware/buffer.c | 2 | ||||
-rw-r--r-- | uisimulator/win32/Makefile | 2 | ||||
-rw-r--r-- | uisimulator/x11/Makefile | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/firmware/buffer.c b/firmware/buffer.c index c3afb5cc4b..180ded8268 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 316f44c900..e7d118cd5a 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 3055ca99b5..7b86ee2f5b 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 |